annotate CoverageReport.xml @ 3:39c374d4cba7 draft

Uploaded
author geert-vandeweyer
date Thu, 13 Feb 2014 04:45:48 -0500
parents ea32a329aced
children 2799221681dd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
1 <tool id="CoverageReport" name="Panel Coverage Report" version="0.0.2">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
2 <description></description>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
3 <command interpreter="perl">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
4 CoverageReport.pl
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
5 ## input files
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
6 -b $input1
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
7 -t $input2
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
8
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
9 ## output files
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
10 -o $output1
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
11 -z $output2
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
12
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
13 ## run parameters
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
14 $perGene
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
15 $PositionLevel
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
16 -m $threshold
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
17 -f $frac
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
18 ## sample name
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
19 #if $namefromselect.namesource == "typed" :
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
20 -n "${namefromselect.typedname}"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
21 #elif $namefromselect.namesource == "other":
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
22 -n "${namefromselect.namefile.display_name}"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
23 #elif $namefromselect.namesource == "bam":
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
24 -n "${input1.display_name}"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
25 #else:
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
26 -n "Unspecified"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
27 #end if
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
28 </command>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
29 <requirements>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
30 <requirement type="package">BEDTools</requirement>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
31 <requirement type="package">samtools</requirement>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
32 <requirement type="binary">pdflatex</requirement>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
33 </requirements>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
34 <inputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
35 <param name="input1" type="data" format="bam" label="BAM file" help="BAM file of mapped reads" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
36 <param name="input2" type="data" format="bed" label="Target Regions BED" help="BED file containing regions of interest. See below for format" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
37 <param name="threshold" type="integer" value="40" label="Minimal Coverage Threshold" help="Default: 40" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
38 <param name="frac" type="float" value="0.2" label="Fraction of Average Coverage for usage in plot" help="Default: 0.2" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
39 <param name="perGene" type="select" label="Plot exon coverages for all genes in targets">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
40 <option value='-r'>Yes</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
41 <option value=''>No</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
42 </param>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
43 <param name="PositionLevel" type="select" label="Perform Per Exon Analysis" help="Only Failed: Only those exons not reaching global coverage above threshold, or 100%. All Exons: This can take a very long time for large panels! Select all failed to check all exons for local failures." >
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
44 <option value='' selected="TRUE">None</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
45 <option value='-s'>Plot Only Globally Failed</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
46 <option value='-S'>Plot All Failed Exons</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
47 <option value='-A'>Plot All Exons</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
48 <option value='-L'>List All Failed Exons</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
49 </param>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
50 <conditional name="namefromselect">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
51 <param name="namesource" type="select" label="Type the name of the sample or take the name of an input file?">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
52 <option value="typed">Type the samplename</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
53 <option value="bam">Use the BAM File name</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
54 <option value="other">Select a file to base the name on</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
55 </param>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
56 <when value="typed">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
57 <param name="typedname" type="text" size="25" label="Sample Name for Report." />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
58 </when>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
59 <when value="other">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
60 <param name="namefile" type="data" format="sam,bam,fastq,fasta,bed,fastqsanger,fastqillumina,text" label="Select a file from the history to base the sample name upon" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
61 </when>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
62 </conditional>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
63 </inputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
64 <outputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
65 <data format="pdf" name="output1" label="${tool.name} on ${on_string}: PDF Report"/>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
66 <data format="tar.gz" name="output2" label="${tool.name} on ${on_string}: Plots And Tables"/>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
67 </outputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
68 <help>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
69
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
70 **What it does**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
71
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
72 This tool creates a coverage report for QC purposes. By default, average coverage statistics are provided, taken from samtools flagstats. If specified, it can also create overviews per gene in the BED file, and sub-exon plots for failed exons.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
73
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
74 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
75
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
76 **BED format**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
77
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
78 The BED file containing targets of interest has very specific format requirements. You **must** use the following format::
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
79
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
80 Column 1: Chromosome : Use the same syntax as the references used by Galaxy. Check your sam-headers for the correct format. ('chr1' vs '1')
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
81 Column 2: Start Position
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
82 Column 3: End Position
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
83 Column 4: Target Name. Use : "GENE-NAME|Exon_number" : This is split on the 'Pipe' after 'GeneName' for correct grouping.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
84 Column 5: Score : ignored, use '0'
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
85 Column 6: Strand: ignored,'+' or '-'
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
86
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
87 .. class:: infomark
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
88
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
89 Note: The exons for the plots will be ordered in the same way as the exons in the BED file.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
90
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
91 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
92
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
93 **Input formats**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
94
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
95 BAM file for reads, BED file for targets.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
96
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
97 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
98
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
99 **Outputs**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
100
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
101 The output files are a PDF report and a tar.gz file with all the plots and output tables.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
102 The output tables are (tab seperated txt files):
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
103
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
104 **Targets.Global.Coverage** : Original BED file + following columns::
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
105 - Total coverage in target
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
106 - Bases in target with coverage
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
107 - Length of target
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
108 - Percent of target covered
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
109
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
110 **Targets.Position.Coverage** : Original BED file + following columns::
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
111 - Position in target region
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
112 - Coverage at position
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
113
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
114 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
115
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
116 **Requirements**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
117
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
118 - BEDTools (from toolshed)
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
119 - Samtools (from toolshed)
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
120 - pdflatex : binary must be in path, to create the pdf report.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
121
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
122 </help>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
123 </tool>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
124
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
125