Mercurial > repos > iuc > metaphlan2
diff metaphlan2.xml @ 1:f279fc0892fc draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/metaphlan2/ commit feaab4dd23dedf18b6369db43c25e0c695b8cc0d
| author | iuc |
|---|---|
| date | Wed, 05 Jul 2017 07:40:16 -0400 |
| parents | a12c7f019bdf |
| children | 5b7ee956d89b |
line wrap: on
line diff
--- a/metaphlan2.xml Sat Mar 04 12:22:28 2017 -0500 +++ b/metaphlan2.xml Wed Jul 05 07:40:16 2017 -0400 @@ -10,68 +10,62 @@ <requirement type="package" version="2.3.0">bowtie2</requirement> <requirement type="package" version="2.7.10">python</requirement> </expand> - + <expand macro="stdio"/> - <version_command> -<![CDATA[ -metaphlan2.py -v -]]> - </version_command> + <version_command>metaphlan2.py -v</version_command> - <command> -<![CDATA[ - #if $db.db_selector == "history" - mkdir ref_db - && - bowtie2-build '$db.bowtie2db' 'ref_db/ref_db' - && - python '$__tool_directory__/transform_json_to_pkl.py' - --json_input '$db.mpa_pkl' - --pkl_output 'ref_db/metadata.pkl' - && - #end if + <command><![CDATA[ +#if $db.db_selector == "history" + mkdir ref_db + && + bowtie2-build '$db.bowtie2db' 'ref_db/ref_db' + && + python '$__tool_directory__/transform_json_to_pkl.py' + --json_input '$db.mpa_pkl' + --pkl_output 'ref_db/metadata.pkl' + && +#end if - metaphlan2.py - '$input_file' - -o '$output_file' - --input_type '${input_file.datatype.file_ext}' - --bowtie2_exe `which bowtie2` +metaphlan2.py + '$input_file' + -o '$output_file' + --input_type '${input_file.datatype.file_ext}' + --bowtie2_exe `which bowtie2` - #if $db.db_selector == "cached" - #set $path = $db.cached_db.fields.path - #set $value = $db.cached_db.fields.value - --bowtie2db $path/$value - --mpa_pkl $path/$value'.pkl' - #else - --bowtie2db 'ref_db/ref_db' - --mpa_pkl 'ref_db/metadata.pkl' - #end if + #if $db.db_selector == "cached" + #set $path = $db.cached_db.fields.path + #set $value = $db.cached_db.fields.value + --bowtie2db $path/$value + --mpa_pkl $path/$value'.pkl' + #else + --bowtie2db 'ref_db/ref_db' + --mpa_pkl 'ref_db/metadata.pkl' + #end if - --no_map + --no_map - -t '$analysis_type.analysis_type_select' - #if $analysis_type.analysis_type_select == "rel_ab" or $analysis_type.analysis_type_select == "rel_ab_w_read_stats" - --tax_lev '$analysis_type.tax_lev' - #else if $analysis_type.analysis_type_select == "marker_ab_table" - --nreads '$analysis_type.nreads' - #else if $analysis_type.analysis_type_select == "marker_pres_table" - --pres_th '$analysis_type.pres_th' - #end if + -t '$analysis_type.analysis_type_select' + #if $analysis_type.analysis_type_select == "rel_ab" or $analysis_type.analysis_type_select == "rel_ab_w_read_stats" + --tax_lev '$analysis_type.tax_lev' + #else if $analysis_type.analysis_type_select == "marker_ab_table" + --nreads '$analysis_type.nreads' + #else if $analysis_type.analysis_type_select == "marker_pres_table" + --pres_th '$analysis_type.pres_th' + #end if - --min_cu_len '$min_cu_len' - --min_alignment_len '$min_alignment_len' + --min_cu_len '$min_cu_len' + --min_alignment_len '$min_alignment_len' - $ignore_viruses - $ignore_eukaryotes - $ignore_bacteria - $ignore_archaea + $ignore_viruses + $ignore_eukaryotes + $ignore_bacteria + $ignore_archaea - --stat_q '$stat_q' - -s '$sam_output_file' - --biom '$biom_output_file' -]]> - </command> + --stat_q '$stat_q' + -s '$sam_output_file' + --biom '$biom_output_file' + ]]></command> <inputs> <param name="input_file" type="data" format="fastq,fasta,sam" label="Input file"/> @@ -126,9 +120,9 @@ </inputs> <outputs> - <data format="tabular" name="output_file" label="${tool.name} on ${on_string}: Community profile" /> - <data format="sam" name="sam_output_file" label="${tool.name} on ${on_string}: SAM file" /> - <data format="biom" name="biom_output_file" label="${tool.name} on ${on_string}: BIOM file" /> + <data name="output_file" format="tabular" label="${tool.name} on ${on_string}: Community profile" /> + <data name="sam_output_file" format="sam" label="${tool.name} on ${on_string}: SAM file" /> + <data name="biom_output_file" format="biom1" label="${tool.name} on ${on_string}: BIOM file" /> </outputs> <tests>
