annotate diffbind.xml @ 0:7faaf4a5e4e1 draft

Uploaded
author bgruening
date Thu, 16 Jan 2014 04:15:09 -0500
parents
children 9e9f85c20d99
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
1 <tool id="diffbind" name="DiffBind" version="2.0.1">
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
2 <description> differential binding analysis of ChIP-Seq peak data</description>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
3 <requirements>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
4 <requirement type="binary">Rscript</requirement>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
5 <requirement type="R-module">DESeq2</requirement>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
6 <requirement type="package" version="3.0.1">R_3_0_1</requirement>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
7 <requirement type="package" version="1.0.17">deseq2</requirement>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
8 <requirement type="package" version="1.8.3">diffbind</requirement>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
9 </requirements>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
10 <command>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
11 ## seems that diffbind also needs file extensions to work properly
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
12 #set $counter = 1
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
13 #for $sample in $samples:
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
14 ln -s $sample.bamreads #echo str($counter) + "_bamreads.bam"# &amp;&amp;
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
15 ln -s ${sample.bamreads.metadata.bam_index} #echo str($counter) + "_bamreads.bai"# &amp;&amp;
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
16 ln -s $sample.bamcontrol #echo str($counter) + "_bamcontrol.bam"# &amp;&amp;
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
17 ln -s ${sample.bamcontrol.metadata.bam_index} #echo str($counter) + "_bamcontrol.bai"# &amp;&amp;
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
18 #set $counter = $counter + 1
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
19 #end for
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
20
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
21 Rscript /usr/local/galaxy/shed_tools/testtoolshed.g2.bx.psu.edu/repos/bgruening/diffbind/7929c8b3f6f9/diffbind/diffbind.R
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
22 -i $infile
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
23 -o $outfile
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
24 -p $plots
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
25 -f $format
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
26 </command>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
27 <stdio>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
28 <regex match="Execution halted"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
29 source="both"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
30 level="fatal"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
31 description="Execution halted." />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
32 <regex match="Input-Error 01"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
33 source="both"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
34 level="fatal"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
35 description="Error in your input parameters: Make sure you only apply factors to selected samples." />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
36 <regex match="Error in"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
37 source="both"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
38 level="fatal"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
39 description="An undefined error occured, please check your intput carefully and contact your administrator." />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
40 </stdio>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
41 <inputs>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
42 <repeat name="samples" title="Samples" min="2">
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
43 <param name="sample_id" type="text" value="Sample ID" label="Specify a sample id" help="e.g. BT474.1-" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
44 <param name="tissue" type="text" value="Tissue" label="Specify the tissue" help="e.g. BT474" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
45 <param name="factor" type="text" value="Factor Name" label="Specify a factor name" help="e.g. ER" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
46 <param name="condition" type="text" value="Condition" label="Specify the condition" help="e.g. Resistent" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
47 <param name="replicate" type="integer" value="1" label="Specify the replicate number" help="e.g. 1" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
48 <param format="bam" name="bamreads" type="data" label="Read BAM file" help="Specify the Read BAM file, used for Peak calling."/>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
49 <param format="bam" name="bamcontrol" type="data" label="Control BAM file" help="Specify the Control BAM file, used for Peak calling."/>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
50 <param format="bed" name="peaks" type="data" label="Peak file" help="Result of your Peak calling experiment."/>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
51 </repeat>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
52 <param name="pdf" type="boolean" truevalue="" falsevalue="" checked="true"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
53 label="Visualising the analysis results"
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
54 help="output an additional PDF files" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
55 <param name="format" type="select" label="Output Format">
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
56 <option value="bed">BED</option>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
57 <option value="gff">GFF</option>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
58 <option value="wig">WIG</option>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
59 </param>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
60 </inputs>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
61 <configfiles>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
62 <configfile name="infile">
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
63 SampleID,Tissue,Factor,Condition,Replicate,bamReads,bamControl,Peaks
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
64 #set $counter = 1
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
65 #for $sample in $samples:
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
66 $sample.sample_id,$sample.tissue,$sample.factor,$sample.condition,$sample.replicate,#echo str($counter) + '_bamreads.bam'#,#echo str($counter) + '_bamcontrol.bam'#,$sample.peaks
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
67 #set $counter = $counter + 1
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
68 #end for
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
69 </configfile>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
70 </configfiles>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
71 <outputs>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
72 <data format="bed" name="outfile" label="Differential binding sites on ${on_string}">
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
73 <change_format>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
74 <when input="format" value="wig" format="wig" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
75 <when input="format" value="gff" format="gff" />
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
76 </change_format>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
77 </data>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
78 <data format="pdf" name="plots" label="Differential binding sites on ${on_string}">
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
79 <filter>pdf == True</filter>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
80 </data>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
81 </outputs>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
82
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
83 <help>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
84
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
85 .. class:: infomark
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
86
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
87 **What it does**
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
88
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
89
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
90 ------
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
91
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
92 **References**
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
93
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
94 DiffBind_ Authors: Rory Stark, Gordon Brown
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
95
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
96 .. _DiffBind: http://www.bioconductor.org/packages/release/bioc/html/DiffBind.html
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
97
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
98 Wrapper authors: Bjoern Gruening, Pavankumar Videm
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
99
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
100 </help>
7faaf4a5e4e1 Uploaded
bgruening
parents:
diff changeset
101 </tool>