comparison ncbi_egapx.xml @ 9:28ab345ebab3 draft

planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit 92ff2adad69b7a8a49d067e525a97f3ec25a275a
author richard-burhans
date Mon, 14 Oct 2024 18:07:07 +0000
parents 42734f3397cd
children 5bec47dfe99a
comparison
equal deleted inserted replaced
8:908c494fa84e 9:28ab345ebab3
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="edam_ontology"/> 6 <expand macro="edam_ontology"/>
7 <expand macro="requirements"/> 7 <expand macro="requirements"/>
8 <command detect_errors="aggressive"><![CDATA[ 8 <command detect_errors="aggressive"><![CDATA[
9 #if str($cond_input_style.input_style) == "history": 9 #if str($cond_input_style.input_style) == "fillform":
10 #set yamlconfig = $yamlin 10 #set yamlconfig = "egapx.yaml"
11 echo '# yaml generated by ncbi_egapx.xml' > '$yamlconfig' &&
12 #if str($reference_genome.genome_type_select) == "history"
13 echo 'genome: $reference_genome.genome' >> '$yamlconfig' &&
14 #elif str($reference_genome.genome_type_select) == "indexed":
15 echo 'genome: $reference_genome.genome.fields.path' >> '$yamlconfig' &&
16 #else:
17 echo 'genome: $reference_genome.uri' >> '$yamlconfig' &&
18 #end if
19 echo 'taxid: $taxid' >> '$yamlconfig' &&
20 echo 'reads:' >> '$yamlconfig' &&
21 #if str($condrnaseq.rna_type_select) == "list":
22 #set rs = $rnaseq.split()
23 #set rsplit = [x.strip() for x in $rs]
24 #for $r in $rsplit:
25 echo ' - $r' >> '$yamlconfig' &&
26 #end for
27 #else:
28 #for $r in $rnaseq:
29 echo ' - $r' >> '$yamlconfig' &&
30 #end for
31 #end if
32 #if $proteins:
33 echo 'proteins: $proteins' >> '$yamlconfig' &&
34 #end if
35 #if len($xtra.strip()) > 0:
36 #set lxtra = $xtra.split("\n")
37 #for row in $lxtra:
38 echo '$row' >> '$yamlconfig' &&
39 #end for
40 #end if
41 echo '' >> '$yamlconfig' &&
42 echo "Calculated contents of egapx yaml" &&
43 cat '$yamlconfig' &&
11 #else: 44 #else:
12 #set yamlconfig = "egapx.yaml" 45 #set yamlconfig = $yamlin
13 rm -rf '$yamlconfig' &&
14 touch '$yamlconfig' &&
15 echo '# yaml generated by ncbi_egapx.xml' >> '$yamlconfig' &&
16 echo 'taxid: $taxid' >> '$yamlconfig' &&
17 #if str($reference_genome.genome_type_select) == "indexed":
18 echo 'genome: $reference_genome.genome.fields.path' >> '$yamlconfig' &&
19 #elif str($reference_genome.genome_type_select) == "history"
20 echo 'genome: $reference_genome.genome' >> '$yamlconfig' &&
21 #else:
22 echo 'genome: $reference_genome.uri' >> '$yamlconfig' &&
23 #end if
24 echo 'reads:' >> '$yamlconfig' &&
25 #if str($condrnaseq.rna_type_select) == "history":
26 #for $r in $rnaseq:
27 echo ' - $r' >> '$yamlconfig' &&
28 #end for
29 #else:
30 #set rs = $rnaseq.split()
31 #set rsplit = [x.strip() for x in $rs]
32 #for $r in $rsplit:
33 echo ' - $r' >> '$yamlconfig' &&
34 #end for
35 #end if
36 #if len($xtra.strip()) > 0:
37 #set lxtra = $xtra.split("\n")
38 #for row in $lxtra:
39 echo '$row' >> '$yamlconfig' &&
40 #end for
41 #end if
42 echo '' >> '$yamlconfig' &&
43 echo "Calculated contents of egapx yaml" &&
44 cat '$yamlconfig' &&
45 #end if 46 #end if
46 source /galaxy/env.bash && 47 source /galaxy/env.bash &&
47 echo \${PATH} && 48 echo \${PATH} &&
48 ln -s /galaxy/egapx/egapx_config && 49 ln -s /galaxy/egapx/egapx_config &&
49 python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out' 50 python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out'
50 ]]></command> 51 ]]></command>
51 <inputs> 52 <inputs>
52 <conditional name="cond_input_style"> 53 <conditional name="cond_input_style">
53 <param name="input_style" type="select" label="Fill in a tool form or use an existing yaml configuration from the current history?" 54 <param name="input_style" type="select" label="Fill in a tool form or use an existing yaml configuration from the current history?"
54 help="Use a pre-prepared yaml if available. Use the tool form if history files are needed as rna-seq or reference genome inputs for this job"> 55 help="Use the tool form to select inputs from the history, or use a pre-prepared yaml file.">
55 <option selected="True" value="history">Use a pre-prepared yaml egapx configuration</option> 56 <option value="fillform" selected="True">Provide configuration details for conversion into a configuration yaml</option>
56 <option value="fillform">Provide configuration details for conversion into a configuration yaml</option> 57 <option value="history">Use a pre-prepared yaml egapx configuration</option>
57 </param> 58 </param>
58 <when value="history"> 59 <when value="fillform">
59 <param name="yamlin" type="data" optional="false" label="egapx configuration yaml file to pass to Nextflow" help="" format="yaml,txt"/> 60 <conditional name="reference_genome">
60 </when> 61 <param name="genome_type_select" type="select" label="Reference genome source for mapping supplied RNA-seq reads"
61 <when value="fillform"> 62 help="Select a built in, history or remote URI for the reference genome fasta">
62 <param name="taxid" type="text" optional="false" label="NCBI Taxon ID" help="Used to identify the HMM model files needed"/> 63 <option value="history" selected="True">Use a genome fasta file from the current history</option>
63 <conditional name="reference_genome"> 64 <option value="indexed">Use a Galaxy server built-in genome</option>
64 <param name="genome_type_select" type="select" label="Reference genome source for mapping supplied RNA-seq reads" 65 <option value="uri">Provide a remote web link URI ("https://...") pointing at the required genome reference fasta file</option>
65 help="Select a built in, history or remote URI for the reference genome fasta"> 66 </param>
66 <option value="indexed">Use a Galaxy server built-in genome</option> 67 <when value="history">
67 <option value="history" selected="True">Use a genome fasta file from the current history</option> 68 <param name="genome" type="data" format="fasta" label="Select the reference genome fasta from the current history"/>
68 <option value="uri">Provide a remote web link URI ("https://...") pointing at the required genome reference fasta file</option> 69 </when>
69 </param> 70 <when value="indexed">
70 <when value="indexed"> 71 <param name="genome" type="select" label="Select a built in reference genome or custom genome"
71 <param name="genome" type="select" optional="true" label="Select a built in reference genome or custom genome" 72 help="If not listed, add a custom genome or use a reference genome from the history">
72 help="If not listed, add a custom genome or use a reference genome from the history"> 73 <options from_data_table="all_fasta">
73 <options from_data_table="all_fasta"> 74 <validator message="No genomes are available " type="no_options"/>
74 <validator message="No genomes are available " type="no_options"/> 75 </options>
75 </options> 76 </param>
77 </when>
78 <when value="uri">
79 <param name="uri" type="text" label="URI pointing to the reference genome fasta file"/>
80 </when>
81 </conditional>
82 <param name="taxid" type="text" label="NCBI Taxon ID" help="Used to identify the HMM model files needed"/>
83 <conditional name="condrnaseq">
84 <param name="rna_type_select" type="select" label="RNA sequence data source"
85 help="Select RNAseq input data from history or input a list of SRA identifiers or remote URI">
86 <option value="list" selected="True">Type in a list of SRA identifiers and/or remote RNA-seq fasta URI</option>
87 <option value="history">Select one or more RNA-seq fastq datasets from the current history</option>
88 </param>
89 <when value="list">
90 <param name="rnaseq" type="text" area="true" label="List all required individual RNA-seq URI or SRA identifiers, separated by spaces or newlines"
91 help="Either a working URI for a RNA-seq fasta, or a bare SRA identifier will work - can be mixed">
92 <validator type="empty_field"/>
93 </param>
94 </when>
95 <when value="history">
96 <param name="rnaseq" type="data" format="fastqsanger,fastqsanger.gz" multiple="true" label="Select multiple RNA-seq fastqsanger inputs from the current history"
97 help="All selected rna-seq fastqsanger will be added to the yaml for egapx configuration"/>
98 </when>
99 </conditional>
100 <param name="proteins" type="data" format="fasta,tasta.gz" optional="true" label="Select a protein set"/>
101 <param name="xtra" type="text" area="true" label="Additional yaml to append to the egapx.yaml configuration"
102 help="Not normally needed but useful for testing additional configuration elements">
103 <sanitizer invalid_char="">
104 <valid initial="string.printable"/>
105 </sanitizer>
76 </param> 106 </param>
77 </when> 107 </when>
78 <when value="history"> 108 <when value="history">
79 <param name="genome" type="data" optional="true" format="fasta" label="Select the reference genome fasta from the current history"/> 109 <param name="yamlin" type="data" format="yaml,txt" label="egapx configuration yaml file to pass to Nextflow"/>
80 </when> 110 </when>
81 <when value="uri"> 111 </conditional>
82 <param name="uri" type="text" optional="false" label="URI pointing to the reference genome fasta file" help=""/>
83 </when>
84 </conditional>
85 <conditional name="condrnaseq">
86 <param name="rna_type_select" type="select" label="RNA sequence data source" help="Select RNAseq input data from history or input a list of SRA identifiers or remote URI">
87 <option selected="True" value="list">Type in a list of SRA identifiers and/or remote RNA-seq fasta URI</option>
88 <option value="history">Select one or more RNA-seq fastq datasets from the current history</option>
89 </param>
90 <when value="history">
91 <param name="rnaseq" type="data" format="fastqsanger, fastqsanger.gz" optional="false" multiple="true"
92 label="Select multiple RNA-seq fastqsanger inputs from the current history" help="All selected rna-seq fastqsanger will be added to the yaml for egapx configuration"/>
93 </when>
94 <when value="list">
95 <param name="rnaseq" type="text" area="true" optional="false" label="List all required individual RNA-seq URI or SRA identifiers, separated by spaces or newlines"
96 help="Either a working URI for a RNA-seq fasta, or a bare SRA identifier will work - can be mixed">
97 <validator type="empty_field"/>
98 </param>
99 </when>
100 </conditional>
101 <param name="xtra" type="text" area="true" label="Additional yaml to append to the egapx.yaml configuration"
102 help="Not normally needed but useful for testing additional configuration elements">
103 <sanitizer invalid_char="">
104 <valid initial="string.printable">
105 </valid>
106 </sanitizer>
107 </param>
108 </when>
109 </conditional>
110 </inputs> 112 </inputs>
111 <outputs> 113 <outputs>
112 <data name="output" format="gff" label="EGAPx annotation for ${on_string}" from_work_dir="egapx_out/accept.gff"/> 114 <data name="output" format="gff" label="EGAPx annotation for ${on_string}" from_work_dir="egapx_out/accept.gff"/>
113 <collection name="nextflow_stats" label="EGAPx nextflow stats for ${on_string}" type="list"> 115 <collection name="nextflow_stats" type="list" label="EGAPx nextflow stats for ${on_string}">
114 <data name="nf_log" format="txt" label="Nextflow execution log" from_work_dir="egapx_out/nextflow.log"/> 116 <data name="nf_log" format="txt" label="Nextflow execution log" from_work_dir="egapx_out/nextflow.log"/>
115 <data name="nf_report" format="html" label="Nextflow execution report" from_work_dir="egapx_out/run.report.html"/> 117 <data name="nf_report" format="html" label="Nextflow execution report" from_work_dir="egapx_out/run.report.html"/>
116 <data name="nf_trace" format="tabular" label="Nextflow trace file" from_work_dir="egapx_out/run.trace.txt"/> 118 <data name="nf_trace" format="tabular" label="Nextflow trace file" from_work_dir="egapx_out/run.trace.txt"/>
117 <data name="nf_timeline" format="html" label="Nextflow execution timeline" from_work_dir="egapx_out/run.timeline.html"/> 119 <data name="nf_timeline" format="html" label="Nextflow execution timeline" from_work_dir="egapx_out/run.timeline.html"/>
118 <data name="nf_params" format="yaml" label="Nextflow run parameters" from_work_dir="egapx_out/run_params.yaml"/> 120 <data name="nf_params" format="yaml" label="Nextflow run parameters" from_work_dir="egapx_out/run_params.yaml"/>
119 </collection> 121 </collection>
120 </outputs> 122 </outputs>
121 <tests> 123 <tests>
122 <test expect_test_failure="true"> 124 <test expect_test_failure="true">
123 <param name="input_style" value="history"/> 125 <param name="input_style" value="history"/>
124 <param name="yamlin" value="input.yaml"/> 126 <param name="yamlin" value="input.yaml"/>
125 <output name="output"><assert_contents><has_size min="1"/></assert_contents></output> 127 <output name="output"><assert_contents><has_size min="1"/></assert_contents></output>
126 <output_collection name="nextflow_stats" type="list"> 128 <output_collection name="nextflow_stats" type="list">
127 <element name="nf_log"><assert_contents><has_size min="1"/></assert_contents></element> 129 <element name="nf_log"><assert_contents><has_size min="1"/></assert_contents></element>
128 <element name="nf_report"><assert_contents><has_size min="1"/></assert_contents></element> 130 <element name="nf_report"><assert_contents><has_size min="1"/></assert_contents></element>
129 <element name="nf_trace"><assert_contents><has_size min="1"/></assert_contents></element> 131 <element name="nf_trace"><assert_contents><has_size min="1"/></assert_contents></element>
130 <element name="nf_timeline"><assert_contents><has_size min="1"/></assert_contents></element> 132 <element name="nf_timeline"><assert_contents><has_size min="1"/></assert_contents></element>
131 <element name="nf_params"><assert_contents><has_size min="1"/></assert_contents></element> 133 <element name="nf_params"><assert_contents><has_size min="1"/></assert_contents></element>
132 </output_collection> 134 </output_collection>
133 </test> 135 </test>
134 <test expect_test_failure="true"> 136 <test expect_test_failure="true">
135 <param name="input_style" value="fillform"/> 137 <param name="input_style" value="fillform"/>
136 <param name="taxid" value="6954"/> 138 <param name="taxid" value="6954"/>
137 <param name="genome_type_select" value="uri"/> 139 <param name="genome_type_select" value="uri"/>
138 <param name="uri" value="https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/020/809/275/GCF_020809275.1_ASM2080927v1/GCF_020809275.1_ASM2080927v1_genomic.fna.gz"/> 140 <param name="uri" value="https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/020/809/275/GCF_020809275.1_ASM2080927v1/GCF_020809275.1_ASM2080927v1_genomic.fna.gz"/>
139 <param name="rna_type_select" value="list"/> 141 <param name="rna_type_select" value="list"/>
140 <param name="rnaseq" value="https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR8506572.1 https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR8506572.2 https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR9005248.1 https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR9005248.2"/> 142 <param name="rnaseq" value="https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR8506572.1 https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR8506572.2 https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR9005248.1 https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/sample_data/Dermatophagoides_farinae_small/SRR9005248.2"/>
141 <param name="xtra" value="proteins: []&#10;hmm: https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/gnomon/hmm_parameters/6956.params&#10;tasks:&#10; star_wnode:&#10; star_wnode: -cpus-per-worker 4"/> 143 <param name="xtra" value="proteins: []&#10;hmm: https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/gnomon/hmm_parameters/6956.params&#10;tasks:&#10; star_wnode:&#10; star_wnode: -cpus-per-worker 4"/>
142 <output name="output"><assert_contents><has_size min="1"/></assert_contents></output> 144 <output name="output"><assert_contents><has_size min="1"/></assert_contents></output>
143 <output_collection name="nextflow_stats" type="list"> 145 <output_collection name="nextflow_stats" type="list">
144 <element name="nf_log"><assert_contents><has_size min="1"/></assert_contents></element> 146 <element name="nf_log"><assert_contents><has_size min="1"/></assert_contents></element>
145 <element name="nf_report"><assert_contents><has_size min="1"/></assert_contents></element> 147 <element name="nf_report"><assert_contents><has_size min="1"/></assert_contents></element>
146 <element name="nf_trace"><assert_contents><has_size min="1"/></assert_contents></element> 148 <element name="nf_trace"><assert_contents><has_size min="1"/></assert_contents></element>
147 <element name="nf_timeline"><assert_contents><has_size min="1"/></assert_contents></element> 149 <element name="nf_timeline"><assert_contents><has_size min="1"/></assert_contents></element>
148 <element name="nf_params"><assert_contents><has_size min="1"/></assert_contents></element> 150 <element name="nf_params"><assert_contents><has_size min="1"/></assert_contents></element>
149 </output_collection> 151 </output_collection>
150 </test> 152 </test>
151 </tests> 153 </tests>
152 <help><![CDATA[ 154 <help><![CDATA[
153 Galaxy tool wrapping the Eukaryotic Genome Annotation Pipeline (EGAPx) 155 Galaxy tool wrapping the Eukaryotic Genome Annotation Pipeline (EGAPx)
154 ================================================================================================= 156 =================================================================================================
155 157
156 .. class:: warningmark 158 .. class:: warningmark
157 159
304 2024-03-27 11:19:18 129 .command.sh 306 2024-03-27 11:19:18 129 .command.sh
305 2024-03-27 11:20:24 276 .command.trace 307 2024-03-27 11:20:24 276 .command.trace
306 2024-03-27 11:20:25 1 .exitcode 308 2024-03-27 11:20:25 1 .exitcode
307 $ aws s3 ls s3://temp_datapath/D_farinae/96/621c4ba4e6e87a4d869c696fe50034/output/ 309 $ aws s3 ls s3://temp_datapath/D_farinae/96/621c4ba4e6e87a4d869c696fe50034/output/
308 2024-03-27 11:20:24 17127134 aligns.paf 310 2024-03-27 11:20:24 17127134 aligns.paf
309 311 ]]></help>
310 312 <expand macro="citations"/>
311 ]]></help>
312 <expand macro="citations"/>
313 </tool> 313 </tool>