annotate sam-stats.xml @ 0:b9e7569a4438 draft

Uploaded initial version with package dependency.
author lparsons
date Fri, 27 Jun 2014 15:36:01 -0400
parents
children a51942c74761
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
1 <tool id="sam_stats" name="sam-stats" version="1.32">
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
2 <description> - Compute statistics from SAM or BAM files</description>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
3 <requirements>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
4 <requirement type="package" version="1.1.2-484">ea-utils</requirement>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
5 </requirements>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
6 <command>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
7 sam-stats
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
8 $trackMultAlign
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
9 $reportAllChr
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
10 #if $rnaSeqStats:
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
11 -R $rnaSeqStatsFile
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
12 #end if
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
13 #if $input.extension == "bam":
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
14 -B
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
15 #end if
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
16 -S $histBinSize
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
17 $input
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
18 &gt; $samStats
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
19 </command>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
20 <inputs>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
21 <param format="sam,bam" name="input" type="data" label="SAM/BAM File" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
22 <param name="trackMultAlign" type="boolean" value="False" truevalue="-D" falsevalue="" label="Keep track of multiple alignments (slower!)" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
23 <param name="reportAllChr" type="boolean" value="False" truevalue="-A" falsevalue="" label="Report all chr sigs, even if there are more than 1000" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
24 <!-- <param name="numReadsSubsample" type="integer" value="1000000" min="1" max="1000000" label="Number of reads to sample for per-base statistics (max 1,000,000)" /> -->
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
25 <param name="histBinSize" type="integer" value="30" min="1" label="Number of bins per chromosome for reads by chromosome &quot;histogram&quot;" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
26 <param name="rnaSeqStats" type="boolean" value="False" label="Output RNA-Seq statistics (coverage, 3 prime bias, etc.)" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
27 </inputs>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
28
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
29 <outputs>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
30 <data format="tabular" name="samStats" label="${tool.name} on ${on_string}"/>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
31 <data format="tabular" name="rnaSeqStatsFile" label="${tool.name} on ${on_string} (RNA-Seq Stats)"> <filter>rnaSeqStats</filter>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
32 </data>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
33 </outputs>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
34
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
35 <stdio>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
36 <exit_code range="1:" level="fatal" description="Unknown error occurred" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
37 </stdio>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
38
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
39 <tests>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
40 <test>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
41 <param name="input" value="test.sam" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
42 <output name="samStats" file="testout.txt" />
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
43 </test>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
44 </tests>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
45
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
46 <help>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
47 Overview
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
48 --------
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
49 sam-stats computes varius statics on SAM/BAM alignment files.
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
50
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
51 Complete Stats::
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
52
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
53 &lt;STATS&gt; : mean, max, stdev, median, Q1 (25 percentile), Q3
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
54 reads : # of entries in the sam file, might not be # reads
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
55 phred : phred scale used
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
56 bsize : # reads used for qual stats
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
57 mapped reads : number of aligned reads (unique probe id sequences)
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
58 mapped bases : total of the lengths of the aligned reads
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
59 forward : number of forward-aligned reads
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
60 reverse : number of reverse-aligned reads
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
61 snp rate : mismatched bases / total bases
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
62 ins rate : insert bases / total bases
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
63 del rate : deleted bases / total bases
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
64 pct mismatch : percent of reads that have mismatches
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
65 len &lt;STATS&gt; : read length stats, ignored if fixed-length
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
66 mapq &lt;STATS&gt; : stats for mapping qualities
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
67 insert &lt;STATS&gt; : stats for insert sizes
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
68 &lt;CHR&gt; : percentage of mapped bases per chr, followed by a signature
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
69
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
70 Subsampled stats (1M reads max)::
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
71
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
72 base qual &lt;STATS&gt; : stats for base qualities
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
73 A,T,C,G : base percentages
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
74
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
75 Meaning of the per-chromosome signature:
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
76
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
77 A ascii-histogram of mapped reads by chromosome position. It is only output if the original SAM/BAM has a header. The values are the log2 of the # of mapped reads at each position + ascii '0'.
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
78
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
79 See http://code.google.com/p/ea-utils/wiki/SamStatsDetails for more information on each stat, how it's calculated and what it means.
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
80
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
81 This tool uses the sam-stats program that is part of the ea-utils suite. See http://code.google.com/p/ea-utils/wiki/SamStats for details.
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
82 </help>
b9e7569a4438 Uploaded initial version with package dependency.
lparsons
parents:
diff changeset
83 </tool>