1
|
1 <tool id="diffbind" name="DiffBind" version="2.0.2">
|
0
|
2 <description> differential binding analysis of ChIP-Seq peak data</description>
|
|
3 <requirements>
|
1
|
4 <requirement type="package" version="3.0.3">R</requirement>
|
|
5 <requirement type="package" version="1.2.10">deseq2</requirement>
|
0
|
6 <requirement type="package" version="1.8.3">diffbind</requirement>
|
|
7 </requirements>
|
|
8 <command>
|
1
|
9 <![CDATA[
|
0
|
10 ## seems that diffbind also needs file extensions to work properly
|
|
11 #set $counter = 1
|
|
12 #for $sample in $samples:
|
1
|
13 ln -s $sample.bamreads #echo str($counter) + "_bamreads.bam"# &&
|
|
14 ln -s ${sample.bamreads.metadata.bam_index} #echo str($counter) + "_bamreads.bai"# &&
|
|
15 ln -s $sample.bamcontrol #echo str($counter) + "_bamcontrol.bam"# &&
|
|
16 ln -s ${sample.bamcontrol.metadata.bam_index} #echo str($counter) + "_bamcontrol.bai"# &&
|
0
|
17 #set $counter = $counter + 1
|
|
18 #end for
|
|
19
|
1
|
20 Rscript $__tool_directory__/diffbind.R
|
0
|
21 -i $infile
|
|
22 -o $outfile
|
|
23 -p $plots
|
|
24 -f $format
|
1
|
25 ]]>
|
0
|
26 </command>
|
|
27 <stdio>
|
1
|
28 <regex match="Execution halted"
|
|
29 source="both"
|
|
30 level="fatal"
|
0
|
31 description="Execution halted." />
|
1
|
32 <regex match="Input-Error 01"
|
|
33 source="both"
|
|
34 level="fatal"
|
0
|
35 description="Error in your input parameters: Make sure you only apply factors to selected samples." />
|
1
|
36 <regex match="Error in"
|
|
37 source="both"
|
|
38 level="fatal"
|
0
|
39 description="An undefined error occured, please check your intput carefully and contact your administrator." />
|
|
40 </stdio>
|
|
41 <inputs>
|
|
42 <repeat name="samples" title="Samples" min="2">
|
|
43 <param name="sample_id" type="text" value="Sample ID" label="Specify a sample id" help="e.g. BT474.1-" />
|
|
44 <param name="tissue" type="text" value="Tissue" label="Specify the tissue" help="e.g. BT474" />
|
|
45 <param name="factor" type="text" value="Factor Name" label="Specify a factor name" help="e.g. ER" />
|
|
46 <param name="condition" type="text" value="Condition" label="Specify the condition" help="e.g. Resistent" />
|
|
47 <param name="replicate" type="integer" value="1" label="Specify the replicate number" help="e.g. 1" />
|
|
48 <param format="bam" name="bamreads" type="data" label="Read BAM file" help="Specify the Read BAM file, used for Peak calling."/>
|
|
49 <param format="bam" name="bamcontrol" type="data" label="Control BAM file" help="Specify the Control BAM file, used for Peak calling."/>
|
|
50 <param format="bed" name="peaks" type="data" label="Peak file" help="Result of your Peak calling experiment."/>
|
|
51 </repeat>
|
1
|
52 <param name="pdf" type="boolean" truevalue="" falsevalue="" checked="true"
|
0
|
53 label="Visualising the analysis results"
|
|
54 help="output an additional PDF files" />
|
|
55 <param name="format" type="select" label="Output Format">
|
|
56 <option value="bed">BED</option>
|
|
57 <option value="gff">GFF</option>
|
|
58 <option value="wig">WIG</option>
|
|
59 </param>
|
|
60 </inputs>
|
|
61 <configfiles>
|
|
62 <configfile name="infile">
|
|
63 SampleID,Tissue,Factor,Condition,Replicate,bamReads,bamControl,Peaks
|
|
64 #set $counter = 1
|
|
65 #for $sample in $samples:
|
|
66 $sample.sample_id,$sample.tissue,$sample.factor,$sample.condition,$sample.replicate,#echo str($counter) + '_bamreads.bam'#,#echo str($counter) + '_bamcontrol.bam'#,$sample.peaks
|
|
67 #set $counter = $counter + 1
|
|
68 #end for
|
|
69 </configfile>
|
|
70 </configfiles>
|
|
71 <outputs>
|
|
72 <data format="bed" name="outfile" label="Differential binding sites on ${on_string}">
|
|
73 <change_format>
|
|
74 <when input="format" value="wig" format="wig" />
|
|
75 <when input="format" value="gff" format="gff" />
|
|
76 </change_format>
|
|
77 </data>
|
|
78 <data format="pdf" name="plots" label="Differential binding sites on ${on_string}">
|
|
79 <filter>pdf == True</filter>
|
|
80 </data>
|
|
81 </outputs>
|
|
82
|
|
83 <help>
|
1
|
84 <![CDATA[
|
0
|
85
|
|
86
|
1
|
87 **What it does**
|
|
88
|
|
89 Diffbind provides functions for processing ChIP-Seq data enriched for genomic loci where specific protein/DNA binding occurs, including peak sets identified by ChIP-Seq peak callers and aligned sequence read datasets.
|
|
90
|
|
91 **Input**
|
|
92
|
|
93 - You have to specify your samples. Here is one example:
|
|
94
|
|
95 ID Tissue Factor Condition Treatment Replicate Caller Intervals
|
|
96 BT4741 BT474 ER Resistant Full-Media 1 raw 1084
|
|
97
|
|
98 - BAM file which contains the mapped sequencing reads can be associated with each
|
|
99 peakset
|
0
|
100
|
1
|
101 - Control BAM file represents a control dataset
|
|
102
|
|
103 - Peak file: Result of your Peak calling experiment
|
|
104
|
|
105
|
|
106 **Output**
|
0
|
107
|
1
|
108 As output format you can choose BED, GFF, WIG.
|
|
109
|
|
110
|
|
111 **References**
|
|
112
|
|
113 DiffBind_ Authors: Rory Stark, Gordon Brown (2011)
|
0
|
114
|
|
115 .. _DiffBind: http://www.bioconductor.org/packages/release/bioc/html/DiffBind.html
|
|
116
|
|
117 Wrapper authors: Bjoern Gruening, Pavankumar Videm
|
|
118
|
1
|
119 ]]>
|
0
|
120 </help>
|
|
121 </tool>
|