Browse code

Function geneVisualization() now supports non-human datasets for non-functional options.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/branches/RELEASE_3_5/madman/Rpacks/DEsubs@130664 bc3139a8-67e5-0310-9ffc-ced21a209358

Panos Balomenos authored on 25/06/2017 15:58:19
Showing 2 changed files

... ...
@@ -1,5 +1,5 @@
1 1
 Package: DEsubs
2
-Version: 1.2.0
2
+Version: 1.2.1
3 3
 Date: 2015-07-19
4 4
 Title: DEsubs: an R package for flexible identification of
5 5
         differentially expressed subpathways using RNA-seq expression
... ...
@@ -91,9 +91,11 @@ geneVisualization <- function ( DEsubs.out,
91 91
     # Analysis #3
92 92
     if (  measures.barplot )
93 93
     {
94
-
95
-        names(topGenes) <- .changeAnnotation(annData=names(topGenes), 
96
-                                    org='hsa', choice='entrezToHGNC')
94
+        if ( org == 'hsa' )
95
+        {
96
+            names(topGenes) <- .changeAnnotation(annData=names(topGenes), 
97
+                                        org='hsa', choice='entrezToHGNC')
98
+        }
97 99
 
98 100
         .matrixVisualization( -log10(topGenes), type='barplot', title='',
99 101
                             colors=colors.barplot, 
... ...
@@ -158,9 +160,12 @@ geneVisualization <- function ( DEsubs.out,
158 160
 
159 161
     if ( visualize )
160 162
     {
161
-        rownames(ranking) <- .changeAnnotation( annData=rownames(ranking), 
162
-                                                org='hsa',
163
-                                                choice='entrezToHGNC')
163
+        if (org == 'hsa')
164
+        {
165
+            rownames(ranking) <- .changeAnnotation( annData=rownames(ranking), 
166
+                                                    org='hsa',
167
+                                                    choice='entrezToHGNC')
168
+        }
164 169
 
165 170
         .matrixVisualization( dataVis=as.matrix(ranking), 
166 171
                                 type='heatmap', title='topological',