annotate CoverageReport.xml @ 10:1400dbec671f draft

update to dependencies.xml
author geert-vandeweyer
date Fri, 14 Feb 2014 07:57:17 -0500
parents 2799221681dd
children 86df3f847a72
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
2799221681dd Uploaded
geert-vandeweyer
parents: 0
diff changeset
1 <tool id="CoverageReport2" name="Panel Coverage Report" version="0.0.2">
0
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
2 <description></description>
4
2799221681dd Uploaded
geert-vandeweyer
parents: 0
diff changeset
3
0
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
4 <command interpreter="perl">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
5 CoverageReport.pl
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
6 ## input files
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
7 -b $input1
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
8 -t $input2
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
9
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
10 ## output files
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
11 -o $output1
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
12 -z $output2
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
13
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
14 ## run parameters
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
15 $perGene
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
16 $PositionLevel
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
17 -m $threshold
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
18 -f $frac
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
19 ## sample name
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
20 #if $namefromselect.namesource == "typed" :
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
21 -n "${namefromselect.typedname}"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
22 #elif $namefromselect.namesource == "other":
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
23 -n "${namefromselect.namefile.display_name}"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
24 #elif $namefromselect.namesource == "bam":
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
25 -n "${input1.display_name}"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
26 #else:
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
27 -n "Unspecified"
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
28 #end if
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
29 </command>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
30 <requirements>
4
2799221681dd Uploaded
geert-vandeweyer
parents: 0
diff changeset
31 <requirement type="package" version="2.11.0">R</requirement>
2799221681dd Uploaded
geert-vandeweyer
parents: 0
diff changeset
32 <requirement type="package" version="2.18.2">bedtools</requirement>
2799221681dd Uploaded
geert-vandeweyer
parents: 0
diff changeset
33 <requirement type="package" version="0.1.18">samtools</requirement>
0
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
34 <requirement type="binary">pdflatex</requirement>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
35 </requirements>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
36 <inputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
37 <param name="input1" type="data" format="bam" label="BAM file" help="BAM file of mapped reads" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
38 <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
39 <param name="threshold" type="integer" value="40" label="Minimal Coverage Threshold" help="Default: 40" />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
40 <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
41 <param name="perGene" type="select" label="Plot exon coverages for all genes in targets">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
42 <option value='-r'>Yes</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
43 <option value=''>No</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
44 </param>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
45 <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
46 <option value='' selected="TRUE">None</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
47 <option value='-s'>Plot Only Globally Failed</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
48 <option value='-S'>Plot All Failed Exons</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
49 <option value='-A'>Plot All Exons</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
50 <option value='-L'>List All Failed Exons</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
51 </param>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
52 <conditional name="namefromselect">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
53 <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
54 <option value="typed">Type the samplename</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
55 <option value="bam">Use the BAM File name</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
56 <option value="other">Select a file to base the name on</option>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
57 </param>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
58 <when value="typed">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
59 <param name="typedname" type="text" size="25" label="Sample Name for Report." />
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
60 </when>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
61 <when value="other">
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
62 <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
63 </when>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
64 </conditional>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
65 </inputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
66 <outputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
67 <data format="pdf" name="output1" label="${tool.name} on ${on_string}: PDF Report"/>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
68 <data format="tar.gz" name="output2" label="${tool.name} on ${on_string}: Plots And Tables"/>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
69 </outputs>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
70 <help>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
71
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
72 **What it does**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
73
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
74 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
75
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
76 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
77
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
78 **BED format**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
79
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
80 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
81
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
82 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
83 Column 2: Start Position
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
84 Column 3: End Position
4
2799221681dd Uploaded
geert-vandeweyer
parents: 0
diff changeset
85 Column 4: Target Name. Use : "GENE-NAME&lt;space&gt;Exon_number" : This is split on the space after 'GeneName' for correct grouping.
0
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
86 Column 5: Score : ignored, use '0'
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
87 Column 6: Strand: ignored,'+' or '-'
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
88
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
89 .. class:: infomark
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
90
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
91 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
92
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
93 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
94
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
95 **Input formats**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
96
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
97 BAM file for reads, BED file for targets.
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
98
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
99 ------
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
100
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
101 **Outputs**
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
102
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
103 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
104 The output tables are (tab seperated txt files):
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
105
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
106 **Targets.Global.Coverage** : Original BED file + following columns::
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
107 - Total coverage in target
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
108 - Bases in target with coverage
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
109 - Length of target
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
110 - Percent of target covered
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
111
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
112 **Targets.Position.Coverage** : Original BED file + following columns::
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
113 - Position in target region
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
114 - Coverage at position
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
115
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
116 </help>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
117 </tool>
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
118
ea32a329aced Initial Uploaded
geert-vandeweyer
parents:
diff changeset
119