annotate Fasta_to_Contig2Bin.xml @ 2:c52dd271995c draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit adf83f3747e7c2a7f5b305671718fc6789ea804e
author iuc
date Mon, 26 Dec 2022 17:47:35 +0000
parents de45fc119798
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
1 <tool id="Fasta_to_Contig2Bin" name="Converts genome bins in fasta format" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
2 <description>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
3 to scaffolds-to-bin table
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
4 </description>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
5 <macros>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
6 <import>macros.xml</import>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
7 </macros>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
8 <expand macro="biotools"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
9 <expand macro="requirements"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
10 <expand macro="version"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
11 <command detect_errors="exit_code"><![CDATA[
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
12 #import re
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
13 mkdir "inputs" &&
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
14 #for $i in $inputs
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
15 #set file_name = $i.file_name
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
16 #set identifier = re.sub('[^\s\w\-\\.]', '_', str($i.element_identifier))
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
17 ln -s '$file_name' 'inputs/${identifier}.fasta' &&
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
18 #end for
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
19 Fasta_to_Contig2Bin.sh
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
20 --extension fasta
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
21 --input_folder 'inputs'
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
22 > '$contigs2bin'
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
23 ]]></command>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
24 <inputs>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
25 <param name="inputs" type="data_collection" collection_type="list" format="fasta" label="Bin sequences"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
26 </inputs>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
27 <outputs>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
28 <data name="contigs2bin" format="tabular"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
29 </outputs>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
30 <tests>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
31 <test expect_num_outputs="1">
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
32 <param name="inputs">
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
33 <collection type="list">
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
34 <element name="001" value="maxbin2.001.fasta" ftype="fasta"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
35 <element name="002" value="maxbin2.002.fasta" ftype="fasta"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
36 </collection>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
37 </param>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
38 <output name="contigs2bin" ftype="tabular">
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
39 <assert_contents>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
40 <has_text text="contig-201_2"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
41 <has_text text="001"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
42 <has_text text="contig-201_798"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
43 <has_text text="002"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
44 </assert_contents>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
45 </output>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
46 </test>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
47 </tests>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
48 <help><![CDATA[
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
49 @HELP_HEADER@
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
50 ]]></help>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
51 <expand macro="citations"/>
de45fc119798 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/das_tool commit 151c0e625ce20fb3ea75aa5043486e41b1da48de
iuc
parents:
diff changeset
52 </tool>