annotate concoct_coverage_table.xml @ 4:0442e7102125 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:05 +0000 (19 months ago)
parents 5ded3318cf8a
children fd31cd168efc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
1 <tool id="concoct_coverage_table" name="CONCOCT: Generate the input coverage table" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
2 <description>for CONCOCT</description>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
3 <macros>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
5 </macros>
3
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
6 <expand macro="requirements"/>
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
3
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
8 #import re
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
9 mkdir 'mapping' &&
3
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
10 #if $mode.type == 'individual'
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
11 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($mode.bamfile))
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
12 ln -s '$mode.bamfile' 'mapping/${identifier}.sorted.bam' &&
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
13 samtools index 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam.bai' &&
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
14 mv 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam' &&
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
15 #else
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
16 #for $e in $mode.bamfiles
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
17 #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($e.element_identifier))
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
18 ln -s '$e' 'mapping/${identifier}.sorted.bam' &&
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
19 samtools index 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam.bai' &&
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
20 mv 'mapping/${identifier}.sorted.bam' 'mapping/${identifier}.bam' &&
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
21 #end for
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
22 #end if
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
23 concoct_coverage_table.py
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
24 '$bedfile'
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
25 mapping/*.bam
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
26 > '$output'
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
27 ]]></command>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
28 <inputs>
3
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
29 <param name="bedfile" type="data" format="bed" label="Contigs BEDFile" help="The file should have four columns representing: 'Contig ID, Start Position, End Position and SubContig ID' respectively. The Subcontig ID must contain the pattern 'concoct_part_[0-9]*' while the contigs which are not cutup cannot contain this pattern. This file can be generated by the CONCOCT: Cut up contigs tool."/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
30 <conditional name="mode">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
31 <param name="type" type="select" label="Type of assembly used to generate the contigs" help="Information used to process the BAM files">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
32 <option value="individual">Individual assembly: 1 run per BAM file</option>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
33 <option value="co">Co-assembly: all BAM files processed together</option>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
34 </param>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
35 <when value="individual">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
36 <param name="bamfile" type="data" format="bam" label="Sorted BAM file" help="BAM file with mappings to the original contigs, after sorting"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
37 </when>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
38 <when value="co">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
39 <param name="bamfiles" type="data" format="bam" label="Sorted BAM files" multiple="true" help="BAM files with mappings to the original contigs, after sorting"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
40 </when>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
41 </conditional>
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
42 </inputs>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
43 <outputs>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
44 <data name="output" format="tabular"/>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
45 </outputs>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
46 <tests>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
47 <test expect_num_outputs="1">
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
48 <param name="bedfile" value="two_contigs-cut2.bed" ftype="bed"/>
3
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
49 <conditional name="mode">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
50 <param name="type" value="individual"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
51 <param name="bamfile" value="ten_reads_two_contigs-s.bam" ftype="bam"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
52 </conditional>
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
53 <output name="output" ftype="tabular">
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
54 <assert_contents>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
55 <has_text text="contig-21000001.concoct_part_0"/>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
56 <has_n_lines n="11"/>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
57 </assert_contents>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
58 </output>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
59 </test>
3
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
60 <test expect_num_outputs="1">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
61 <param name="bedfile" value="two_contigs-cut2.bed" ftype="bed"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
62 <conditional name="mode">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
63 <param name="type" value="co"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
64 <param name="bamfiles" value="ten_reads_two_contigs-s.bam,ten_reads_two_contigs-s_2.bam" ftype="bam"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
65 </conditional>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
66 <output name="output" ftype="tabular">
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
67 <assert_contents>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
68 <has_text text="cov_mean_sample_ten_reads_two_contigs-s.bam"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
69 <has_text text="cov_mean_sample_ten_reads_two_contigs-s_2.bam"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
70 <has_text text="contig-21000001.concoct_part_0"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
71 <has_n_lines n="11"/>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
72 </assert_contents>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
73 </output>
5ded3318cf8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 58c54ba18f478ce75fdfd6093921ba0b50af02ac
iuc
parents: 2
diff changeset
74 </test>
2
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
75 </tests>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
76 <help><![CDATA[
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
77 **What it does**
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
78
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
79 Accepts an assembled (and possibly cut by the Cut fasta contigs tool) fasta contigs file and a tabular coverage histogram
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
80 file (produced by the bedtools Genomve Coverage tool) and outputs a tabular coverage file for use as the input to the
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
81 CONCOCT metagenome binning tool.
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
82
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
83 @HELP_OVERVIEW@
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
84 ]]></help>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
85 <expand macro="citations"/>
6302656ed45d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/concoct commit 1a79c139165648b969d82530784cea3fc8f2d2c0"
iuc
parents:
diff changeset
86 </tool>