comparison CoverageReport.xml @ 0:49788db492f7 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/coverage_report commit 1b647bb088f62c1369d963f030caecaa9ee003c7
author iuc
date Wed, 25 Oct 2017 12:37:17 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:49788db492f7
1 <tool id="CoverageReport2" name="Panel Coverage Report" version="0.0.4">
2 <description>Provide mapping statistics</description>
3 <requirements>
4 <requirement type="package" version="1.75">perl-number-format</requirement>
5 <requirement type="package" version="3.4.1">R</requirement>
6 <requirement type="package" version="2.17.0">bedtools</requirement>
7 <requirement type="package" version="0.1.18">samtools</requirement>
8 <requirement type="package" version="0.1.6">tectonic</requirement>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[
11 perl '$__tool_directory__/CoverageReport.pl'
12 ## input files
13 -b '$input1'
14 -t '$input2'
15
16 ## output files
17 -o '$output1'
18
19 ## run parameters
20 $perGene
21 $PositionLevel
22 -m $threshold
23 -f $frac
24 ## sample name
25 -n '$input1.name'
26 ]]></command>
27 <inputs>
28 <param name="input1" type="data" format="bam" label="BAM file" help="BAM file of mapped reads" />
29 <param name="input2" type="data" format="bed" label="Target Regions BED" help="BED file containing regions of interest. See below for format" />
30 <param name="threshold" type="integer" value="40" label="Minimal Coverage Threshold" help="Default: 40" />
31 <param name="frac" type="float" value="0.2" label="Fraction of Average Coverage for usage in plot" help="Default: 0.2" />
32 <param name="perGene" type="boolean" truevalue="-r" falsevalue="" checked="True" label="Plot exon coverages for all genes in targets"/>
33 <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." >
34 <option value='' selected="true">None</option>
35 <option value='-s'>Plot Only Globally Failed</option>
36 <option value='-S'>Plot All Failed Exons</option>
37 <option value='-A'>Plot All Exons</option>
38 <option value='-L'>List All Failed Exons</option>
39 </param>
40 </inputs>
41 <outputs>
42 <data format="pdf" name="output1" label="${tool.name} on ${on_string}: PDF Report"/>
43 </outputs>
44 <tests>
45 <test>
46 <param name="input1" value="ecoli.bam" />
47 <param name="input2" value="ecoli_6.bed" />
48 <output name="output1" value="answer.pdf" compare="sim_size"/>
49 </test>
50 </tests>
51 <help><![CDATA[
52 **What it does**
53
54 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.
55
56 ------
57
58 **BED format**
59
60 The BED file containing targets of interest has very specific format requirements. You **must** use the following format::
61
62 Column 1: Chromosome : Use the same syntax as the references used by Galaxy. Check your sam-headers for the correct format. ('chr1' vs '1')
63 Column 2: Start Position
64 Column 3: End Position
65 Column 4: Target Name. Use : "GENE-NAME&lt;space&gt;Exon_number" : This is split on the space after 'GeneName' for correct grouping.
66 Column 5: Score : ignored, use '0'
67 Column 6: Strand: ignored,'+' or '-'
68
69 .. class:: infomark
70
71 Note: The exons for the plots will be ordered in the same way as the exons in the BED file.
72
73 ------
74
75 **Input formats**
76
77 BAM file for reads, BED file for targets.
78
79 ------
80
81 **Outputs**
82
83 The output files are a PDF report.
84 The output tables are (tab seperated txt files):
85
86 **Targets.Global.Coverage** : Original BED file + following columns::
87 - Total coverage in target
88 - Bases in target with coverage
89 - Length of target
90 - Percent of target covered
91
92 **Targets.Position.Coverage** : Original BED file + following columns::
93 - Position in target region
94 - Coverage at position
95
96 ]]></help>
97 <citations>
98 <citation type="bibtex">@ARTICLE{a1,
99 title = {This tool creates a coverage report for QC purposes.},
100 author = {Philip Mabon},
101 url = {https://github.com/galaxyproject/tools-iuc/}
102 }
103 }</citation>
104 </citations>
105 </tool>