annotate Sambamba_flagstat.xml @ 0:ce3927af5a8f draft default tip

planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
author bgruening
date Wed, 12 Jun 2024 15:00:52 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
1 <tool id="sambamba_flagstat" name="Sambamba flagstat" version="@TOOL_VERSION@+galaxy@SUFFIX_VERSION@" profile="23.2" license="MIT">
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
2 <description>Retrieving flag statistics from BAM file</description>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
3 <macros>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
4 <import>macros.xml</import>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
5 </macros>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
6 <expand macro="requirements"/>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
8 sambamba flagstat
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
9 '${input_bam}'
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
10 --nthreads \${GALAXY_SLOTS:-4}
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
11 > $output
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
12 ]]></command>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
13 <inputs>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
14 <param name="input_bam" type="data" format="bam" label="Input BAM file"/>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
15 </inputs>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
16 <outputs>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
17 <data name="output" format="txt" metadata_source="input_bam"/>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
18 </outputs>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
19 <tests>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
20 <test expect_num_outputs="1">
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
21 <param name="input_bam" value="1.bam" ftype="bam"/>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
22 <output name="output" md5="7df76f07273f8e35c542831a3f8c4dde"/>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
23 </test>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
24 </tests>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
25 <help>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
26 <![CDATA[
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
27
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
28 Sambamba_flagstat outputs statistics drawn from read flags.
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
29
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
30 The first line contains numbers of QC-passed and QC-failed reads. Then come pairs of numbers, the former for QC-passed reads, the latter for QC-failed ones:
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
31 - duplicates
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
32 - mapped reads (plus percentage relative to the numbers from the first line)
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
33 - reads with 'is_paired' flag set
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
34 - paired reads which are first mates
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
35 - paired reads which are second mates
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
36 - paired reads with 'proper_pair' flag set (plus percentage relative to the numbers of QC-passed/failed reads with 'is_paired' flag set)
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
37 - paired reads where both mates are mapped
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
38 - paired reads where read itself is unmapped but mate is mapped
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
39 - paired reads where mate is mapped to a different chromosome
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
40 - the same as previous but mapping quality is not less than 5
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
41
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
42 ]]>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
43 </help>
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
44 <expand macro="citations" />
ce3927af5a8f planemo upload for repository https://github.com/biod/sambamba commit 13ed0b409cf2c5de007e0a6fa93391cbbb21795d
bgruening
parents:
diff changeset
45 </tool>