annotate ena_webin_cli.xml @ 0:7f669682f4ac draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
author iuc
date Mon, 06 Oct 2025 12:13:07 +0000
parents
children 1090ae5e7b29
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
1 <tool id="ena_webin_cli" name="ENA Webin CLI" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="MIT" profile="24.2">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
2 <description>Submission of consensus sequences to the European Nucleotide Archive (ENA)</description>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
3 <macros>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
4 <token name="@TOOL_VERSION@">9.0.1</token>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
5 <token name="@VERSION_SUFFIX@">0</token>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
6 </macros>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
7 <requirements>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">ena-webin-cli</requirement>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
9 <requirement type="package" version="5.3">pyyaml</requirement>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
10 </requirements>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
11
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
12 <command detect_errors="exit_code"><![CDATA[
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
13 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
14 ## 1) Initialize log and credentials
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
15 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
16
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
17 ## Truncate (or create) the Galaxy-captured Webin-CLI log dataset.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
18 : > "$webin_cli_log";
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
19
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
20 ## Default path where the <configfile name="credentials"> content will be written.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
21 ## In dry-run we override this with a fake file so tests don’t require real creds.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
22 #set $credentials = 'credentials'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
23 #if $dry_run == "true":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
24 #set $credentials = './test_fake_path'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
25 touch $credentials;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
26 echo "username:test_user" >> "$credentials";
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
27 echo "password:test_password" >> "$credentials";
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
28 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
29
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
30 ## Extract username/password from the credentials file.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
31 ## NOTE: $webin_id appears in bash, so we escape it as \$webin_id.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
32 webin_id=`grep 'username' $credentials | cut -d':' -f2,2`;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
33 if [ -z "\$webin_id" ]; then
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
34 ## Fail early with guidance if no username is present.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
35 echo "No ENA credentials defined. Set your credentials via: User -> Preferences -> Manage Information" >&2;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
36 exit 1;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
37 else
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
38 ## Pull the password similarly.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
39 password=`grep 'password' $credentials | cut -d':' -f2,2`;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
40 fi;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
41
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
42 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
43 ## 2) Create a base manifest (fields common to all submissions)
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
44 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
45
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
46 ## Name of the base manifest template (we append more fields later).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
47 #set $manifest_base = 'manifest_base.tab'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
48
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
49 ## Working dirs: per-sample manifests and input sequences.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
50 mkdir -p manifests;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
51 mkdir -p fasta;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
52
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
53 ## Write assembly-level fields to the base manifest.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
54 echo -e 'ASSEMBLY_TYPE\t$assembly_type' > $manifest_base;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
55 echo -e 'COVERAGE\t$coverage' >> $manifest_base;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
56 echo -e 'PROGRAM\t$assembly_program' >> $manifest_base;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
57 #if $min_gap_length:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
58 echo -e 'MINGAPLENGTH\t$min_gap_length' >> $manifest_base;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
59 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
60 echo -e 'MOLECULETYPE\t$molecule_type' >> $manifest_base;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
61
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
62 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
63 ## 3) Build per-sample manifests depending on metadata workflow
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
64 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
65
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
66 #if $metadata_file_or_form.metadata_format == "file":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
67 ## --------------------------- FILE-DRIVEN WORKFLOW ------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
68 ## For each selected FASTA:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
69 ## - if uncompressed (.fasta), gzip it into ./fasta/<name>.fasta.gz
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
70 ## - if already .fasta.gz, symlink it into ./fasta
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
71 #import re
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
72 #for $file in $metadata_file_or_form.genome_fasta:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
73 #if $file.is_of_type('fasta'):
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
74 #set $full_name = $file.element_identifier + '.gz'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
75 gzip -c '$file' > './fasta/$full_name';
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
76 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
77 ln -s '$file' './fasta/$file.element_identifier';
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
78 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
79 #end for
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
80
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
81 ## Optionally link AGP and chromosome list files if provided (one per sample).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
82 #if $metadata_file_or_form.agp_file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
83 #for $file in $metadata_file_or_form.agp_file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
84 ln -s '$file' './fasta/$file.element_identifier';
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
85 #end for
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
86 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
87 #if $metadata_file_or_form.chr_list_file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
88 #for $file in $metadata_file_or_form.chr_list_file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
89 #set $chr_name = $file.element_identifier + '.gz'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
90 gzip -c '$file' > './fasta/$chr_name';
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
91 #end for
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
92 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
93
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
94 ## Helper script:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
95 ## - parses ENA receipt (study/sample accessions, platform),
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
96 ## - writes per-sample manifests into ./manifests using $manifest_base,
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
97 ## - emits "submit_list.tab" (one manifest path per line).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
98 python3 '$__tool_directory__/process_input.py' $metadata_file_or_form.ena_receipt $genome_fasta_files './manifests' $manifest_base >> "$webin_cli_log" 2>&1;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
99
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
100 ## Extract center name from the receipt (used as -centerName).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
101 center_name=`grep 'center_name' $metadata_file_or_form.ena_receipt | cut -f2,2 | tr -d '\n'`;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
102
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
103 ## Log if submit_list.tab exists, and dump its content for debugging.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
104 if [ -s submit_list.tab ]; then
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
105 echo "submit_list.tab present:" >> "$webin_cli_log" 2>&1;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
106 cat submit_list.tab >> "$webin_cli_log" 2>&1;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
107 else
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
108 echo "submit_list.tab is missing or empty" >> "$webin_cli_log" 2>&1;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
109 fi;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
110
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
111 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
112 ## --------------------------- FORM-DRIVEN WORKFLOW ------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
113 ## Single-manifest flow: copy base, then append form fields.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
114 #set $generated_manifest='./manifests/generated_manifest.txt'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
115 cp $manifest_base $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
116
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
117 ## Use local Cheetah vars for readability.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
118 #set $study_id = $metadata_file_or_form.study_accession
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
119 #set $sample_id = $metadata_file_or_form.sample_accession
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
120
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
121 ## Required accessions.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
122 echo -e 'STUDY\t$study_id' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
123 echo -e 'SAMPLE\t$sample_id' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
124
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
125 ## center_name is given by the user in this path.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
126 center_name='$metadata_file_or_form.center_name';
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
127
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
128 ## Assembly name and platform.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
129 echo -e 'NAME\t$metadata_file_or_form.assembly_name' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
130 echo -e 'PLATFORM\t$metadata_file_or_form.sequencing_platform' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
131
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
132 ## Normalize FASTA name referenced by the manifest.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
133 #if $metadata_file_or_form.genome_fasta.is_of_type('fasta'):
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
134 #set $fasta_file_name = $metadata_file_or_form.genome_fasta.element_identifier + '.gz'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
135 gzip -c '$metadata_file_or_form.genome_fasta' > $fasta_file_name;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
136 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
137 #set $fasta_file_name = $metadata_file_or_form.genome_fasta.element_identifier
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
138 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
139 echo -e 'FASTA\t$fasta_file_name' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
140
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
141 ## Optional extras for chromosome-scale assemblies.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
142 #if $metadata_file_or_form.agp_file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
143 echo -e 'AGP\t$metadata_file_or_form.agp_file.element_identifier' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
144 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
145 #if $metadata_file_or_form.chr_list_file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
146 ## If the name ends with .tsv, gzip it and reference the .gz; else use as-is.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
147 #set $chr_file_name = $metadata_file_or_form.chr_list_file.element_identifier + '.gz'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
148 gzip -c '$metadata_file_or_form.chr_list_file' > $chr_file_name;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
149 echo -e 'CHROMOSOME_LIST\t$chr_file_name' >> $generated_manifest;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
150 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
151 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
152
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
153 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
154 ## 4) Prepare output directory and build CLI flags safely with Cheetah
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
155 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
156
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
157 ## Webin-CLI will write receipts/logs under this directory (we later tar it).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
158 #set $outputs_dir = 'outputs'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
159 mkdir -p "$outputs_dir";
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
160
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
161 ## Build flags using #set (safer than inline #if within a single shell line).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
162 #set $test_flag = ''
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
163 #if $submit_test == "true":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
164 #set $test_flag = ' -test'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
165 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
166
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
167 ## By default we submit; in dry_run we validate instead.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
168 #set $action_flag = ' -submit'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
169 #if $dry_run == "true":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
170 #set $action_flag = ' -validate'
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
171 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
172
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
173 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
174 ## 5) Execute Webin-CLI
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
175 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
176
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
177 #if $metadata_file_or_form.metadata_format == "file":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
178 ## Loop over each manifest written by process_input.py (submit_list.tab).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
179 while IFS= read -r line; do
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
180 ## Extract the manifest path (first whitespace-delimited field).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
181 manifest=`echo "\$line" | cut -d' ' -f1`;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
182
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
183 ## Log which manifest we are submitting.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
184 echo "Submitting manifest \$manifest" >> "$webin_cli_log" 2>&1;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
185
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
186 ## Invoke Webin-CLI with computed flags.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
187 ena-webin-cli -context genome -manifest "\$manifest" -userName "'\$webin_id'" -password "'\$password'" -centerName "'\$center_name'" -inputDir './fasta' $test_flag $action_flag -outputDir $outputs_dir >> '$webin_cli_log' 2>&1 || true;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
188 done < submit_list.tab;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
189
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
190 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
191 ## Single run in "form" mode with the one generated manifest.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
192 ena-webin-cli -context genome -manifest $generated_manifest -userName "'\$webin_id'" -password "'\$password'" -centerName "'\$center_name'" -inputDir ./ $test_flag $action_flag -outputDir $outputs_dir >> "$webin_cli_log" 2>&1 || true;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
193 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
194
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
195 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
196 ## 6) Package outputs for Galaxy
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
197 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
198
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
199 ## Tar up the Webin-CLI output directory so Galaxy can collect a single dataset.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
200 tar -cf $webin_cli_outputs $outputs_dir ;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
201 ]]></command>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
202
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
203 <!--
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
204 Config files rendered by Galaxy *before* the command runs.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
205 They are plain text files placed in the job working directory and referenced above.
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
206 -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
207 <configfiles>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
208 <!-- Credentials file:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
209 Pulls stored ENA Webin details (if set) from the Galaxy user preferences and writes
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
210 simple "username:..." and "password:..." lines. The command reads from this file. -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
211 <configfile name="credentials"><![CDATA[
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
212 #set $webin_id = $__user__.extra_preferences.get('ena_webin_account|webin_id', "").strip()
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
213 #set $password = $__user__.extra_preferences.get('ena_webin_account|password', "").strip()
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
214 #if $webin_id != "":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
215 username:$webin_id
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
216 password:$password
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
217 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
218 ]]></configfile>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
219
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
220 <!-- genome_fasta_files:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
221 In "file" mode, build a JSON array containing the *element_identifier* (dataset name)
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
222 for each selected FASTA. process_input.py uses these names to derive sample aliases. -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
223 <configfile name="genome_fasta_files">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
224 #import json
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
225 #import re
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
226 #if $metadata_file_or_form.metadata_format == "file":
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
227 #set $fasta_files_list = list()
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
228 #for $file in $metadata_file_or_form.genome_fasta:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
229 $fasta_files_list.append(str($file.element_identifier))
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
230 #end for
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
231 #echo json.dumps($fasta_files_list)
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
232 #end if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
233 </configfile>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
234 </configfiles>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
235
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
236 <!--
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
237 User-facing inputs:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
238 - Assembly-level parameters
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
239 - Choice of metadata workflow (file vs form) with corresponding fields
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
240 - Submission toggles for ENA test server and validation-only
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
241 -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
242 <inputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
243 <param name="assembly_type" type="select" label="Assembly type">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
244 <option value="clone">Clone</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
245 <option value="isolate">Isolate</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
246 <option value="COVID-19 outbreak">COVID-19 outbreak</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
247 </param>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
248 <param name="assembly_program" type="text" optional="False" label="Assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
249 <param name="molecule_type" type="select" label="Molecule type">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
250 <option value="genomic RNA" selected="True">genomic RNA</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
251 <option value="viral cRNA">viral cRNA</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
252 <option value="genomic DNA">genomic DNA</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
253 </param>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
254 <param name="coverage" type="float" optional="False" value="10000" label="Coverage"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
255 <param name="min_gap_length" type="text" optional="True" label="Minimum gap length (optional)"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
256
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
257 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
258 <param name="metadata_format" type="select" label="Select the method to load study and sample metadata">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
259 <option value="form" selected="True">Fill in required submission metadata</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
260 <option value="file">I used the Galaxy ENA upload tool to submit the raw data: parse the received submission receipt</option>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
261 </param>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
262
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
263 <!-- FILE workflow: receipt + multiple FASTA (+ optional AGP/TSV) -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
264 <when value="file">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
265 <param type="data" format="txt" name="ena_receipt" optional="False" label="Submission receipt obtained from ENA upload tool"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
266 <param name="genome_fasta" type="data" optional="False" label="Select the consensus sequence assembly files or a collection of them. Use following syntax: sample_alias.fasta or sample_alias.fasta.gz" format="fasta,fasta.gz" multiple="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
267 <param name="agp_file" type="data" optional="True" label="Sequences in AGP format. Use following syntax: sample_alias.agp" format="agp" multiple="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
268 <param name="chr_list_file" type="data" optional="True" label="Chromosome List File, must be provided when the submission contains assembled chromosomes. Use following syntax: sample_alias.tsv" format="tsv" multiple="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
269 </when>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
270
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
271 <!-- FORM workflow: single, user-specified submission -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
272 <when value="form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
273 <param name="assembly_name" type="text" optional="False" label="Assembly name"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
274 <param name="study_accession" type="text" optional="False" label="Study accession"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
275 <param name="sample_accession" type="text" optional="False" label="Sample accession"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
276 <param name="sequencing_platform" type="text" optional="False" label="Sequencing platform"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
277 <param name="description" type="text" optional="True" value="" label="Description" help="Free text description of the genome assembly (optional)"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
278 <param name="center_name" type="text" optional="False" label="Center name"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
279 <param name="genome_fasta" type="data" optional="False" label="Select the consensus sequence assembly file" format="fasta,fasta.gz"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
280 <param name="agp_file" type="data" optional="True" label="Sequences in AGP format." format="agp"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
281 <param name="chr_list_file" type="data" optional="True" label="Chromosome List File, must be provided when the submission contains assembled chromosomes." format="tsv"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
282 </when>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
283 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
284
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
285 <!-- Submission controls -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
286 <param name="submit_test" type="boolean" truevalue="true" falsevalue="false" label="Submit to ENA test server" help="Uploads to the test server of ENA will not be made public and will be removed automatically in 24 hours. Performing a preliminary test upload is advised to check for errors with metadata structure. You can find these uploads at https://wwwdev.ebi.ac.uk/ena/." />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
287 <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)"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
288 </inputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
289
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
290 <!--
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
291 Outputs:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
292 - generated_manifests: discovered in manifests/ (via regex) for transparency
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
293 - webin_cli_log: combined stdout/stderr + helper echo statements
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
294 - webin_cli_outputs: tar archive of the Webin-CLI output directory
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
295 -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
296 <outputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
297 <collection name="generated_manifests" type="list" label="Generated manifests">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
298 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.txt" ext="txt" directory="manifests/"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
299 </collection>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
300 <data name="webin_cli_log" label="ENA submission log" format="txt"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
301 <data name="webin_cli_outputs" label="Webin cli outputs" format="tar"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
302
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
303 </outputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
304
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
305 <tests>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
306 <!-- Test 1: FORM workflow, no chr/AGP -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
307 <test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
308 <param name="submit_test" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
309 <param name="dry_run" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
310 <param name="assembly_type" value="isolate"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
311 <param name="assembly_program" value="Test assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
312 <param name="molecule_type" value="viral cRNA"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
313 <param name="coverage" value="10000"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
314 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
315 <param name="metadata_format" value="form"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
316 <param name="assembly_name" value="Test assembly name"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
317 <param name="study_accession" value="PRJEB49173"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
318 <param name="sample_accession" value="SAMEA11953908"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
319 <param name="sequencing_platform" value="Nanopore 0011"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
320 <param name="description" value="Test Description"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
321 <param name="center_name" value="Test center name"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
322 <param name="genome_fasta" value="phiX2.fasta"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
323 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
324 <param name="min_gap_length" value="30"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
325 <output name="webin_cli_log">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
326 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
327 <has_text_matching expression="ERROR: Invalid submission account user name or password\."/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
328 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
329 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
330 <output_collection name="generated_manifests">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
331 <element name="generated_manifest">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
332 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
333 <has_text_matching expression="(?m)^FASTA\tphiX2\.fasta\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
334 <has_text_matching expression="(?m)^CHROMOSOME_LIST\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
335 <has_text_matching expression="(?m)^AGP\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
336 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
337 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
338 </output_collection>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
339 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
340
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
341 <!-- Test 2: FORM workflow, chr list present -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
342 <test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
343 <param name="submit_test" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
344 <param name="dry_run" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
345 <param name="assembly_type" value="isolate"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
346 <param name="assembly_program" value="Test assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
347 <param name="molecule_type" value="genomic DNA"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
348 <param name="coverage" value="10000"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
349 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
350 <param name="metadata_format" value="form"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
351 <param name="assembly_name" value="Test assembly name"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
352 <param name="study_accession" value="PRJEB49173"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
353 <param name="sample_accession" value="SAMEA11953908"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
354 <param name="sequencing_platform" value="Nanopore 0011"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
355 <param name="description" value="Test Description"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
356 <param name="center_name" value="Test center name"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
357 <param name="genome_fasta" value="phiX3.fasta"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
358 <param name="chr_list_file" value="phiX3.tsv"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
359 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
360 <param name="min_gap_length" value="30"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
361 <output name="webin_cli_log">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
362 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
363 <has_text_matching expression="ERROR: Invalid submission account user name or password\."/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
364 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
365 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
366 <output_collection name="generated_manifests">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
367 <element name="generated_manifest">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
368 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
369 <has_text_matching expression="(?m)^FASTA\tphiX3\.fasta\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
370 <has_text_matching expression="(?m)^CHROMOSOME_LIST\tphiX3\.tsv\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
371 <has_text_matching expression="(?m)^AGP\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
372 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
373 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
374 </output_collection>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
375 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
376
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
377 <!-- Test 3: FILE workflow, two FASTAs; one missing metadata -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
378 <test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
379 <param name="submit_test" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
380 <param name="dry_run" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
381 <param name="assembly_type" value="isolate"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
382 <param name="assembly_program" value="Test assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
383 <param name="molecule_type" value="viral cRNA"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
384 <param name="coverage" value="10000"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
385 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
386 <param name="metadata_format" value="file"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
387 <param name="ena_receipt" value="receipt_sample_nophiX2.txt"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
388 <param name="genome_fasta" value="phiX2.fasta.gz,sample_alias_001.fasta.gz"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
389 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
390 <param name="min_gap_length" value="30"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
391 <output name="webin_cli_log">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
392 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
393 <has_text_matching expression="Processing phiX2"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
394 <has_text_matching expression="No metadata found for sample phiX2"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
395 <has_text_matching expression="Processing sample_alias_001"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
396 <has_text_matching expression="Submitting manifest .*manifests/sample_alias_001\.manifest\.txt"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
397 <has_text_matching expression="ERROR: Invalid submission account user name or password\. Please try enclosing your password in single quotes\."/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
398 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
399 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
400 <output_collection name="generated_manifests">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
401 <element name="sample_alias_001.manifest">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
402 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
403 <has_text_matching expression="(?m)^FASTA\tsample_alias_001\.fasta\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
404 <has_text_matching expression="(?m)^CHROMOSOME_LIST\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
405 <has_text_matching expression="(?m)^AGP\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
406 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
407 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
408 </output_collection>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
409 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
410
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
411 <!-- Test 4: FILE workflow, single FASTA with metadata -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
412 <test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
413 <param name="submit_test" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
414 <param name="dry_run" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
415 <param name="assembly_type" value="isolate"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
416 <param name="assembly_program" value="Test assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
417 <param name="molecule_type" value="viral cRNA"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
418 <param name="coverage" value="10000"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
419 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
420 <param name="metadata_format" value="file"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
421 <param name="ena_receipt" value="receipt_sample.txt"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
422 <param name="genome_fasta" value="sample_alias_001.fasta.gz"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
423 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
424 <param name="min_gap_length" value="30"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
425 <output name="webin_cli_log">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
426 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
427 <has_text_matching expression="Processing sample_alias_001"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
428 <has_text_matching expression="ERROR: Invalid submission account user name or password\. Please try enclosing your password in single quotes\."/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
429 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
430 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
431 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
432
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
433 <!-- Test 5: FILE workflow, AGP for phiX2 -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
434 <test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
435 <param name="submit_test" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
436 <param name="dry_run" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
437 <param name="assembly_type" value="isolate"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
438 <param name="assembly_program" value="Test assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
439 <param name="molecule_type" value="genomic DNA"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
440 <param name="coverage" value="10000"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
441 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
442 <param name="metadata_format" value="file"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
443 <param name="ena_receipt" value="receipt_sample.txt"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
444 <param name="genome_fasta" value="phiX2.fasta"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
445 <param name="agp_file" value="phiX2.agp"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
446 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
447 <param name="min_gap_length" value="30"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
448 <output name="webin_cli_log">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
449 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
450 <has_text_matching expression="Processing phiX2"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
451 <has_text_matching expression="ERROR: Invalid submission account user name or password\. Please try enclosing your password in single quotes\."/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
452 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
453 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
454 <output_collection name="generated_manifests">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
455 <element name="phiX2.manifest">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
456 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
457 <has_text_matching expression="(?m)^FASTA\tphiX2\.fasta\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
458 <has_text_matching expression="(?m)^AGP\tphiX2\.agp$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
459 <has_text_matching expression="(?m)^CHROMOSOME_LIST\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
460 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
461 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
462 </output_collection>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
463 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
464
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
465 <!-- Test 6: FILE workflow, chr list for phiX3 + extra fasta -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
466 <test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
467 <param name="submit_test" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
468 <param name="dry_run" value="true" />
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
469 <param name="assembly_type" value="isolate"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
470 <param name="assembly_program" value="Test assembly program"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
471 <param name="molecule_type" value="genomic DNA"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
472 <param name="coverage" value="10000"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
473 <conditional name="metadata_file_or_form">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
474 <param name="metadata_format" value="file"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
475 <param name="ena_receipt" value="receipt_sample_phiX3.txt"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
476 <param name="genome_fasta" value="phiX3.fasta,phiX2.fasta.gz"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
477 <param name="chr_list_file" value="phiX3.tsv"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
478 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
479 <param name="min_gap_length" value="30"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
480 <output name="webin_cli_log">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
481 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
482 <has_text_matching expression="Processing phiX3"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
483 <has_text_matching expression="ERROR: Invalid submission account user name or password\. Please try enclosing your password in single quotes\."/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
484 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
485 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
486 <output_collection name="generated_manifests">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
487 <element name="phiX2.manifest">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
488 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
489 <has_text_matching expression="(?m)^FASTA\tphiX2\.fasta\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
490 <has_text_matching expression="(?m)^CHROMOSOME_LIST\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
491 <has_text_matching expression="(?m)^AGP\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
492 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
493 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
494 <element name="phiX3.manifest">
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
495 <assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
496 <has_text_matching expression="(?m)^FASTA\tphiX3\.fasta\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
497 <has_text_matching expression="(?m)^CHROMOSOME_LIST\tphiX3\.tsv\.gz$"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
498 <has_text_matching expression="(?m)^AGP\t" negate="true"/>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
499 </assert_contents>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
500 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
501 </output_collection>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
502 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
503 </tests>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
504
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
505
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
506
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
507 <!-- Help text + citation -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
508 <help><![CDATA[
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
509 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).
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
510
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
511 .. class:: warningmark
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
512
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
513 The ENA upload tool won't work unless you have provided an ENA Webin ID in User > Preferences > Manage Information > ENA Webin account details.]]></help>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
514
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
515 <citations>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
516 <citation type="doi">10.1093/nar/gkac1051</citation>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
517 </citations>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
518 </tool>