Browse code

Fixing a bug in edgeR reporting

Fixed a bug where missing rownames in DGE results was causing some problems.

JasonHackney authored on 13/11/2017 19:27:22
Showing 2 changed files

... ...
@@ -1,6 +1,6 @@
1 1
 Package: ReportingTools
2 2
 Title: Tools for making reports in various formats
3
-Version: 2.17.3
3
+Version: 2.17.4
4 4
 Author: Jason A. Hackney, Melanie Huntley, Jessica L. Larson, Christina
5 5
         Chaivorapol, Gabriel Becker, and Josh Kaminker
6 6
 Maintainer: Jason A. Hackney <hackney.jason@gene.com>, Gabriel Becker
... ...
@@ -23,14 +23,14 @@ setMethod("publish",
23 23
 {
24 24
     dat <- topTags(object, n = n, adjust.method = adjust.method, 
25 25
         sort.by = sort.method)
26
-
27
-    if(!is.null(object$genes) & all(rownames(object$genes) == 
28
-            as.character(seq_along(rownames(object$genes))))){
29
-        selection <- as.numeric(rownames(dat$table))
30
-        selection <- rownames(object$table)[selection]
31
-    } else {
32
-        selection <- rownames(dat$table)
33
-    }
26
+    
27
+    # if(!is.null(object$genes) & all(rownames(object$genes) ==
28
+    #         as.character(seq_along(rownames(object$genes))))){
29
+    #     selection <- as.numeric(rownames(dat$table))
30
+    #     selection <- rownames(object$table)[selection]
31
+    # } else {
32
+    selection <- rownames(dat$table)
33
+    # }
34 34
     
35 35
     ##The following gives you all pvalues
36 36
     padj <- p.adjust(object$table$PValue, method = adjust.method)