Mercurial > repos > geert-vandeweyer > coverage_report
annotate CoverageReport.xml @ 27:576bfc1586f9 draft default tip
bugfix
author | geert-vandeweyer |
---|---|
date | Wed, 29 Nov 2017 08:39:31 -0500 |
parents | a718420c834e |
children |
rev | line source |
---|---|
19 | 1 <tool id="CoverageReport2" name="Panel Coverage Report" version="0.0.3"> |
0 | 2 <description></description> |
4 | 3 |
0 | 4 <command interpreter="perl"> |
5 CoverageReport.pl | |
6 ## input files | |
7 -b $input1 | |
8 -t $input2 | |
9 | |
10 ## output files | |
11 -o $output1 | |
12 -z $output2 | |
13 | |
14 ## run parameters | |
15 $perGene | |
16 $PositionLevel | |
17 -m $threshold | |
18 -f $frac | |
23
a718420c834e
Added (default) option to collapse repetitive BED files.
geert-vandeweyer
parents:
20
diff
changeset
|
19 $trim |
0 | 20 ## sample name |
21 #if $namefromselect.namesource == "typed" : | |
22 -n "${namefromselect.typedname}" | |
23 #elif $namefromselect.namesource == "other": | |
24 -n "${namefromselect.namefile.display_name}" | |
25 #elif $namefromselect.namesource == "bam": | |
26 -n "${input1.display_name}" | |
27 #else: | |
28 -n "Unspecified" | |
29 #end if | |
23
a718420c834e
Added (default) option to collapse repetitive BED files.
geert-vandeweyer
parents:
20
diff
changeset
|
30 |
0 | 31 </command> |
32 <requirements> | |
20 | 33 <requirement type="package" version="3.0.3">R</requirement> |
4 | 34 <requirement type="package" version="2.18.2">bedtools</requirement> |
35 <requirement type="package" version="0.1.18">samtools</requirement> | |
0 | 36 </requirements> |
37 <inputs> | |
38 <param name="input1" type="data" format="bam" label="BAM file" help="BAM file of mapped reads" /> | |
39 <param name="input2" type="data" format="bed" label="Target Regions BED" help="BED file containing regions of interest. See below for format" /> | |
23
a718420c834e
Added (default) option to collapse repetitive BED files.
geert-vandeweyer
parents:
20
diff
changeset
|
40 <param name="trim" type="select" label="Collapse overlapping regions in targets"> |
a718420c834e
Added (default) option to collapse repetitive BED files.
geert-vandeweyer
parents:
20
diff
changeset
|
41 <option value='-T' selected="TRUE">Yes</option> |
a718420c834e
Added (default) option to collapse repetitive BED files.
geert-vandeweyer
parents:
20
diff
changeset
|
42 <option value=''>No</option> |
a718420c834e
Added (default) option to collapse repetitive BED files.
geert-vandeweyer
parents:
20
diff
changeset
|
43 </param> |
0 | 44 <param name="threshold" type="integer" value="40" label="Minimal Coverage Threshold" help="Default: 40" /> |
45 <param name="frac" type="float" value="0.2" label="Fraction of Average Coverage for usage in plot" help="Default: 0.2" /> | |
46 <param name="perGene" type="select" label="Plot exon coverages for all genes in targets"> | |
47 <option value='-r'>Yes</option> | |
48 <option value=''>No</option> | |
49 </param> | |
50 <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." > | |
51 <option value='' selected="TRUE">None</option> | |
52 <option value='-s'>Plot Only Globally Failed</option> | |
53 <option value='-S'>Plot All Failed Exons</option> | |
54 <option value='-A'>Plot All Exons</option> | |
55 <option value='-L'>List All Failed Exons</option> | |
56 </param> | |
57 <conditional name="namefromselect"> | |
58 <param name="namesource" type="select" label="Type the name of the sample or take the name of an input file?"> | |
59 <option value="typed">Type the samplename</option> | |
60 <option value="bam">Use the BAM File name</option> | |
61 <option value="other">Select a file to base the name on</option> | |
62 </param> | |
63 <when value="typed"> | |
64 <param name="typedname" type="text" size="25" label="Sample Name for Report." /> | |
65 </when> | |
66 <when value="other"> | |
67 <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" /> | |
68 </when> | |
69 </conditional> | |
70 </inputs> | |
71 <outputs> | |
72 <data format="pdf" name="output1" label="${tool.name} on ${on_string}: PDF Report"/> | |
73 <data format="tar.gz" name="output2" label="${tool.name} on ${on_string}: Plots And Tables"/> | |
74 </outputs> | |
75 <help> | |
76 | |
77 **What it does** | |
78 | |
79 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. | |
80 | |
81 ------ | |
82 | |
83 **BED format** | |
84 | |
85 The BED file containing targets of interest has very specific format requirements. You **must** use the following format:: | |
86 | |
87 Column 1: Chromosome : Use the same syntax as the references used by Galaxy. Check your sam-headers for the correct format. ('chr1' vs '1') | |
88 Column 2: Start Position | |
89 Column 3: End Position | |
19 | 90 Column 4: Target Name. Use : "GENE-NAME|Exon_number" : This is split on the pipe (or space) after 'GeneName' for correct grouping.Example: "CLIP2|Exon_4" |
0 | 91 Column 5: Score : ignored, use '0' |
92 Column 6: Strand: ignored,'+' or '-' | |
93 | |
94 .. class:: infomark | |
95 | |
96 Note: The exons for the plots will be ordered in the same way as the exons in the BED file. | |
97 | |
98 ------ | |
99 | |
100 **Input formats** | |
101 | |
102 BAM file for reads, BED file for targets. | |
103 | |
104 ------ | |
105 | |
106 **Outputs** | |
107 | |
108 The output files are a PDF report and a tar.gz file with all the plots and output tables. | |
109 The output tables are (tab seperated txt files): | |
110 | |
111 **Targets.Global.Coverage** : Original BED file + following columns:: | |
112 - Total coverage in target | |
113 - Bases in target with coverage | |
114 - Length of target | |
115 - Percent of target covered | |
116 | |
117 **Targets.Position.Coverage** : Original BED file + following columns:: | |
118 - Position in target region | |
119 - Coverage at position | |
120 | |
121 </help> | |
122 </tool> | |
123 | |
124 |