Mercurial > repos > jjohnson > contig_annotation_tool
view cat_bins.xml @ 2:9a01840eac52 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cat commit 6b978e61a7f66160f2577d907f52dd641f103986-dirty
author | jjohnson |
---|---|
date | Mon, 25 Nov 2019 15:09:24 -0500 |
parents | 86cd2e70b0dc |
children | 18ece3d5bcde |
line wrap: on
line source
<tool id="cat_bins" name="CAT bins" version="@VERSION@.0"> <description>annotate with taxonomic classification</description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements" /> <expand macro="version_command" /> <command detect_errors="exit_code"><![CDATA[ #set $bin_dir = None #if len($mags) > 1: #set $bin_dir = 'inputs' mkdir -p $bin_dir && #for mag in $mags: ln -s '$mag' $bin_dir/ && #end for #end if CAT #if $bin_dir bins -s '.dat' -b $bin_dir #else bin -b '$mags' #end if @CAT_DB@ @USE_INTERMEDIATES@ @CUSTOM_SETTINGS@ && @TXT2TSV@ *.ORF2LCA.txt *.bin2classification.txt #if len($mags) > 1: #set pat = '$' + '{i/concatenated./}' && (for i in *.concatenated.*; do ln -s "\$i" "${pat}"; done) #end if @ADD_NAMES@ @SUMMARISE@ ]]></command> <inputs> <param name="mags" type="data" format="fasta" multiple="true" label="metagenome assembled genomes (MAGs/bins)"/> <expand macro="cat_db" /> <expand macro="use_intermediates" /> <expand macro="custom_settings" /> <expand macro="add_names" /> <expand macro="summarise" /> <expand macro="select_bat_outputs" /> </inputs> <outputs> <expand macro="outputs" /> </outputs> <tests> <test> <param name="mags" ftype="fasta" value="genome3.fna"/> <expand macro="test_catdb"/> <param name="select_outputs" value="contig2classification"/> <output name="contig2classification"> <assert_contents> <has_text text="1639" /> </assert_contents> </output> </test> <test> <param name="mags" ftype="fasta" value="genome2.fna,genome3.fna"/> <expand macro="test_catdb"/> <param name="select_outputs" value="contig2classification"/> <output name="contig2classification"> <assert_contents> <has_text text="666" /> <has_text text="1639" /> </assert_contents> </output> </test> </tests> <help><![CDATA[ **CAT bin or bins** Classify metagenomics assembled genomes. @COMMON_HELP@ ]]></help> <expand macro="citations" /> </tool>