comparison probecoverage.xml @ 2:35d2db3753d9 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/probecoverage commit 301fc26e062ac02a28676a05aa9c82e4407e3d29
author artbio
date Sun, 24 Sep 2017 13:34:16 -0400
parents ebe5ec2e244d
children 4f744d3aaf0b
comparison
equal deleted inserted replaced
1:ebe5ec2e244d 2:35d2db3753d9
1 <tool id="probecoverage" name="Probe Coverage" version="0.2.0"> 1 <tool id="probecoverage" name="Probe Coverage" version="0.3.0">
2 <description></description> 2 <description></description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="1.4.1">samtools</requirement> 4 <requirement type="package" version="1.4.1">samtools</requirement>
5 <requirement type="package" version="2.26.0">bedtools</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> 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> 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> 8 <requirement type="package" version="1.11.2=py27_0">numpy</requirement>
9 <requirement type="package" version="0.11.2.1=py27_0">pysam</requirement>
9 </requirements> 10 </requirements>
10 <stdio> 11 <stdio>
11 <exit_code range="1:" level="fatal" description="Tool exception" /> 12 <exit_code range="1:" level="fatal" description="Tool exception" />
12 </stdio> 13 </stdio>
13 <command detect_errors="exit_code"><![CDATA[ 14 <command detect_errors="exit_code"><![CDATA[
14 #for $file in $inputs 15 #for $file in $inputs
15 samtools index '$file' && 16 samtools index '$file' &&
16 #end for 17 #end for
17 bedtools multicov 18 #if $method == 'pysam':
19 python $__tool_directory__/multicov.py
20 #else:
21 bedtools multicov
22 #end if
18 -bams 23 -bams
19 #for $file in $inputs 24 #for $file in $inputs
20 '$file' 25 '$file'
21 #end for 26 #end for
22 -bed '$bed' > $bedtools_table && 27 -bed '$bed' > $coverage_dataframe &&
23 Rscript '$__tool_directory__'/probecoverage.r 28 Rscript '$__tool_directory__'/probecoverage.r
24 --input '$bedtools_table' 29 --input '$coverage_dataframe'
25 --title 'Probe coverage depth (cumulative distribution)' 30 --title 'Probe coverage depth (cumulative distribution)'
26 --xlab 'Depth' 31 --xlab
32 #if $method == 'pysam':
33 'Depth (pysam method)'
34 #else:
35 'Depth (bedtools muticov method)'
36 #end if
27 --ylab 'Fraction of covered regions with coverage >= Depth' 37 --ylab 'Fraction of covered regions with coverage >= Depth'
28 --output '$distribution' 38 --output '$distribution'
29 --sample " 39 --sample "
30 #for $file in $inputs 40 #for $file in $inputs
31 $file.element_identifier, 41 $file.element_identifier,
32 #end for 42 #end for
33 " 43 "
34 44
35 ]]></command> 45 ]]></command>
36 <inputs> 46 <inputs>
37 <param name="inputs" type="data" format="bam" label="Select multiple Bam alignments to parse" multiple="True"/> 47 <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" /> 48 <param name="bed" type="data" format="bed" label="Select a bed file describing the genomic regions to analyze" />
39 </inputs> 49 <param name="method" type="boolean" falsevalue="bedtools" checked="false" truevalue="pysam"
50 help="coverage is computed using bedtools multicov (default) or pysam module"
51 label="Compute coverage with pysam (bedtools by default)" />
52 </inputs>
40 53
41 <outputs> 54 <outputs>
42 <data format="tabular" name="bedtools_table" label="bedtools multicov output" /> 55 <data format="tabular" name="coverage_dataframe" label="coverage table" />
43 <data format="pdf" name="distribution" label="Cumulative distribution of region coverages" /> 56 <data format="pdf" name="distribution" label="Cumulative distribution of region coverages" />
44 </outputs> 57 </outputs>
45 58
46 <tests> 59 <tests>
47 <test> 60 <test>
48 <param name="inputs" value="sample1,sample2,sample3" ftype="bam"/> 61 <param name="inputs" value="sample1,sample2,sample3" ftype="bam"/>
49 <param name="bed" value="probes.bed" ftype="bed"/> 62 <param name="bed" value="probes.bed" ftype="bed"/>
50 <output file="coverage.tab" name="bedtools_table" /> 63 <param name="method" value="bedtools" />
64 <output file="coverage.tab" name="coverage_dataframe" />
51 <output file="graph.pdf" name="distribution" /> 65 <output file="graph.pdf" name="distribution" />
66 </test>
67 <test>
68 <param name="inputs" value="sample1,sample2,sample3" ftype="bam"/>
69 <param name="bed" value="probes.bed" ftype="bed"/>
70 <param name="method" value="pysam" />
71 <output file="coverage_pysam.tab" name="coverage_dataframe" />
72 <output file="graph_pysam.pdf" name="distribution" />
52 </test> 73 </test>
53 </tests> 74 </tests>
54 75
55 76
56 <help> 77 <help>