annotate extract_fasta_bins.xml @ 6:8b1b09fcd8b7 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 86e1afebec29c10ef1e31196b23c24fde2d086da
author iuc
date Sun, 12 Nov 2023 14:31:16 +0000
parents bcd8d64f82b7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
1 <tool id="concoct_extract_fasta_bins" name="CONCOCT: Extract a fasta file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
1
a04028a8181d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 40a09cbfd6052f7b0295946621db1bdf58228b09"
iuc
parents: 0
diff changeset
2 <description>for each cluster</description>
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
3 <macros>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
5 </macros>
6
8b1b09fcd8b7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 86e1afebec29c10ef1e31196b23c24fde2d086da
iuc
parents: 3
diff changeset
6 <expand macro="biotools"/>
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
9 ## CONCOCT doesn't handle gzipped files.
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
10 #if $fasta_file.ext.endswith(".gz")
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
11 gunzip -c '$fasta_file' > 'contigs.fa' &&
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
12 #else:
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
13 ln -s '$fasta_file' 'contigs.fa' &&
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
14 #end if
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
15
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
16 mkdir outdir &&
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
17 extract_fasta_bins.py
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
18 'contigs.fa'
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
19 '$cluster_file'
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
20 --output_path 'outdir'
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
21 ]]></command>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
22 <inputs>
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
23 <param name="fasta_file" type="data" format="fasta,fasta.gz" label="Original contig file"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
24 <param name="cluster_file" type="data" format="csv" label="CONCOCT clusters"/>
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
25 </inputs>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
26 <outputs>
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
27 <collection name="bins" type="list" label="${tool.name} on ${on_string} : Bins">
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
28 <discover_datasets pattern="(?P&lt;designation&gt;.*)\.fa" format="fasta" directory="outdir"/>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
29 </collection>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
30 </outputs>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
31 <tests>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
32 <test expect_num_outputs="1">
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
33 <param name="fasta_file" value="composition.fa.gz" ftype="fasta.gz"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
34 <param name="cluster_file" value="clusters.csv" ftype="csv"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
35 <output_collection name="bins" type="list" count="54">
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
36 <element name="0" ftype="fasta">
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
37 <assert_contents>
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
38 <has_size value="1194"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
39 <has_text text="contig-223000058 1140 nucleotides"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
40 <has_n_lines n="20"/>
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
41 </assert_contents>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
42 </element>
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
43 <element name="52" ftype="fasta">
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
44 <assert_contents>
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
45 <has_size value="5356"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
46 <has_text text="contig-161000004 1031 nucleotides"/>
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
47 <has_n_lines n="90"/>
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
48 </assert_contents>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
49 </element>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
50 </output_collection>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
51 </test>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
52 </tests>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
53 <help><![CDATA[
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
54 **What it does**
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
55
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
56 Performs metagenomic binning of fasta contigs by extracting a fasta file for each cluster defined in a CONCOCT clustering file.
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
57
3
bcd8d64f82b7 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents: 1
diff changeset
58 The tool accepts two inputs; the fasta contigs file and the CONCOCT clustering file that was produced using the same fasta contigs input. A collection of fasta files is produced.
1
a04028a8181d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 40a09cbfd6052f7b0295946621db1bdf58228b09"
iuc
parents: 0
diff changeset
59
a04028a8181d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 40a09cbfd6052f7b0295946621db1bdf58228b09"
iuc
parents: 0
diff changeset
60 @HELP_OVERVIEW@
0
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
61 ]]></help>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
62 <expand macro="citations"/>
1bc8fd1b3ed0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff changeset
63 </tool>