comparison probecoverage.xml @ 0:dbeb4a0abfc6 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/probecoverage commit 102edc0c210d94e9d72f913e2d18c19220c4167c
author artbio
date Sat, 23 Sep 2017 05:11:49 -0400
parents
children ebe5ec2e244d
comparison
equal deleted inserted replaced
-1:000000000000 0:dbeb4a0abfc6
1 <tool id="probecoverage" name="Probe Coverage" version="0.1.0">
2 <description></description>
3 <requirements>
4 <requirement type="package" version="1.4.1">samtools</requirement>
5 <requirement type="package" version="2.26.0">bedtools</requirement>
6 <requirement type="package" version="1.3.2=r3.3.1_0">r-optparse</requirement>
7 <requirement type="package" version="2.2.1=r3.3.1_0">r-ggplot2</requirement>
8 <requirement type="package" version="1.4.2=r3.3.1_0">r-reshape2</requirement>
9 </requirements>
10 <stdio>
11 <exit_code range="1:" level="fatal" description="Tool exception" />
12 </stdio>
13 <command detect_errors="exit_code"><![CDATA[
14 #for $file in $inputs
15 samtools index '$file' &&
16 #end for
17 bedtools multicov
18 -bams
19 #for $file in $inputs
20 '$file'
21 #end for
22 -bed '$bed' > $bedtools_table &&
23 Rscript '$__tool_directory__'/probecoverage.r
24 --input '$bedtools_table'
25 --title 'Probe coverage depth (cumulative distribution)'
26 --xlab 'Depth'
27 --ylab 'Fraction of covered regions with coverage >= Depth'
28 --output '$distribution'
29 --sample "
30 #for $file in $inputs
31 $file.element_identifier,
32 #end for
33 "
34
35 ]]></command>
36 <inputs>
37 <param name="inputs" type="data" format="bam" label="Select multiple Bam alignments to parse" multiple="True"/>
38 <param name="bed" type="data" format="bed" label="Select a bed file describing the genomic regions to analyze" />
39 </inputs>
40
41 <outputs>
42 <data format="tabular" name="bedtools_table" label="bedtools multicov output" />
43 <data format="pdf" name="distribution" label="Cumulative distribution of region coverages" />
44 </outputs>
45
46 <tests>
47 <test>
48 <param name="inputs" value="sample1,sample2,sample3" ftype="bam"/>
49 <param name="bed" value="probes.bed" ftype="bed"/>
50 <output file="coverage.tab" name="bedtools_table" />
51 <output file="graph.pdf" name="distribution" />
52 </test>
53 </tests>
54
55
56 <help>
57
58 **What it does**
59
60 Generates counts of alignments from multiple position-sorted BAM files
61 that overlap intervals in a BED file.
62
63 Shows data as a cumulative plot of numbers of regions with coverage > x.
64
65 **Inputs**
66
67 bam alignment files that must be
68
69 - sorted
70 - mapped to the same reference
71
72 **Output**
73
74 A data frame of computed counts
75
76 A pdf file generated by R
77
78 </help>
79
80 <citations>
81 <citation type="doi">10.1093/bioinformatics/btq033</citation>
82 </citations>
83 </tool>
84