comparison multiCov.xml @ 1:82aac94b06c3 draft

Uploaded
author iuc
date Thu, 08 Jan 2015 14:25:51 -0500
parents b8348686a0b9
children 607c0576c6ab
comparison
equal deleted inserted replaced
0:b8348686a0b9 1:82aac94b06c3
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements" /> 6 <expand macro="requirements" />
7 <expand macro="stdio" /> 7 <expand macro="stdio" />
8 <command> 8 <command>
9 <![CDATA[
10 #for $i, $bam in enumerate( $bams ):
11 ln -s -f $bam ${i}.bam &&
12 ln -s -f $bam.metadata.bam_index ${i}.bam.bai &&
13 #end for
14
9 bedtools multicov 15 bedtools multicov
10 -bed $input1 16 -bed $input
11 -bam 17 -bams
12 #for $bam in $bams: 18 #for $i, $bam in enumerate( $bams ):
13 $bam.input 19 ${i}.bam
14 #end for 20 #end for
15 $strand 21 $strand
16 -f $overlap 22 -f $overlap
17 $reciprocal 23 $reciprocal
18 $split 24 $split
19 -q $mapq 25 -q $q
20 $duplicate 26 $duplicate
21 $failed 27 $failed
22 $proper 28 $proper
23 &gt; $output 29 > $output
30 ]]>
24 </command> 31 </command>
25 <inputs> 32 <inputs>
26 <param name="input1" format="bed" type="data" label="First sorted BED file" /> 33 <param name="input" format="bed" type="data" label="Sorted BED file" />
27 <!-- Additional files, if the user needs more --> 34 <!-- Additional files, if the user needs more -->
28 <repeat name="bams" title="Add BAM files" > 35 <param name="bams" format="bam" type="data" multiple="True" label="BAM file" />
29 <param name="input" format="bam" type="data" label="BAM file" /> 36
30 </repeat>
31 <expand macro="strand2" /> 37 <expand macro="strand2" />
32 <expand macro="overlap" /> 38 <expand macro="overlap" />
33 <param name="reciprocal" type="boolean" checked="false" truevalue="-r" falsevalue="" label="Require that the fraction overlap be reciprocal for A and B. In other words, if -f is 0.90 and -r is used, this requires that B overlap 90% of A and A _also_ overlaps 90% of B." /> 39 <expand macro="reciprocal" />
34 <expand macro="split" /> 40 <expand macro="split" />
35 41 <param name="q" type="integer" value="0" label="Minimum mapping quality (MAPQ) allowed" help="(-q)" />
36 <param name="duplicate" type="boolean" checked="false" truevalue="-D" falsevalue="" label="Include duplicate reads. Default counts non-duplicates only" /> 42 <param name="duplicate" type="boolean" checked="False" truevalue="-D" falsevalue=""
37 <param name="failed" type="boolean" checked="false" truevalue="-F" falsevalue="" label=" Include failed-QC reads. Default counts pass-QC reads only" /> 43 label="Include duplicate reads"
38 <param name="proper" type="boolean" checked="false" truevalue="-p" falsevalue="" label="Only count proper pairs. Default counts all alignments with MAPQ > -q argument, regardless of the BAM FLAG field." /> 44 help="Default counts non-duplicates only. (-D)" />
45 <param name="failed" type="boolean" checked="false" truevalue="-F" falsevalue=""
46 label="Include failed-QC reads"
47 help="Default counts pass-QC reads only (-F)"/>
48 <param name="proper" type="boolean" checked="false" truevalue="-p" falsevalue=""
49 label="Only count proper pairs"
50 help="Default counts all alignments with MAPQ > -q argument, regardless of the BAM FLAG field. (-p)" />
39 </inputs> 51 </inputs>
40
41 <outputs> 52 <outputs>
42 <data format="bed" name="output" label="" /> 53 <data name="output" metadata_source="input" format_source="input" />
43 </outputs> 54 </outputs>
55 <tests>
56 <test>
57 <param name="input" value="multiCov1.bed" ftype="bed" />
58 <param name="bams" value="srma_in3.bam,srma_in3.bam" ftpye="bam"/>
59 <param name="q" value="1"/>
60 <param name="split" value="False"/>
61 <output name="output" file="multiCovBed_result1.bed" ftype="bed" />
62 </test>
63 </tests>
44 <help> 64 <help>
45 65 <![CDATA[
46 **What it does** 66 **What it does**
47 67
48 bedtools multicov, reports the count of alignments from multiple position-sorted and indexed BAM files that overlap intervals in a BED file. Specifically, for each BED interval provided, it reports a separate count of overlapping alignments from each BAM file. 68 bedtools multicov, reports the count of alignments from multiple position-sorted and indexed BAM files that overlap intervals in a BED file. Specifically, for each BED interval provided, it reports a separate count of overlapping alignments from each BAM file.
49 69
50 .. class:: infomark
51
52 bedtools multicov depends upon index BAM files in order to count the number of overlaps in each BAM file. As such, each BAM file should be position sorted (samtool sort aln.bam aln.sort) and indexed (samtools index aln.sort.bam) with either samtools or bamtools.
53 70
54 @REFERENCES@ 71 @REFERENCES@
55 72 ]]>
56 </help> 73 </help>
57 <expand macro="citations" /> 74 <expand macro="citations" />
58 </tool> 75 </tool>