Mercurial > repos > richard-burhans > ncbi_egapx
comparison ncbi_egapx.xml @ 4:539ea4dee35a draft
planemo upload for repository https://github.com/richard-burhans/galaxytools/tree/main/tools/ncbi_egapx commit f47ba0b127d52901402fe9f830a0095c6f8fa36a
author | richard-burhans |
---|---|
date | Tue, 10 Sep 2024 20:09:41 +0000 |
parents | 4420dd857c41 |
children | 42734f3397cd |
comparison
equal
deleted
inserted
replaced
3:4420dd857c41 | 4:539ea4dee35a |
---|---|
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) == "history": |
10 #set yamlconfig = $yamlin | 10 #set yamlconfig = $yamlin |
11 #else: | 11 #else: |
12 #set yamlconfig = 'egapx.yaml' | 12 #set yamlconfig = "egapx.yaml" |
13 rm -rf 'egapx.yaml' && | 13 rm -rf '$yamlconfig' && |
14 touch 'egapx.yaml' && | 14 touch '$yamlconfig' && |
15 echo '# yaml generated by ncbi_egapx.xml' >> egapx.yaml && | 15 echo '# yaml generated by ncbi_egapx.xml' >> '$yamlconfig' && |
16 echo 'taxid: $taxid' >> egapx.yaml && | 16 echo 'taxid: $taxid' >> '$yamlconfig' && |
17 #if str($reference_genome.genome_type_select) == "indexed": | 17 #if str($reference_genome.genome_type_select) == "indexed": |
18 echo 'genome: $reference_genome.genome.fields.path' >> 'egapx.yaml' && | 18 echo 'genome: $reference_genome.genome.fields.path' >> '$yamlconfig' && |
19 #elif str($reference_genome.genome_type_select) == "history" | 19 #elif str($reference_genome.genome_type_select) == "history" |
20 echo 'genome: $reference_genome.genome' >> 'egapx.yaml' && | 20 echo 'genome: $reference_genome.genome' >> '$yamlconfig' && |
21 #else: | 21 #else: |
22 echo 'genome: $reference_genome.uri' >> 'egapx.yaml' && | 22 echo 'genome: $reference_genome.uri' >> '$yamlconfig' && |
23 #end if | 23 #end if |
24 echo 'reads:' >> 'egapx.yaml' && | 24 echo 'reads:' >> '$yamlconfig' && |
25 #if str($condrnaseq.rna_type_select) == "history": | 25 #if str($condrnaseq.rna_type_select) == "history": |
26 #for $r in $rnaseq: | 26 #for $r in $rnaseq: |
27 echo ' - $r' >> 'egapx.yaml' && | 27 echo ' - $r' >> '$yamlconfig' && |
28 #end for | 28 #end for |
29 #else: | 29 #else: |
30 #set rs = $rnaseq.split() | 30 #set rs = $rnaseq.split() |
31 #set rsplit = [x.strip() for x in $rs] | 31 #set rsplit = [x.strip() for x in $rs] |
32 #for $r in $rsplit: | 32 #for $r in $rsplit: |
33 echo ' - $r' >> 'egapx.yaml' && | 33 echo ' - $r' >> '$yamlconfig' && |
34 #end for | 34 #end for |
35 #end if | 35 #end if |
36 #if len($xtra.strip()) > 0: | 36 #if len($xtra.strip()) > 0: |
37 #set lxtra = $xtra.split('\n') | 37 #set lxtra = $xtra.split("\n") |
38 #for row in $lxtra: | 38 #for row in $lxtra: |
39 echo '$row' >> 'egapx.yaml' && | 39 echo '$row' >> '$yamlconfig' && |
40 #end for | 40 #end for |
41 #end if | 41 #end if |
42 echo '' >> 'egapx.yaml' && | 42 echo '' >> '$yamlconfig' && |
43 echo "Calculated contents of egapx yaml" && | 43 echo "Calculated contents of egapx yaml" && |
44 cat 'egapx.yaml' && | 44 cat '$yamlconfig' && |
45 #end if | 45 #end if |
46 source /galaxy/env.bash && | 46 source /galaxy/env.bash && |
47 echo \${PATH} && | 47 echo \${PATH} && |
48 ln -s /galaxy/egapx/egapx_config && | 48 ln -s /galaxy/egapx/egapx_config && |
49 python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out' | 49 python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out' |
50 ]]></command> | 50 ]]></command> |
51 <inputs> | 51 <inputs> |
52 <conditional name="cond_input_style"> | 52 <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?" | 53 <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"> | 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"> |
59 <param name="yamlin" type="data" optional="false" label="egapx configuration yaml file to pass to Nextflow" help="" format="yaml,txt"/> | 59 <param name="yamlin" type="data" optional="false" label="egapx configuration yaml file to pass to Nextflow" help="" format="yaml,txt"/> |
60 </when> | 60 </when> |
61 <when value="fillform"> | 61 <when value="fillform"> |
62 <param name="taxid" type="text" optional="false" label="NCBI Taxon ID" help="Used to identify the HMM model files needed"/> | 62 <param name="taxid" type="text" optional="false" label="NCBI Taxon ID" help="Used to identify the HMM model files needed"/> |
63 <conditional name="reference_genome"> | 63 <conditional name="reference_genome"> |
64 <param name="genome_type_select" type="select" label="Reference genome source for mapping supplied RNA-seq reads" | 64 <param name="genome_type_select" type="select" label="Reference genome source for mapping supplied RNA-seq reads" |
65 help="Select a built in, history or remote URI for the reference genome fasta"> | 65 help="Select a built in, history or remote URI for the reference genome fasta"> |
66 <option value="indexed">Use a Galaxy server built-in genome</option> | 66 <option value="indexed">Use a Galaxy server built-in genome</option> |
67 <option value="history" selected="True">Use a genome fasta file from the current history</option> | 67 <option value="history" selected="True">Use a genome fasta file from the current history</option> |
68 <option value="uri">Provide a remote web link URI ("https://...") pointing at the required genome reference fasta file</option> | 68 <option value="uri">Provide a remote web link URI ("https://...") pointing at the required genome reference fasta file</option> |
69 </param> | 69 </param> |
70 <when value="indexed"> | 70 <when value="indexed"> |
71 <param name="genome" type="select" optional="false" 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> | 76 </param> |
77 </when> | 77 </when> |
78 <when value="history"> | 78 <when value="history"> |
79 <param name="genome" type="data" format="fasta" optional="false" label="Select the reference genome fasta from the current history"/> | 79 <param name="genome" type="data" optional="true" format="fasta" label="Select the reference genome fasta from the current history"/> |
80 </when> | 80 </when> |
81 <when value="uri"> | 81 <when value="uri"> |
82 <param name="uri" type="text" label="URI pointing to the reference genome fasta file" help=""/> | 82 <param name="uri" type="text" optional="false" label="URI pointing to the reference genome fasta file" help=""/> |
83 </when> | 83 </when> |
84 </conditional> | 84 </conditional> |
85 <conditional name="condrnaseq"> | 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"> | 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> | 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> | 88 <option value="history">Select one or more RNA-seq fastq datasets from the current history</option> |
89 </param> | 89 </param> |
90 <when value="history"> | 90 <when value="history"> |
91 <param name="rnaseq" type="data" format="fastqsanger, fastqsanger.gz" optional="false" multiple="true" | 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"/> | 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> | 93 </when> |
94 <when value="list"> | 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" | 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"> | 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"/> | 97 <validator type="empty_field"/> |
98 </param> | 98 </param> |
99 </when> | 99 </when> |
100 </conditional> | 100 </conditional> |
101 <param name="xtra" type="text" area="true" optional="true" label="Additional yaml to append to the egapx.yaml configuration" | 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"> | 102 help="Not normally needed but useful for testing additional configuration elements"> |
103 <sanitizer invalid_char=""> | 103 <sanitizer invalid_char=""> |
104 <valid initial="string.printable"> | 104 <valid initial="string.printable"> |
105 </valid> | 105 </valid> |
106 </sanitizer> | 106 </sanitizer> |
113 <discover_datasets pattern="__name_and_ext__" directory="egapx_out" visible="false"/> | 113 <discover_datasets pattern="__name_and_ext__" directory="egapx_out" visible="false"/> |
114 </collection> | 114 </collection> |
115 </outputs> | 115 </outputs> |
116 <tests> | 116 <tests> |
117 <test expect_test_failure="true"> | 117 <test expect_test_failure="true"> |
118 <param name="input_style" value="history"/> | |
118 <param name="yamlin" value="input.yaml"/> | 119 <param name="yamlin" value="input.yaml"/> |
120 <output_collection name="egapx_out" type="list" count="8"/> | |
121 </test> | |
122 <test expect_test_failure="true"> | |
123 <param name="input_style" value="fillform"/> | |
124 <param name="taxid" value="6954"/> | |
125 <param name="genome_type_select" value="uri"/> | |
126 <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"/> | |
127 <param name="rna_type_select" value="list"/> | |
128 <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"/> | |
129 <param name="xtra" value="proteins: [] hmm: https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/EGAP/gnomon/hmm_parameters/6956.params tasks: star_wnode: star_wnode: -cpus-per-worker 4"/> | |
119 <output_collection name="egapx_out" type="list" count="8"/> | 130 <output_collection name="egapx_out" type="list" count="8"/> |
120 </test> | 131 </test> |
121 </tests> | 132 </tests> |
122 <help><![CDATA[ | 133 <help><![CDATA[ |
123 Galaxy tool wrapping the Eukaryotic Genome Annotation Pipeline (EGAPx) | 134 Galaxy tool wrapping the Eukaryotic Genome Annotation Pipeline (EGAPx) |