annotate ena_consensus_submit.xml @ 3:7d751b5943b0 draft default tip

Uploaded
author ieguinoa
date Tue, 22 Feb 2022 11:03:34 +0000
parents 1ecd8ce07db4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
1 <tool id="ena_consensus_submit" name="Submit consensus sequence to ENA" version="@VERSION@" python_template_version="3.5">
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
2 <macros>
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
3 <token name="@VERSION@">4.3.0</token>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
4 </macros>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
5 <requirements>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
6 <requirement type="package" version="@VERSION@">ena-webin-cli</requirement>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
7 <requirement type="package" version="1.76">biopython</requirement>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
8 <requirement type="package" version="5.3">pyyaml</requirement>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
9 </requirements>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
11 #if $test_submit == "True":
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
12 #set $credentials='./test_fake_path';
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
13 touch $credentials;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
14 echo "username:test_user" >> $credentials;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
15 echo "password:test_password" >> $credentials;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
16 #end if
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
17
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
18 webin_id=`grep 'username' $credentials | cut -d':' -f2,2`;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
19 if [ "\$webin_id" = "" ]; then
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
20 ## No credentials in user defined preferences
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
21 ## Fallback to global defined credentials (if exist)
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
22 #import os
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
23 #if os.path.isfile(os.environ.get('GALAXY_ENA_SECRETS', '')):
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
24 credentials_path=\${GALAXY_ENA_SECRETS};
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
25 webin_id=`grep 'username' \$GALAXY_ENA_SECRETS | cut -d':' -f2,2` | sed -e 's/^[[:space:]]*//'`;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
26 password=`grep 'password' \$GALAXY_ENA_SECRETS | cut -d':' -f2,2` | sed -e 's/^[[:space:]]*//'`;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
27 if [ "\$webin_id" = "" ]; then
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
28 echo "No global credentials defined. Check your GALAXY_ENA_SECRETS file or set your credentials via: User -> Preferences -> Manage Information";
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
29 exit 1;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
30 fi;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
31 #else:
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
32 echo "No ENA credentials defined. Set your credentials via: User -> Preferences -> Manage Information";
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
33 exit 1;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
34 #end if
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
35 else
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
36 password=`grep 'password' $credentials | cut -d':' -f2,2`;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
37 fi;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
38
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
39
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
40 ## create a manifest base file with the parameters that are identical for all sequences that will be submited (if submitting a multifasta)
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
41 #set $manifest_base = 'manifest_base.tab'
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
42 mkdir manifests;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
43 mkdir fasta;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
44
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
45 echo -e 'ASSEMBLY_TYPE\t$assembly_type' > $manifest_base;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
46 echo -e 'COVERAGE\t$coverage' >> $manifest_base;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
47 echo -e 'PROGRAM\t$assembly_program' >> $manifest_base;
1
f24eb2f2cb0c Uploaded
ieguinoa
parents: 0
diff changeset
48 #if $min_gap_length:
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
49 echo -e 'MINGAPLENGTH\t$min_gap_length' >> $manifest_base;
1
f24eb2f2cb0c Uploaded
ieguinoa
parents: 0
diff changeset
50 #end if
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
51 echo -e 'MOLECULETYPE\t$molecule_type' >> $manifest_base;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
52
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
53 #if $metadata_file_or_form.metadata_format == "file":
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
54 #import re
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
55 #for $file in $metadata_file_or_form.genome_fasta:
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
56 #if $file.is_of_type('fasta'):
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
57 #set $full_name = $file.element_identifier + '.gz'
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
58 gzip -c $file > './fasta/$full_name';
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
59 #else:
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
60 ln -s $file './fasta/$file.element_identifier';
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
61 #end if
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
62
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
63 #end for
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
64 ## process the input tables, this creates an intermediate file with information
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
65 python3 '$__tool_directory__/process_input.py' $metadata_file_or_form.ena_receipt $genome_fasta_files './manifests' $manifest_base >> $webin_cli_log;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
66 center_name=`grep 'center_name' $metadata_file_or_form.ena_receipt | cut -f2,2 | tr -d '\n'`;
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
67 #else:
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
68 #set $generated_manifest='./manifests/generated_manifest.txt'
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
69 cp $manifest_base $generated_manifest;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
70 #set $study_id = $metadata_file_or_form.study_accession
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
71 #set $sample_id = $metadata_file_or_form.sample_accession
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
72 echo -e 'STUDY\t$study_id' >> $generated_manifest;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
73 echo -e 'SAMPLE\t$sample_id' >> $generated_manifest;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
74 center_name='$metadata_file_or_form.center_name';
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
75 echo -e 'NAME\t$metadata_file_or_form.assembly_name' >> $generated_manifest;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
76 echo -e 'PLATFORM\t$metadata_file_or_form.sequencing_platform' >> $generated_manifest;
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
77 #if $metadata_file_or_form.genome_fasta.is_of_type('fasta'):
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
78 gzip -c $metadata_file_or_form.genome_fasta > consensus.fasta.gz;
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
79 #else:
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
80 ln -s $metadata_file_or_form.genome_fasta consensus.fasta.gz;
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
81 #end if
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
82 echo -e 'FASTA\tconsensus.fasta.gz' >> $generated_manifest;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
83 #end if
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
84
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
85 #set $outputs_dir = 'outputs'
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
86 mkdir $outputs_dir;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
87 #if $metadata_file_or_form.metadata_format == "file":
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
88 ## iterate over the list of manifest - fasta generated by the process_input
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
89 ## in case of errors, this list is empty
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
90 while read line; do
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
91 manifest=`echo \$line | cut -d' ' -f1,1`;
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
92 echo "Submitting manifest \$manifest" >> $webin_cli_log;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
93 ena-webin-cli
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
94 -context genome
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
95 -userName "'\$webin_id'"
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
96 -password "'\$password'"
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
97 -centerName "'\$center_name'"
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
98 -manifest \$manifest
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
99 -inputDir './fasta'
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
100 #if $dry_run == "true":
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
101 -validate
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
102 #end if
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
103 -outputDir $outputs_dir
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
104 >> $webin_cli_log;
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
105 done < submit_list.tab;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
106
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
107 #else:
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
108 ena-webin-cli
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
109 #if $submit_test == "true":
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
110 -test
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
111 #end if
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
112 #if $dry_run == "true":
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
113 -validate
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
114 #else:
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
115 -submit
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
116 #end if
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
117 -context genome
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
118 -manifest $generated_manifest
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
119 -password "'\$password'"
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
120 -userName "'\$webin_id'"
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
121 -inputDir "./"
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
122 -centerName "'\$center_name'"
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
123 -outputDir $outputs_dir
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
124 >> $webin_cli_log ;
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
125 ##cp ./genome/$metadata_file_or_form.assembly_name/validate/webin-cli.report $validate_output
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
126 #end if
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
127 tar -cf $webin_cli_outputs $outputs_dir ;
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
128 ]]></command>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
129 <configfiles>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
130 <configfile name="credentials"><![CDATA[
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
131 #set $webin_id = $__user__.extra_preferences.get('ena_webin_account|webin_id', "").strip()
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
132 #set $password = $__user__.extra_preferences.get('ena_webin_account|password', "").strip()
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
133 #if $webin_id != "":
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
134 username:$webin_id
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
135 password:$password
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
136 #end if
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
137
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
138 ]]></configfile>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
139 <configfile name="genome_fasta_files">
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
140 #import json
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
141 #import re
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
142 #if $metadata_file_or_form.metadata_format == "file":
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
143 #set $fasta_files_list = list()
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
144 #for $file in $metadata_file_or_form.genome_fasta:
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
145 $fasta_files_list.append(str($file.element_identifier))
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
146 #end for
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
147 #echo json.dumps($fasta_files_list)
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
148 #end if
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
149 </configfile>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
150 </configfiles>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
151 <inputs>
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
152 <param name="test_submit" type="hidden" value="False" />
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
153 <param name="submit_test" type="boolean" truevalue="true" falsevalue="false" label="Submit to test server" help="use Webin test service instead of the production service. Please note that the Webin upload area is shared between test and production services, and that test submission files will not be archived." />
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
154 <param name="dry_run" type="boolean" truevalue="true" falsevalue="false" label="Validate files and metadata but do not submit" help="Generate input files and run Webin-CLI with -validate option. If 'No' is selected then it will validate and submit (-submit flag)"/>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
155 <param name="assembly_type" type="select" label="Assembly type">
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
156 <option value="clone">Clone</option>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
157 <option value="isolate">Isolate</option>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
158 <option value="COVID-19 outbreak">COVID-19 outbreak</option>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
159 </param>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
160 <param name="assembly_program" type="text" optional="False" label="Assembly program"/>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
161 <param name="molecule_type" type="select" label="Molecule type">
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
162 <option value="genomic RNA" selected="True">genomic RNA</option>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
163 <option value="viral cRNA">viral cRNA</option>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
164 <option value="genomic DNA">genomic DNA</option>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
165 </param>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
166 <param name="coverage" type="float" optional="False" value="10000" label="Coverage"/>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
167 <conditional name="metadata_file_or_form">
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
168 <param name="metadata_format" type="select" label="Select the method to load study and sample metadata">
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
169 <option value="form" selected="True">Fill in required submission metadata</option>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
170 <option value="file">(Beta) I used the Galaxy ENA upload tool to submit the raw data: parse the received submission receipt</option>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
171 </param>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
172 <when value="file">
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
173 <param type="data" format="txt" name="ena_receipt" label="Submission receipt obtained from ENA upload tool"/>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
174 <param name="genome_fasta" type="data" label="Select the consensus sequence assembly files or a collection of them" format="fasta,fasta.gz" multiple="true"/>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
175 </when>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
176 <when value="form">
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
177 <param name="assembly_name" type="text" optional="False" label="Assembly name"/>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
178 <param name="study_accession" type="text" optional="False" label="Study accession"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
179 <param name="sample_accession" type="text" optional="False" label="Sample accession"/>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
180 <param name="sequencing_platform" type="text" optional="False" label="Sequencing platform"/>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
181 <param name="description" type="text" optional="True" value="" label="Description" help="Free text description of the genome assembly (optional)"/>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
182 <param name="center_name" type="text" optional="False" label="Center name"/>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
183 <param name="genome_fasta" type="data" label="Select the consensus sequence assembly file" format="fasta,fasta.gz"/>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
184 </when>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
185 </conditional>
1
f24eb2f2cb0c Uploaded
ieguinoa
parents: 0
diff changeset
186 <param name="min_gap_length" type="text" optional="True" label="Minimum gap length (optional)"/>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
187 </inputs>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
188 <outputs>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
189 <collection name="generated_manifests" type="list" label="Generated manifests">
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
190 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.txt" ext="txt" directory="manifests/"/>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
191 </collection>
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
192 <data name="webin_cli_log" label="ENA submission log" format="txt"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
193 <data name="webin_cli_outputs" label="Webin cli outputs" format="tar"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
194
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
195 </outputs>
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
196 <tests>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
197 <test>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
198 <param name="submit_test" value="true" />
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
199 <param name="dry_run" value="true" />
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
200 <param name="test_submit" value="True" />
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
201 <param name="assembly_type" value="isolate"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
202 <param name="assembly_program" value="Test assembly program"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
203 <param name="molecule_type" value="viral cRNA"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
204 <param name="coverage" value="10000"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
205 <conditional name="metadata_file_or_form">
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
206 <param name="metadata_format" value="form"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
207 <param name="assembly_name" value="Test assembly name"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
208 <param name="study_accession" value="PRJEB49173"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
209 <param name="sample_accession" value="SAMEA11953908"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
210 <param name="sequencing_platform" value="Nanopore 0011"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
211 <param name="description" value="Test Description"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
212 <param name="center_name" value="Test center name"/>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
213 <param name="genome_fasta" value="phiX2.fasta"/>
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
214 </conditional>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
215 <param name="min_gap_length" value="30"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
216 <output name="webin_cli_log">
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
217 <assert_contents>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
218 <has_n_lines n="4"/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
219 <has_text_matching expression="ERROR: Invalid submission account user name or password."/>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
220 </assert_contents>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
221 </output>
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
222 </test>
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
223 <test>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
224 <param name="submit_test" value="true" />
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
225 <param name="dry_run" value="true" />
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
226 <param name="test_submit" value="True" />
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
227 <param name="assembly_type" value="isolate"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
228 <param name="assembly_program" value="Test assembly program"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
229 <param name="molecule_type" value="viral cRNA"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
230 <param name="coverage" value="10000"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
231 <conditional name="metadata_file_or_form">
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
232 <param name="metadata_format" value="file"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
233 <param name="ena_receipt" value="receipt_sample_noPhiX.txt"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
234 <param name="genome_fasta" value="phiX2.fasta.gz,sample_alias_001.fasta.gz"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
235 </conditional>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
236 <param name="min_gap_length" value="30"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
237 <output name="webin_cli_log">
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
238 <assert_contents>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
239 <has_text_matching expression="Processing phiX2"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
240 <has_text_matching expression="No metadata found for sample phiX2"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
241 <has_text_matching expression="Processing sample_alias_001"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
242 <has_text_matching expression="Submitting manifest ./manifests/sample_alias_001.manifest.txt"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
243 <has_text_matching expression="ERROR: Invalid submission account user name or password. Please try enclosing your password in single quotes."/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
244 </assert_contents>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
245 </output>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
246 </test>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
247 <test>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
248 <param name="submit_test" value="true" />
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
249 <param name="dry_run" value="true" />
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
250 <param name="test_submit" value="True" />
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
251 <param name="assembly_type" value="isolate"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
252 <param name="assembly_program" value="Test assembly program"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
253 <param name="molecule_type" value="viral cRNA"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
254 <param name="coverage" value="10000"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
255 <conditional name="metadata_file_or_form">
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
256 <param name="metadata_format" value="file"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
257 <param name="ena_receipt" value="receipt_sample.txt"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
258 <param name="genome_fasta" value="sample_alias_001.fasta.gz"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
259 </conditional>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
260 <param name="min_gap_length" value="30"/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
261 <output name="webin_cli_log">
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
262 <assert_contents>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
263 <has_text_matching expression="ERROR: Invalid submission account user name or password. Please try enclosing your password in single quotes."/>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
264 </assert_contents>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
265 </output>
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
266 </test>
2
1ecd8ce07db4 Uploaded
ieguinoa
parents: 1
diff changeset
267 </tests>
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
268 <help><![CDATA[
3
7d751b5943b0 Uploaded
ieguinoa
parents: 2
diff changeset
269 This tool is a wrapper for the ENA Webin CLI submission tool (https://ena-docs.readthedocs.io/en/latest/submit/general-guide/webin-cli.html).
0
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
270 ]]></help>
e25357392813 Uploaded
ieguinoa
parents:
diff changeset
271 </tool>