|
0
|
1 <tool id="covacs_mpileup" name="covacs_mpileup" version="1.9">
|
|
|
2 <description>samtools mpileup wrapper for covacs</description>
|
|
|
3 <macros>
|
|
|
4 <import>bed_macros.xml</import>
|
|
|
5 <import>covacs_macros.xml</import>
|
|
|
6 </macros>
|
|
|
7 <requirements>
|
|
|
8 <requirement type="package" version="1.9" >samtools</requirement>
|
|
|
9 </requirements>
|
|
|
10 <command>
|
|
|
11 <![CDATA[
|
|
|
12
|
|
|
13
|
|
|
14 samtools mpileup
|
|
|
15 -C $adjust
|
|
|
16 #if $bed_source.bed_source_selector == "history" and $bed_source.bed_history
|
|
|
17 -l $bed_source.bed_history
|
|
|
18 #end if
|
|
|
19 #if $bed_source.bed_source_selector == "cached"
|
|
|
20 -l $bed_source.bed_cached.fields.path
|
|
|
21 #end if
|
|
|
22
|
|
|
23 -d $depth
|
|
|
24 -q $MappingQuality
|
|
|
25 -Q $BaseQuality
|
|
|
26 #if $reference_source.reference_source_selector == "cached"
|
|
|
27 -f $reference_source.ref_file.fields.path
|
|
|
28 #end if
|
|
|
29
|
|
|
30 #if $reference_source.reference_source_selector == "history"
|
|
|
31
|
|
|
32 -f $reference_source.ref_file_h
|
|
|
33
|
|
|
34 #end if
|
|
|
35
|
|
|
36 $input1 -A -o $output 2>$log
|
|
|
37
|
|
|
38
|
|
|
39
|
|
|
40
|
|
|
41
|
|
|
42 ]]>
|
|
|
43 </command>
|
|
|
44 <inputs>
|
|
|
45 <param format="bam" name="input1" label="bam-input" type="data" optional="true" />
|
|
|
46 <param name="adjust" type="integer" optional="true" value="50" help="adjust mapping quality"/>
|
|
|
47 <expand macro="bed_loc"/>
|
|
|
48 <param name="depth" type="integer" optional="true" value="100000" help="max per-file depth" />
|
|
|
49 <param name="MappingQuality" type="integer" optional="true" value="0" help="skip alignments with mapQ smaller than INT" />
|
|
|
50 <param name="BaseQuality" type="integer" optional="true" value="0" help="skip bases with baseQ/BAQ smaller than INT" />
|
|
|
51 <expand macro="reference_loc"/>
|
|
|
52 </inputs>
|
|
|
53 <outputs>
|
|
|
54 <data format="pileup" name="output" label="mpileup on ${on_string}"/>
|
|
|
55 <data format="txt" name="log" label="mpileup on ${on_string}:log"/>
|
|
|
56 </outputs>
|
|
|
57 <help>
|
|
|
58 **more information** at http://www.htslib.org/doc/samtools-1.2.html
|
|
|
59
|
|
|
60 **Implemented options** samtools mpileup
|
|
|
61 -B, --no-BAQ disable BAQ (per-Base Alignment Quality)
|
|
|
62 -C, --adjust-MQ INT adjust mapping quality; recommended:50, disable:0 [0]
|
|
|
63 -d, --max-depth INT max per-file depth; avoids excessive memory usage [8000]
|
|
|
64 -f, --fasta-ref FILE faidx indexed reference sequence file
|
|
|
65 -l, --positions FILE skip unlisted positions (chr pos) or regions (BED)
|
|
|
66 -q, --min-MQ INT skip alignments with mapQ smaller than INT [0]
|
|
|
67 -Q, --min-BQ INT skip bases with baseQ/BAQ smaller than INT [13]
|
|
|
68 **fixed option**
|
|
|
69 -A, --count-orphans do not discard anomalous read pairs
|
|
|
70
|
|
|
71 </help>
|
|
|
72 <citations>
|
|
|
73 <citation type="doi">10.1186/s12864-018-4508-1</citation>
|
|
|
74 </citations>
|
|
|
75 </tool>
|
|
|
76
|