Mercurial > repos > iuc > humann2
comparison humann2.xml @ 1:1d6d855c10d8 draft
planemo upload for repository https://github.com/ASaiM/galaxytools/tree/master/tools/humann2/ commit 6753a2c0fec9222f5977cab43a855c63fa9f7bee
author | iuc |
---|---|
date | Tue, 01 Aug 2017 07:58:21 -0400 |
parents | 1ab06263e083 |
children | b168c0ef3c14 |
comparison
equal
deleted
inserted
replaced
0:1ab06263e083 | 1:1d6d855c10d8 |
---|---|
10 <requirement type="package" version="2.24">rapsearch</requirement> | 10 <requirement type="package" version="2.24">rapsearch</requirement> |
11 <requirement type="package" version="2.7.10">python</requirement> | 11 <requirement type="package" version="2.7.10">python</requirement> |
12 </expand> | 12 </expand> |
13 <expand macro="version"/> | 13 <expand macro="version"/> |
14 <command detect_errors="exit_code"><![CDATA[ | 14 <command detect_errors="exit_code"><![CDATA[ |
15 #if $nucleotide_db.nucleotide_db_selector == "history" | 15 #if $nucleotide_db.nucleotide_db_selector == "history" |
16 mkdir nucleotide_db | 16 mkdir nucleotide_db |
17 && | 17 && |
18 #for $file in $nucleotide_db.nucleotide_database: | 18 #for $file in $nucleotide_db.nucleotide_database: |
19 cp '$file' 'nucleotide_db/$file.name' && | 19 cp '$file' 'nucleotide_db/$file.name' && |
20 #end for | 20 #end for |
21 #end if | |
22 | |
23 #if $protein_db.protein_db_selector == "history" | |
24 mkdir protein_db | |
25 && | |
26 #if $translated_alignment == "diamond" | |
27 diamond makedb | |
28 --in '$protein_db.protein_database' | |
29 --db 'protein_db/protein_db' | |
30 --threads "\${GALAXY_SLOTS:-4}" | |
31 #else | |
32 prerapsearch | |
33 -d '$protein_db.protein_database' | |
34 -n 'protein_db/protein_db' | |
35 #end if | |
36 && | |
37 #end if | |
38 | |
39 #if $taxo_profile.taxonomic_profile_test == "false" | |
40 #if $taxo_profile.metaphlan2_db_choice.metaphlan2_db_selector == "history" | |
41 mkdir ref_db | |
42 && | |
43 bowtie2-build '$taxo_profile.metaphlan2_db_choice.bowtie2db' 'ref_db/ref_db' | |
44 && | |
45 python '$__tool_directory__/transform_json_to_pkl.py' | |
46 --json_input '$taxo_profile.metaphlan2_db_choice.mpa_pkl' | |
47 --pkl_output 'ref_db/metadata.pkl' | |
48 && | |
49 #end if | |
50 #end if | |
51 | |
52 humann2 | |
53 --input '$input' | |
54 -o 'output' | |
55 $bypass.bypass_prescreen | |
56 $bypass.bypass_nucleotide_index | |
57 $bypass.bypass_translated_search | |
58 $bypass.bypass_nucleotide_search | |
59 | |
60 #set $metaphlan_option = "-t rel_ab" | |
61 #if $taxo_profile.taxonomic_profile_test == "true": | |
62 --taxonomic-profile '$taxo_profile.taxonomic_profile' | |
63 #else | |
64 #if $taxo_profile.metaphlan2_db_choice.metaphlan2_db_selector == "history" | |
65 #set $metaphlan_option += " --bowtie2db " + 'ref_db/ref_db' | |
66 #set $metaphlan_option += " --mpa_pkl " + 'ref_db/metadata.pkl' | |
67 #else | |
68 #set $path = $taxo_profile.metaphlan2_db_choice.cached_db.fields.path | |
69 #set $value = $taxo_profile.metaphlan2_db_choice.cached_db.fields.value | |
70 #set $metaphlan_option += " --bowtie2db " + $path + "/" + $value | |
71 #set $metaphlan_option += " --mpa_pkl " + $path + "/" + $value + ".pkl" | |
21 #end if | 72 #end if |
22 | 73 #end if |
23 #if $protein_db.protein_db_selector == "history" | 74 --metaphlan-options="$metaphlan_option" |
24 mkdir protein_db | 75 |
25 && | 76 #if $nucleotide_db.nucleotide_db_selector == "cached" |
26 #if $translated_alignment == "diamond" | 77 --nucleotide-database '$nucleotide_db.nucleotide_database.fields.path' |
27 diamond makedb | 78 #else |
28 --in '$protein_db.protein_database' | 79 --nucleotide-database nucleotide_db |
29 --db 'protein_db/protein_db' | 80 #end if |
30 --threads "\${GALAXY_SLOTS:-4}" | 81 |
31 #else | 82 --translated-alignment '$translated_alignment' |
32 prerapsearch | 83 #if $protein_db.protein_db_selector == "cached" |
33 -d '$protein_db.protein_database' | 84 --protein-database '$protein_db.protein_database.fields.path' |
34 -n 'protein_db/protein_db' | 85 #else |
35 #end if | 86 --protein-database protein_db |
36 && | 87 #end if |
37 #end if | 88 --search-mode '$search_mode' |
38 | 89 --pathways '$pathways' |
39 #if $taxo_profile.taxonomic_profile_test == "false" | 90 |
40 #if $taxo_profile.metaphlan2_db_choice.metaphlan2_db_selector == "history" | 91 --annotation-gene-index $adv.annotation_gene_index |
41 mkdir ref_db | 92 --evalue '$adv.evalue' |
42 && | 93 --threads "\${GALAXY_SLOTS:-4}" |
43 bowtie2-build '$taxo_profile.metaphlan2_db_choice.bowtie2db' 'ref_db/ref_db' | 94 --memory-use minimum |
44 && | 95 --prescreen-threshold '$adv.prescreen_threshold' |
45 python '$__tool_directory__/transform_json_to_pkl.py' | 96 --identity-threshold '$adv.identity_threshold' |
46 --json_input '$taxo_profile.metaphlan2_db_choice.mpa_pkl' | 97 --translated-subject-coverage-threshold '$adv.translated_subject_coverage_threshold' |
47 --pkl_output 'ref_db/metadata.pkl' | 98 --translated-query-coverage-threshold '$adv.translated_query_coverage_threshold' |
48 && | 99 #if $adv.id_mapping |
49 #end if | 100 --id-mapping '$adv.id_mapping' |
50 #end if | 101 #end if |
51 | 102 --xipe '$adv.xipe' |
52 humann2 | 103 --minpath '$adv.minpath' |
53 --input '$input' | 104 --pick-frames '$adv.pick_frames' |
54 -o 'output' | 105 --gap-fill '$adv.gap_fill' |
55 $bypass.bypass_prescreen | 106 --output-format '$adv.output_format' |
56 $bypass.bypass_nucleotide_index | 107 --output-max-decimals '$adv.output_max_dec' |
57 $bypass.bypass_translated_search | 108 --output-basename 'humann2' |
58 $bypass.bypass_nucleotide_search | 109 $adv.remove_statified_output |
59 | 110 $adv.remove_column_description_output |
60 #set $metaphlan_option = "-t rel_ab" | |
61 #if $taxo_profile.taxonomic_profile_test == "true": | |
62 --taxonomic-profile '$taxo_profile.taxonomic_profile' | |
63 #else | |
64 #if $taxo_profile.metaphlan2_db_choice.metaphlan2_db_selector == "history" | |
65 #set $metaphlan_option += " --bowtie2db " + 'ref_db/ref_db' | |
66 #set $metaphlan_option += " --mpa_pkl " + 'ref_db/metadata.pkl' | |
67 #else | |
68 #set $path = $taxo_profile.metaphlan2_db_choice.cached_db.fields.path | |
69 #set $value = $taxo_profile.metaphlan2_db_choice.cached_db.fields.value | |
70 #set $metaphlan_option += " --bowtie2db " + $path + "/" + $value | |
71 #set $metaphlan_option += " --mpa_pkl " + $path + "/" + $value + ".pkl" | |
72 #end if | |
73 #end if | |
74 --metaphlan-options="$metaphlan_option" | |
75 | |
76 #if $nucleotide_db.nucleotide_db_selector == "cached" | |
77 --nucleotide-database '$nucleotide_db.nucleotide_database.fields.path' | |
78 #else | |
79 --nucleotide-database nucleotide_db | |
80 #end if | |
81 | |
82 --translated-alignment '$translated_alignment' | |
83 #if $protein_db.protein_db_selector == "cached" | |
84 --protein-database '$protein_db.protein_database.fields.path' | |
85 #else | |
86 --protein-database protein_db | |
87 #end if | |
88 --search-mode '$search_mode' | |
89 --pathways '$pathways' | |
90 | |
91 --annotation-gene-index $adv.annotation_gene_index | |
92 --evalue '$adv.evalue' | |
93 --threads "\${GALAXY_SLOTS:-4}" | |
94 --memory-use minimum | |
95 --prescreen-threshold '$adv.prescreen_threshold' | |
96 --identity-threshold '$adv.identity_threshold' | |
97 --translated-subject-coverage-threshold '$adv.translated_subject_coverage_threshold' | |
98 --translated-query-coverage-threshold '$adv.translated_query_coverage_threshold' | |
99 #if $adv.id_mapping | |
100 --id-mapping '$adv.id_mapping' | |
101 #end if | |
102 --xipe '$adv.xipe' | |
103 --minpath '$adv.minpath' | |
104 --pick-frames '$adv.pick_frames' | |
105 --gap-fill '$adv.gap_fill' | |
106 --output-format '$adv.output_format' | |
107 --output-max-decimals '$adv.output_max_dec' | |
108 --output-basename 'humann2' | |
109 $adv.remove_statified_output | |
110 $adv.remove_column_description_output | |
111 ]]></command> | 111 ]]></command> |
112 <inputs> | 112 <inputs> |
113 <param argument="--input" type="data" format="fastq,fasta,sam,bam,biom1" label="Input sequence file"/> | 113 <param argument="--input" type="data" format="fastq,fasta,sam,bam,biom1" label="Input sequence file"/> |
114 <section name="bypass" title="Options to bypass some steps" expanded="False"> | 114 <section name="bypass" title="Options to bypass some steps" expanded="False"> |
115 <param name="bypass_prescreen" argument="--bypass-prescreen" type="boolean" checked="false" truevalue="--bypass-prescreen" falsevalue="" label="Bypass the prescreen step and run on the full ChocoPhlAn database?"/> | 115 <param name="bypass_prescreen" argument="--bypass-prescreen" type="boolean" truevalue="--bypass-prescreen" falsevalue="" checked="false" label="Bypass the prescreen step and run on the full ChocoPhlAn database?"/> |
116 <param name="bypass_nucleotide_index" argument="--bypass-nucleotide-index" type="boolean" checked="false" truevalue="--bypass-nucleotide-index" falsevalue="" label="Bypass the nucleotide index step and run on the indexed ChocoPhlAn database?"/> | 116 <param name="bypass_nucleotide_index" argument="--bypass-nucleotide-index" type="boolean" truevalue="--bypass-nucleotide-index" falsevalue="" checked="false" label="Bypass the nucleotide index step and run on the indexed ChocoPhlAn database?"/> |
117 <param name="bypass_translated_search" argument="--bypass-translated-search" type="boolean" checked="false" truevalue="--bypass-translated-search" falsevalue="" label="Bypass the translated search step?"/> | 117 <param name="bypass_translated_search" argument="--bypass-translated-search" type="boolean" truevalue="--bypass-translated-search" falsevalue="" checked="false" label="Bypass the translated search step?"/> |
118 <param name="bypass_nucleotide_search" argument="--bypass-nucleotide-search" type="boolean" checked="false" truevalue="--bypass-translated-search" falsevalue="" label="Bypass the nucleotide search steps?"/> | 118 <param name="bypass_nucleotide_search" argument="--bypass-nucleotide-search" type="boolean" truevalue="--bypass-translated-search" falsevalue="" checked="false" label="Bypass the nucleotide search steps?"/> |
119 </section> | 119 </section> |
120 <conditional name="taxo_profile"> | 120 <conditional name="taxo_profile"> |
121 <param name="taxonomic_profile_test" type="select" label="Use a custom taxonomic profile?" help="The file must have been created by MetaPhlan2"> | 121 <param name="taxonomic_profile_test" type="select" label="Use a custom taxonomic profile?" help="The file must have been created by MetaPhlan2"> |
122 <option value="true">Yes</option> | 122 <option value="true">Yes</option> |
123 <option value="false" selected="true">No</option> | 123 <option value="false" selected="true">No</option> |
189 <param argument="--evalue" type="float" value="1" label="E-value threshold to use with the translated search"/> | 189 <param argument="--evalue" type="float" value="1" label="E-value threshold to use with the translated search"/> |
190 <param name="prescreen_threshold" argument="--prescreen-threshold" type="float" value="0.01" label="Minimum percentage of reads matching a species"/> | 190 <param name="prescreen_threshold" argument="--prescreen-threshold" type="float" value="0.01" label="Minimum percentage of reads matching a species"/> |
191 <param name="identity_threshold" argument="--identity-threshold" type="float" value="50" label="Identity threshold for alignments"/> | 191 <param name="identity_threshold" argument="--identity-threshold" type="float" value="50" label="Identity threshold for alignments"/> |
192 <param name="translated_subject_coverage_threshold" argument="--translated-subject-coverage-threshold" type="float" value="50" label="Subject coverage threshold for translated alignments"/> | 192 <param name="translated_subject_coverage_threshold" argument="--translated-subject-coverage-threshold" type="float" value="50" label="Subject coverage threshold for translated alignments"/> |
193 <param name="translated_query_coverage_threshold" argument="--translated-query-coverage-threshold" type="float" value="50" label="Subject coverage threshold for translated alignments"/> | 193 <param name="translated_query_coverage_threshold" argument="--translated-query-coverage-threshold" type="float" value="50" label="Subject coverage threshold for translated alignments"/> |
194 <param name="id_mapping" argument="--id-mapping" type="data" format="tsv" label="id mapping file for alignments" optional="True"/> | 194 <param name="id_mapping" argument="--id-mapping" type="data" format="tsv" optional="true" label="id mapping file for alignments"/> |
195 <param argument="--xipe" type="boolean" checked="false" truevalue="on" falsevalue="off" label="Use xipe computation?"/> | 195 <param argument="--xipe" type="boolean" truevalue="on" falsevalue="off" checked="false" label="Use xipe computation?"/> |
196 <param argument="--minpath" type="boolean" checked="true" truevalue="on" falsevalue="off" label="Use minpath computation?"/> | 196 <param argument="--minpath" type="boolean" truevalue="on" falsevalue="off" checked="true" label="Use minpath computation?"/> |
197 <param name="pick_frames" type="boolean" checked="true" truevalue="on" falsevalue="off" label="Use pick frames computation?" argument="--pick-frames"/> | 197 <param name="pick_frames" argument="--pick-frames" type="boolean" truevalue="on" falsevalue="off" checked="true" label="Use pick frames computation?"/> |
198 <param name="gap_fill" type="boolean" checked="true" truevalue="on" falsevalue="off" label="Use gap fill computation?" argument="--gap-fill"/> | 198 <param name="gap_fill" argument="--gap-fill" type="boolean" truevalue="on" falsevalue="off" checked="true" label="Use gap fill computation?"/> |
199 <param name="output_format" type="select" label="Format of the output files" argument="--output-format"> | 199 <param name="output_format" argument="--output-format" type="select" label="Format of the output files"> |
200 <option value="tsv" selected="true">TSV</option> | 200 <option value="tsv" selected="true">TSV</option> |
201 <option value="biom">BIOM</option> | 201 <option value="biom">BIOM</option> |
202 </param> | 202 </param> |
203 <param name="output_max_dec" type="integer" value="10" label="Number of decimals to output" argument="--output-max-decimals"/> | 203 <param name="output_max_dec" argument="--output-max-decimals" type="integer" value="10" label="Number of decimals to output"/> |
204 <param name="remove_statified_output" type="boolean" checked="false" truevalue="--remove-stratified-output" falsevalue="" label="Remove stratification from output?" argument="--remove-stratified-output"/> | 204 <param name="remove_statified_output" argument="--remove-stratified-output" type="boolean" truevalue="--remove-stratified-output" falsevalue="" checked="false" label="Remove stratification from output?"/> |
205 <param name="remove_column_description_output" type="boolean" checked="false" truevalue="--remove-column-description-output" falsevalue="" label="Remove stratification from output?" argument="--remove-column-description-output"/> | 205 <param name="remove_column_description_output" argument="--remove-column-description-output" type="boolean" truevalue="--remove-column-description-output" falsevalue="" checked="false" label="Remove stratification from output?"/> |
206 | 206 |
207 </section> | 207 </section> |
208 </inputs> | 208 </inputs> |
209 <outputs> | 209 <outputs> |
210 <data format="tsv" name="gene_families_tsv" from_work_dir="output/humann2_genefamilies.tsv" label="${tool.name} on ${on_string}: Gene families and their abundance" > | 210 <data format="tsv" name="gene_families_tsv" from_work_dir="output/humann2_genefamilies.tsv" label="${tool.name} on ${on_string}: Gene families and their abundance" > |