Mercurial > repos > iuc > concoct_extract_fasta_bins
annotate extract_fasta_bins.xml @ 5:c821c34ab9d9 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 6bcf71ac8fae2a84117069dc00b3c4cac6d20fa5
author | iuc |
---|---|
date | Sat, 26 Aug 2023 02:42:14 +0000 |
parents | bcd8d64f82b7 |
children | 8b1b09fcd8b7 |
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> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
6 <expand macro="requirements"/> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
7 <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
|
8 ## 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
|
9 #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
|
10 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
|
11 #else: |
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
12 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
|
13 #end if |
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
14 |
0
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
15 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
|
16 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
|
17 'contigs.fa' |
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
18 '$cluster_file' |
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
19 --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
|
20 ]]></command> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
21 <inputs> |
3
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
22 <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
|
23 <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
|
24 </inputs> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
25 <outputs> |
3
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
26 <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
|
27 <discover_datasets pattern="(?P<designation>.*)\.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
|
28 </collection> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
29 </outputs> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
30 <tests> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
31 <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
|
32 <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
|
33 <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
|
34 <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
|
35 <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
|
36 <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
|
37 <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
|
38 <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
|
39 <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
|
40 </assert_contents> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
41 </element> |
3
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
42 <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
|
43 <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
|
44 <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
|
45 <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
|
46 <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
|
47 </assert_contents> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
48 </element> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
49 </output_collection> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
50 </test> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
51 </tests> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
52 <help><![CDATA[ |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
53 **What it does** |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
54 |
3
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
55 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
|
56 |
3
bcd8d64f82b7
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
1
diff
changeset
|
57 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
|
58 |
a04028a8181d
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 40a09cbfd6052f7b0295946621db1bdf58228b09"
iuc
parents:
0
diff
changeset
|
59 @HELP_OVERVIEW@ |
0
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
60 ]]></help> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
61 <expand macro="citations"/> |
1bc8fd1b3ed0
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 49b42f61ff37c3c33dd15c195e5705e1db066c37"
iuc
parents:
diff
changeset
|
62 </tool> |