You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trident.md
+44-16Lines changed: 44 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ On GitHub you will also find [older release versions](https://github.com/poseido
30
30
31
31
With `trident --help` and `trident <subcommand> --help` you can get information about each subcommand and parameter directly on the command line. The guide below explains the subcommands in more detail. It is available in .pdf format for the current and previous versions here:
32
32
33
-
-[🗎 Guide for trident v1.6.7.1 to v1.6.7.3](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident.pdf) (shown below)
33
+
-[🗎 Guide for trident v1.7.0.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident.pdf) (shown below)
34
+
-[🗎 Guide for trident v1.6.7.1 to v1.6.7.3](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident_guid_1.6.7.1_to_1.6.7.3.pdf)
34
35
-[🗎 Guide for trident v1.6.2.1](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident_guide_archive/trident_guide_1.6.2.1.pdf)
35
36
-[🗎 Guide for trident v1.5.7.0 to v1.5.7.3](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident_guide_archive/trident_guide_1.5.7.0_to_1.5.7.3.pdf)
36
37
-[🗎 Guide for trident v1.5.4.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident_guide_archive/trident_guide_1.5.4.0.pdf)
@@ -47,7 +48,7 @@ With `trident --help` and `trident <subcommand> --help` you can get information
47
48
-[🗎 Guide for trident v0.29.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident_guide_archive/trident_guide_0.29.0.pdf)
48
49
-[🗎 Guide for trident v0.28.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/trident_guide_archive/trident_guide_0.28.0.pdf)
49
50
50
-
# Guide for trident v1.6.7.1 to v1.6.7.3
51
+
# Guide for trident v1.7.0.0
51
52
52
53
## Installation
53
54
@@ -58,7 +59,7 @@ See the Poseidon website (<https://www.poseidon-adna.org/#/trident>) or the GitH
58
59
Trident is a command line software tool structured in multiple subcommands. If you installed it properly you can call it on the command line by typing `trident`. This will show an overview of the general options and all subcommands, which are explained in detail below.
Coalesce information from one or multiple janno files to another one
825
827
826
828
Available options:
827
829
-h,--help Show this help text
830
+
--pvSource VERSION Poseidon version (e.g. 2.7.1). (default: 3.0.0)
828
831
-s,--sourceFile FILE The source .janno file.
829
832
-d,--baseDir DIR A base directory to search for Poseidon packages.
833
+
--pvTarget VERSION Poseidon version (e.g. 2.7.1). (default: 3.0.0)
830
834
-t,--targetFile FILE The target .janno file to fill.
831
-
-o,--outFile FILE An optional file to write the results to. If not
832
-
specified, change the target file in place.
833
-
(default: Nothing)
835
+
-o,--outFile FILE File path to write the result to. Can be identical to
836
+
--targetFile to overwrite the target file in place.
837
+
Note that trident only writes .janno files in the
838
+
latest Poseidon version it supports, so in this case
839
+
v3.0.0.
834
840
--includeColumns ARG A comma-separated list of .janno column names to
835
841
coalesce. If not specified, all columns that can be
836
842
found in the source and target will get filled.
@@ -858,7 +864,8 @@ A most basic run may just include two arguments:
858
864
```bash
859
865
trident jannocoalesce \
860
866
--sourceFile path/to/source.janno \
861
-
--targetFile path/to/target.janno
867
+
--targetFile path/to/target.janno \
868
+
--outFile path/to/coalesced.janno
862
869
```
863
870
864
871
`jannocoalesce`generally works by reading a source `.janno` file with `-s|--sourceFile` (or all `.janno` files in a `-d|--baseDir`) and a target `.janno` file with `-t|--targetFile`.
@@ -867,6 +874,14 @@ It then merges these files by a key column, which can be selected with `--source
867
874
868
875
`jannocoalesce`generally attempts to fill **all** empty cells in the target `.janno` file with information from the source. `--includeColumns` and `--excludeColumns` allow to select specific columns for which this should be done. In some cases it may be desirable to not just fill empty fields in the target, but overwrite the information already there with the `-f|--force` option. If the target file should be preserved, then the output can be directed to a new output `.janno` file with `-o|--outFile`.
869
876
877
+
Note that all three files, the source, the target, and the outfile, are mandatory. The roles are:
878
+
879
+
- `targetFile`-> This is the file which is taken as the starting point for the new janno file.
880
+
- `sourceFile`-> This is the file from which to read additional columns that might be missing in the target.
881
+
- `outFile`-> This is the file that will contain the coalesced result.
882
+
883
+
In addition to these three files, you can choose a Poseidon Version for both the source (`--pvSource`) and the target (`--pvTarget`), which is useful for backwards compatibility, in case you have Janno files in older Poseidon versions. **_But_**: Note that the output file will _always_ be written in the newest Poseidon version. Note that you _can_ choose the outFile to be the targetFile, which will then overwrite the target file. This can be useful if you know what you are doing. Otherwise it is of course safer to choose a new filename for the output.
884
+
870
885
## Rectify command
871
886
872
887
`rectify`automatically harmonizes POSEIDON.yml files of one or multiple packages. This is not an automatic update from one Poseidon version to the next, but rather a clean-up wizard after manual modifications. It also includes additional, automatic package editing features.
@@ -1094,14 +1109,17 @@ Again you can use the `--raw` option to output the survey table in a tab-delimit
1094
1109
<summary><i class="fas fa-search"></i> <i class="fas fa-terminal"></i> <b>Command line details</b></summary>
0 commit comments