annotate replicateDESeq.xml @ 0:da2dbe13adc2 draft default tip

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
author mvdbeek
date Sat, 05 Mar 2016 07:02:52 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
1 <tool id="replicateDESeq" name="DESeq1 Profiling (replicates)" version="1.0.1">
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
2 <description>with sample replicates</description>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
3 <requirements>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
4 <requirement type="package" version="3.1.2">R</requirement>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
5 <requirement type="package" version="2.14">biocbasics</requirement>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
6 </requirements>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
7 <command>Rscript $replicateDESeq </command>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
8 <inputs>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
9 <param name="input" type="data" format="tabular" label="gene readcount list, more than 2 samples"/>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
10 <param name="expPlan" type="text" label="experimental plan" help="Use a string of Cs and Ts. exemple: CCCTTT means 3 control samples versus 3 test samples"/>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
11 </inputs>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
12 <outputs>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
13 <data name="output" format="tabular" label="DESeq differential calling" />
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
14 </outputs>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
15 <tests>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
16 <test>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
17 <param name="input" value="counts.tab" ftype="tabular"/>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
18 <param name="expPlan" value="CCTTT"/>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
19 <output name="output" file="dge.tab.re_match.modified" ftype="tabular" compare="re_match" lines_diff="5"/>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
20 </test>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
21 </tests>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
22 <configfiles>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
23 <configfile name="replicateDESeq">
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
24 ## Setup R error handling to go to stderr
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
25 options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } )
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
26 suppressMessages(require(DESeq))
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
27 countsTable = read.delim("${input}", header=TRUE, check.names=FALSE)
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
28 rownames( countsTable )= countsTable[,1]
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
29 countsTable= countsTable[ , -1 ]
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
30 stringconds = "${expPlan}"
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
31 conds = unlist(strsplit(stringconds, split=""))
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
32 cds = newCountDataSet( countsTable, conds )
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
33 cds = estimateSizeFactors( cds )
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
34 cds = estimateDispersions( cds, method="per-condition", sharingMode="maximum") ## was fit-only before 9-12-2013 !! tried for RNAseq - Actually does not change anything !
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
35 ## Attention: fitType="local" is added when parametricDispersionFit fails. remove after use !
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
36 res = nbinomTest( cds, "C", "T" )
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
37 # resNA = res[-which(is.na(res[,8])),] ## omitted the NA lignes, but this was causing a full delete of the table completely devoid of NA !! (not logical but true)
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
38 write.table ( res[order(res[,8]), ], file = "${output}", row.names=FALSE, col.names=TRUE, quote= FALSE, dec = ".", sep = "\t", eol = "\n")
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
39 </configfile>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
40 </configfiles>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
41 <help>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
42
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
43 **What it does**
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
44
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
45 DESeq differential calling (order by padj, ascending), on more than two samples, with replicates.
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
46
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
47
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
48 </help>
da2dbe13adc2 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/deseq1_with_replicates commit f95b47ed1a09ce14d3b565e8ea56d8bf12c35814-dirty
mvdbeek
parents:
diff changeset
49 </tool>