diff edgeR_repenrich.R @ 3:1805b262c12d draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/repenrich commit ca572343d2a24d645dedd6c5d2cb352115ed8bf3
author drosofff
date Tue, 30 May 2017 10:34:53 -0400
parents 54a3f3a195d6
children
line wrap: on
line diff
--- a/edgeR_repenrich.R	Mon May 29 17:08:36 2017 -0400
+++ b/edgeR_repenrich.R	Tue May 30 10:34:53 2017 -0400
@@ -147,10 +147,6 @@
     write.table(normalizedAbundance, file=opt$countsfile, sep="\t", col.names=TRUE, row.names=FALSE, quote=FALSE)
 }
 
-# test
-print(counts)
-print(cpm)
-
 # Conduct fitting of the GLM
 yfit <- glmFit(y, design)
 
@@ -160,12 +156,12 @@
 
 # Make the comparisons for the GLM
 my.contrasts <- makeContrasts(
-    paste0(opt$levelNameB,"_",opt$levelNameA," = ", opt$levelNameB, " - ", opt$levelNameA),
+    paste0(opt$levelNameA,"_",opt$levelNameB," = ", opt$levelNameA, " - ", opt$levelNameB),
     levels = design
 )
 
 # Define the contrasts used in the comparisons
-allcontrasts =  paste0(opt$levelNameB," vs ",opt$levelNameA)
+allcontrasts =  paste0(opt$levelNameA," vs ",opt$levelNameB)
 
 # Conduct a for loop that will do the fitting of the GLM for each comparison
 # Put the results into the results objects