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: README.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -60,16 +60,17 @@ All supported arguments:
60
60
--experiment EXPERIMENT
61
61
table of EXPERIMENT object
62
62
--run RUN table of RUN object
63
-
--data [FILE ...] data for submission
63
+
--data [FILE [FILE ...]]
64
+
data for submission
64
65
--center CENTER_NAME specific to your Webin account
65
66
--checklist CHECKLIST
66
67
specify the sample checklist with following pattern: ERC0000XX, Default: ERC000011
67
-
--xlsx XLSX Excel table with metadata
68
+
--xlsx XLSX filled in excel template with metadata
69
+
--auto_action BETA: detect automatically which action (add or modify) to apply when the action column is not given
68
70
--tool TOOL_NAME specify the name of the tool this submission is done with. Default: ena-upload-cli
69
71
--tool_version TOOL_VERSION
70
72
specify the version of the tool this submission is done with
71
-
--no_data_upload indicate if no upload should be performed and you like to submit a RUN object (e.g. if uploaded
72
-
was done separately).
73
+
--no_data_upload indicate if no upload should be performed and you like to submit a RUN object (e.g. if uploaded was done separately).
73
74
--draft indicate if no submission should be performed
74
75
--secret SECRET .secret.yml file containing the password and Webin ID of your ENA account
75
76
-d, --dev flag to use the dev/sandbox endpoint of ENA
@@ -161,7 +162,10 @@ Use the *--dev* flag if you want to do a test submission using the tool by the s
161
162
162
163
### Submitting a selection of rows to ENA
163
164
164
-
Optionally you can add a status column to every table that contains the action you want to apply during this submission. If you chose to add only the first 2 samples to ENA, you specify `--action add` as parameter in the command and you add the `add` value to the status column of the rows you want to submit as demonstrated below. Same holds for the action `modify`, `release` and `cancel`.
165
+
There are two ways of submitting only a selection of objects to ENA. This is handy for reoccurring submissions, especially when they belong to the same study.
166
+
167
+
- Manual: you can add an optional `status` column to every table/sheet that contains the action you want to apply during this submission. If you chose to add only the first 2 samples to ENA, you specify `--action add` as parameter in the command and you add the `add` value to the status column of the rows you want to submit as demonstrated below. Same holds for the action `modify`, `release` and `cancel`.
168
+
- Automatic (BETA): using the `--auto_action` it is possible to auto detect wether an object (using the alias) is already present on ENA and will fill in the specified action (`--action` parameter) accordingly. In practice, this means that if a user chooses to add objects and we already find this object already exists using its alias, this objects will not be added. On the other hand, if the command is used to modify objects, we want to apply this solely on objects that already exist on ENA. The detection only works with ENA objects that are published and findable on the website trough the search function (both the dev and live website). If the tool does not correctly detect the presence of your ENA object, we suggest to use the more robust manual approach as described above.
165
169
166
170
**Example with modify as seen in the [example sample modify table](example_tables/ENA_template_samples_modify.tsv)**
parser.add_argument('--checklist', help="specify the sample checklist with following pattern: ERC0000XX, Default: ERC000011", dest='checklist',
689
708
default='ERC000011')
690
-
709
+
691
710
parser.add_argument('--xlsx',
692
-
help='excel table with metadata')
693
-
711
+
help='filled in excel template with metadata')
712
+
713
+
parser.add_argument('--auto_action',
714
+
action="store_true",
715
+
default=False,
716
+
help='BETA: detect automatically which action (add or modify) to apply when the action column is not given')
717
+
694
718
parser.add_argument('--tool',
695
719
dest='tool_name',
696
720
default='ena-upload-cli',
@@ -730,15 +754,15 @@ def process_args():
730
754
ifnotos.path.isfile(args.secret):
731
755
msg=f"Oops, the file {args.secret} does not exist"
732
756
parser.error(msg)
733
-
757
+
734
758
# check if xlsx file exists
735
759
ifargs.xlsx:
736
760
ifnotos.path.isfile(args.xlsx):
737
761
msg=f"Oops, the file {args.xlsx} does not exist"
738
762
parser.error(msg)
739
763
740
764
# check if data is given when adding a 'run' table
741
-
if (notargs.no_data_uploadandargs.runandargs.action.upper() notin ['RELEASE','CANCEL']) or (notargs.no_data_uploadandargs.xlsxandargs.action.upper() notin ['RELEASE','CANCEL']):
765
+
if (notargs.no_data_uploadandargs.runandargs.action.upper() notin ['RELEASE','CANCEL']) or (notargs.no_data_uploadandargs.xlsxandargs.action.upper() notin ['RELEASE','CANCEL']):
742
766
ifargs.dataisNone:
743
767
parser.error('Oops, requires data for submitting RUN object')
0 commit comments