annotate ena_webin_cli.xml @ 1:1090ae5e7b29 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
author iuc
date Fri, 24 Oct 2025 08:03:03 +0000
parents 7f669682f4ac
children
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>
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
5 <token name="@VERSION_SUFFIX@">1</token>
0
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 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
16 echo "Initializing log and credentials";
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
17
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
18 ## 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
19 : > "$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
20
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
21 ## 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
22 ## NOTE: $webin_id appears in bash, so we escape it as \$webin_id.
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
23 webin_id=`grep 'username' $credentials | cut -d':' -f2`;
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
24 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
25 ## 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
26 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
27 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
28 else
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
29 ## Pull the password similarly.
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
30 password=`grep 'password' $credentials | cut -d':' -f2`;
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
31 fi;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
32
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
33 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
34 ## 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
35 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
36 echo "Creating a base manifest (fields common to all submissions)";
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
37
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
38 ## 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
39 #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
40
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
41 ## 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
42 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
43 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
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 ## 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
46 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
47 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
48 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
49 #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
50 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
51 #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
52 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
53
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
54 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
55 ## 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
56 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
57 echo "Building per-sample manifests depending on metadata workflow";
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
58
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
59 #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
60 ## --------------------------- 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
61 ## 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
62 ## - 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
63 ## - 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
64 #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
65 #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
66 #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
67 #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
68 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
69 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
70 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
71 #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
72 #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
73
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
74 ## 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
75 #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
76 #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
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 for
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 if
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
80 #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
81 #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
82 #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
83 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
84 #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
85 #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
86
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
87 ## 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
88 ## - 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
89 ## - 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
90 ## - 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
91 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
92
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
93 ## 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
94 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
95
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
96 ## 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
97 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
98 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
99 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
100 else
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
101 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
102 fi;
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
103
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
104 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
105 ## --------------------------- 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
106 ## 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
107 #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
108 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
109
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
110 ## 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
111 #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
112 #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
113
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
114 ## 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
115 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
116 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
117
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
118 ## 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
119 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
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 ## 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
122 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
123 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
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 ## 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
126 #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
127 #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
128 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
129 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
130 #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
131 #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
132 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
133
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
134 ## 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
135 #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
136 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
137 #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
138 #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
139 ## 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
140 #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
141 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
142 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
143 #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
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
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
146 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
147 ## 4) Prepare output directory and build CLI flags
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
148 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
149 echo "Preparing output directory and build CLI flags";
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
150
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
151 ## 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
152 #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
153 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
154
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
155 ## 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
156 #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
157 #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
158 #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
159 #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
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 ## 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
162 #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
163 #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
164 #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
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 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
168 ## 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
169 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
170 echo "Executing Webin-CLI";
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
171
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
172 #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
173 ## 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
174 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
175 ## 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
176 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
177
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
178 ## 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
179 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
180
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
181 ## Invoke Webin-CLI with computed flags.
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
182 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;
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
183 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
184
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
185 #else:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
186 ## Single run in "form" mode with the one generated manifest.
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
187 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;
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
188 #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
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 ## -----------------------------------------------------------------------------
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
191 ## 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
192 ## -----------------------------------------------------------------------------
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
193 echo "Packaging outputs for Galaxy";
0
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 ## 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
196 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
197 ]]></command>
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 <!--
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
200 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
201 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
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 <configfiles>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
204 <!-- 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
205 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
206 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
207 <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
208 #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
209 #set $password = $__user__.extra_preferences.get('ena_webin_account|password', "").strip()
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
210 ## In dry-run we add fake creds when not provided.
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
211 #if $webin_id == "" and $dry_run == "true":
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
212 #set $webin_id = "test-webin"
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
213 #set $password = "test-password"
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
214 #end if
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
215 #if $webin_id != "" :
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
216 username:$webin_id
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
217 password:$password
0
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
218 #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
219 ]]></configfile>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
220
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
221 <!-- 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
222 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
223 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
224 <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
225 #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
226 #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
227 #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
228 #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
229 #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
230 $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
231 #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
232 #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
233 #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
234 </configfile>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
235 </configfiles>
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 <!--
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
238 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
239 - 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
240 - 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
241 - 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
242 -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
243 <inputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
244 <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
245 <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
246 <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
247 <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
248 </param>
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="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
250 <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
251 <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
252 <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
253 <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
254 </param>
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="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
256 <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
257
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
258 <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
259 <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
260 <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
261 <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
262 </param>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
263
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
264 <!-- 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
265 <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
266 <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
267 <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
268 <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
269 <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
270 </when>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
271
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
272 <!-- 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
273 <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
274 <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
275 <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
276 <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
277 <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
278 <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
279 <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
280 <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
281 <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
282 <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
283 </when>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
284 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
285
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
286 <!-- 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
287 <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
288 <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
289 </inputs>
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 <!--
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
292 Outputs:
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
293 - 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
294 - 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
295 - 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
296 -->
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
297 <outputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
298 <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
299 <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
300 </collection>
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_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
302 <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
303
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
304 </outputs>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
305
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
306 <tests>
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 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
308 <test>
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="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
310 <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
311 <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
312 <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
313 <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
314 <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
315 <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
316 <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
317 <param name="assembly_name" value="Test assembly name"/>
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
318 <param name="study_accession" value="FAKE001"/>
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
319 <param name="sample_accession" value="FAKESAMP001"/>
0
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="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
321 <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
322 <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
323 <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
324 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
325 <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
326 <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
327 <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
328 <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
329 </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
330 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
331 <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
332 <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
333 <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
334 <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
335 <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
336 <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
337 </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
338 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
339 </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
340 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
341
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 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
343 <test>
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="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
345 <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
346 <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
347 <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
348 <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
349 <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
350 <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
351 <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
352 <param name="assembly_name" value="Test assembly name"/>
1
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
353 <param name="study_accession" value="FAKE001"/>
1090ae5e7b29 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit 6f9ce1aba91681e831f2649fb36b74cc3d572eb3
iuc
parents: 0
diff changeset
354 <param name="sample_accession" value="FAKESAMP001"/>
0
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="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
356 <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
357 <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
358 <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
359 <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
360 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
361 <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
362 <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
363 <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
364 <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
365 </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
366 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
367 <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
368 <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
369 <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
370 <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
371 <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
372 <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
373 </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
374 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
375 </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
376 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
377
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 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
379 <test>
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="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
381 <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
382 <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
383 <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
384 <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
385 <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
386 <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
387 <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
388 <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
389 <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
390 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
391 <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
392 <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
393 <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
394 <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
395 <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
396 <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
397 <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
398 <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
399 </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
400 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
401 <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
402 <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
403 <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
404 <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
405 <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
406 <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
407 </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
408 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
409 </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
410 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
411
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 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
413 <test>
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="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
415 <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
416 <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
417 <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
418 <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
419 <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
420 <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
421 <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
422 <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
423 <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
424 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
425 <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
426 <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
427 <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
428 <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
429 <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
430 </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
431 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
432 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
433
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 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
435 <test>
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="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
437 <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
438 <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
439 <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
440 <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
441 <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
442 <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
443 <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
444 <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
445 <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
446 <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
447 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
448 <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
449 <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
450 <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
451 <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
452 <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
453 </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
454 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
455 <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
456 <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
457 <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
458 <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
459 <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
460 <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
461 </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
462 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
463 </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
464 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
465
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 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
467 <test>
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="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
469 <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
470 <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
471 <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
472 <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
473 <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
474 <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
475 <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
476 <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
477 <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
478 <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
479 </conditional>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
480 <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
481 <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
482 <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
483 <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
484 <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
485 </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
486 </output>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
487 <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
488 <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
489 <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
490 <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
491 <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
492 <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
493 </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
494 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
495 <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
496 <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
497 <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
498 <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
499 <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
500 </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
501 </element>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
502 </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
503 </test>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
504 </tests>
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
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 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
509 <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
510 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
511
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
512 .. 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
513
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
514 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
515
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
516 <citations>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
517 <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
518 </citations>
7f669682f4ac planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ena_webin_cli commit abb15194a196267142d88b9348facf9e85e601ef
iuc
parents:
diff changeset
519 </tool>