10
|
1 <tool id="deeptools_bamFingerprint" name="bamFingerprint" version="1.0.2">
|
0
|
2 <description>plots profiles of BAM files; useful for assesing ChIP signal strength</description>
|
|
3 <expand macro="requirements" />
|
10
|
4 <expand macro="stdio" />
|
0
|
5 <macros>
|
|
6 <import>deepTools_macros.xml</import>
|
|
7 </macros>
|
|
8 <command>
|
|
9 @multiple_input_bams@
|
|
10
|
|
11 bamFingerprint
|
|
12
|
|
13 @THREADS@
|
|
14
|
|
15 --bamfiles #echo " ".join($files)
|
|
16 --labels #echo " ".join($labels)
|
|
17
|
|
18 --fragmentLength $fragmentLength
|
|
19
|
|
20 #set newoutFileName=str($outFileName)+".png"
|
|
21 --plotFile $newoutFileName
|
|
22
|
13
|
23 #if $output.showOutputSettings == "yes"
|
|
24 --plotFileFormat $output.outFileFormat
|
|
25 #if $output.saveRawCounts:
|
0
|
26 --outRawCounts '$outFileRawCounts'
|
|
27 #end if
|
13
|
28 #else
|
|
29 --plotFileFormat 'png'
|
0
|
30 #end if
|
|
31
|
|
32 #if $advancedOpt.showAdvancedOpt == "yes":
|
|
33
|
|
34 #if str($advancedOpt.region.value) != '':
|
|
35 --region '$advancedOpt.region'
|
|
36 #end if
|
|
37
|
|
38 --binSize '$advancedOpt.binSize'
|
|
39 --numberOfSamples '$advancedOpt.numberOfSamples'
|
|
40
|
|
41 $advancedOpt.doNotExtendPairedEnds
|
|
42 $advancedOpt.ignoreDuplicates
|
|
43 $advancedOpt.skipZeros
|
|
44
|
|
45 #if $advancedOpt.minMappingQuality:
|
|
46 --minMappingQuality '$advancedOpt.minMappingQuality'
|
|
47 #end if
|
|
48 #end if
|
|
49 ; mv $newoutFileName $outFileName
|
|
50 ; rm $temp_dir -rf
|
|
51 </command>
|
|
52
|
|
53 <inputs>
|
|
54 <expand macro="multiple_input_bams" />
|
|
55
|
|
56 <param name="fragmentLength" type="integer" value="200" min="1"
|
|
57 label="Length of the average fragment size"/>
|
|
58 <conditional name="advancedOpt">
|
|
59 <param name="showAdvancedOpt" type="select" label="Show advanced options" >
|
|
60 <option value="no" selected="true">no</option>
|
|
61 <option value="yes">yes</option>
|
|
62 </param>
|
|
63 <when value="no" />
|
|
64 <when value="yes">
|
|
65 <param name="region" type="text" value=""
|
|
66 label="Region of the genome to limit the operation to"
|
|
67 help="This is useful when testing parameters to reduce the computing time. The format is chr:start:end, for example "chr10" or "chr10:456700:891000"" />
|
|
68
|
|
69 <param name="binSize" type="integer" value="10000" min="1"
|
|
70 label="Bin size in bp"
|
|
71 help="Length in base pairs for a window used to sample the genome."/>
|
|
72
|
|
73 <param name="numberOfSamples" type="integer" value="100000" min="1"
|
|
74 label="Number of samples"
|
|
75 help="Number of samples taken from the genome to compute the scaling factors"/>
|
|
76
|
|
77 <param name="doNotExtendPairedEnds" type="boolean" truevalue="--doNotExtendPairedEnds" falsevalue=""
|
|
78 label="Do not extend paired ends"
|
|
79 help="If set, reads are not extended to match the fragment length reported in the BAM file, instead they will be extended to match the fragment length. Default is to extend the reads if paired end information is available."/>
|
|
80
|
|
81 <param name="ignoreDuplicates" type="boolean" truevalue="--ignoreDuplicates" falsevalue=""
|
|
82 label="Ignore duplicates"
|
|
83 help="If set, reads that have the same orientation and start position will be considered only once. If reads are paired, the mate position also has to coincide to ignore a read." />
|
|
84
|
|
85 <param name="minMappingQuality" type="integer" optional="true" value="1" min="1"
|
|
86 label="Minimum mapping quality"
|
|
87 help= "If set, only reads that have a mapping quality score higher than the given value are considered. *Note* Bowtie's Mapping quality is related to uniqueness: the higher the score, the more unique is a read. A mapping quality defined by Bowtie of 10 or less indicates that there is at least a 1 in 10 chance that the read truly originated elsewhere."/>
|
|
88
|
|
89 <param name="skipZeros" type="boolean" truevalue="--skipZeros" falsevalue=""
|
|
90 label ="Include zeros"
|
|
91 help ="If set, then zero counts that happen for *all* BAM files given are ignored. This might have the effect that fewer regions are considered than indicated in the option where the number of samples is defined." />
|
|
92 </when>
|
|
93 </conditional>
|
|
94
|
13
|
95 <conditional name="output">
|
|
96 <param name="showOutputSettings" type="select" label="Show advanced output settings">
|
0
|
97 <option value="no" selected="true">no</option>
|
|
98 <option value="yes">yes</option>
|
|
99 </param>
|
|
100 <when value="no" />
|
|
101 <when value="yes">
|
13
|
102 <expand macro="input_image_file_format" />
|
0
|
103 <param name="saveRawCounts" type="boolean" label="Save the bin counts"/>
|
|
104 </when>
|
|
105 </conditional>
|
|
106
|
|
107 </inputs>
|
|
108 <outputs>
|
13
|
109 <expand macro="output_image_file_format" />
|
0
|
110 <data format="tabular" name="outFileRawCounts" label="${tool.name} on ${on_string}: bin counts">
|
13
|
111 <filter>
|
|
112 ((
|
16
|
113 output['showOutputSettings'] == 'yes' and
|
|
114 output['saveRawCounts'] is True
|
13
|
115 ))
|
|
116 </filter>
|
0
|
117 </data>
|
|
118 </outputs>
|
|
119 <help>
|
|
120
|
|
121 **What it does**
|
|
122
|
|
123 This tool is based on a method developed by Diaz et al. (2012). Stat Appl Genet Mol Biol 11(3).
|
|
124 The resulting plot can be used to assess the strength of a ChIP (for factors that bind to narrow regions).
|
|
125 The tool first samples indexed BAM files and counts all reads overlapping a window (bin) of specified length.
|
|
126 These counts are then sorted according to their rank and the cumulative sum of read counts are plotted. An ideal input
|
|
127 with perfect uniform distribution of reads along the genome (i.e. without enrichments in open chromatin etc.) should
|
|
128 generate a straight diagonal line. A very specific and strong ChIP enrichment will be indicated by a prominent and steep
|
|
129 rise of the cumulative sum towards the highest rank. This means that a big chunk of reads from the ChIP sample is located in
|
|
130 few bins which corresponds to high, narrow enrichments seen for transcription factors.
|
|
131
|
|
132
|
|
133 .. image:: $PATH_TO_IMAGES/QC_fingerprint.png
|
|
134
|
|
135
|
|
136 **Output files**:
|
|
137
|
|
138 - Diagnostic plot
|
|
139 - Data matrix of raw counts
|
|
140
|
|
141 -----
|
|
142
|
|
143 .. class:: infomark
|
|
144
|
|
145 @REFERENCES@
|
|
146
|
|
147 </help>
|
|
148 </tool>
|