Mercurial > repos > bebatut > humann2
diff humann2.xml @ 13:b0cd2569ccfb draft
planemo upload for repository https://github.com/ASaiM/galaxytools/tree/master/tools/humann2/ commit 79571d981d7d56657699be8aa24a40a36a8d0ab5-dirty
| author | bebatut |
|---|---|
| date | Thu, 02 Jun 2016 04:21:54 -0400 |
| parents | 7838137cbc7f |
| children | e25df87eaecc |
line wrap: on
line diff
--- a/humann2.xml Thu Jun 02 02:31:20 2016 -0400 +++ b/humann2.xml Thu Jun 02 04:21:54 2016 -0400 @@ -38,15 +38,17 @@ && #end if - #if $metaphlan2_db.metaphlan2_db_selector == "history" - mkdir ref_db - && - bowtie2-build $metaphlan2_db.metaphlan2_db_sequences ref_db/ref_db - && - python $__tool_directory__/transform_json_to_pkl.py - --json_input $metaphlan2_db_metadata - --pkl_output ref_db/metadata.pkl - && + #if $taxonomic_profile.taxonomic_profile_test == "false" + #if $taxonomic_profile.metaphlan2_db_choice.metaphlan2_db_selector == "history" + `mkdir ref_db` + && + bowtie2-build $taxonomic_profile.metaphlan2_db_choice.metaphlan2_db_sequences ref_db/ref_db + && + python $__tool_directory__/transform_json_to_pkl.py + --json_input $metaphlan2_db_metadata + --pkl_output ref_db/metadata.pkl + && + #end if #end if humann2 @@ -56,9 +58,9 @@ #if $taxonomic_profile.taxonomic_profile_test == "true": --taxonomic-profile $taxonomic_profile.taxonomic_profile_file #else - #if $metaphlan2_db.metaphlan2_db_selector == "cached" - #set $table = dict([(_[0], _[2]) for _ in $metaphlan2_db.cached_metaphlan2_db.input.options.tool_data_table.data]) - #set $db_choice = $metaphlan2_db.cached_metaphlan2_db.value + #if $taxonomic_profile.metaphlan2_db_choice.metaphlan2_db_selector == "cached" + #set $table = dict([(_[0], _[2]) for _ in $taxonomic_profile.metaphlan2_db_choice.cached_metaphlan2_db.input.options.tool_data_table.data]) + #set $db_choice = $taxonomic_profile.metaphlan2_db_choice.cached_metaphlan2_db.value #set $metaphlan_option += " --bowtie2db " + $table[$db_choice] #set $metaphlan_option += " --mpa_pkl " + $table[$db_choice] + ".pkl" #else @@ -66,7 +68,6 @@ #set $metaphlan_option += " --mpa_pkl " + ref_db/metadata.pkl #end if #end if - --metaphlan-options="$metaphlan_option" --evalue $e_value @@ -110,11 +111,10 @@ <option value="false" selected="true">No</option> </param> <when value="true"> - <param name="taxonomic_profile_file" type="data" format="tabular,txt" label="Taxonomic profile - file" help=""/> + <param name="taxonomic_profile_file" type="data" format="tabular,txt" label="Taxonomic profile file" help=""/> </when> <when value="false"> - <conditional name="metaphlan2_db"> + <conditional name="metaphlan2_db_choice"> <param name="metaphlan2_db_selector" type="select" label="Database with clade-specific marker genes" help=""> <option value="cached" selected="true">Locally cached</option> <option value="history">From history</option> @@ -122,7 +122,7 @@ <when value="cached"> <param name="cached_metaphlan2_db" label="Cached database with clade-specific marker genes" type="select" > - <options from_data_table="metaphlan2_db" /> + <options from_data_table="metaphlan2_db" /> </param> </when> <when value="history">
