Browse code

Bug Fix & Version Bump

Juan Pablo Romero authored on 06/03/2020 08:20:16
Showing 2 changed files

... ...
@@ -2,7 +2,7 @@ Package: EventPointer
2 2
 Type: Package
3 3
 Title: An effective identification of alternative splicing events
4 4
 	   using junction arrays and RNA-Seq data
5
-Version: 2.5.3
5
+Version: 2.5.4
6 6
 Author: Juan Pablo Romero, Juan A. Ferrer-Bonsoms, Pablo Sacristan, Ander Muniategui, Fernando Carazo, Ander Aramburu, Angel Rubio
7 7
 Maintainer: Juan Pablo Romero <jpromero@ceit.es>
8 8
 Description: EventPointer is an R package to identify alternative splicing events 
... ...
@@ -38,10 +38,9 @@ PSI_Statistic <- function(PSI, Design, Contrast,
38 38
         stop("PSI field is empty")
39 39
     }
40 40
     
41
-    if (class(Design) != "matrix" | class(Contrast) != 
42
-        "matrix") {
43
-        stop("Wrong Design and/or Contrast matrices")
44
-    }
41
+  if (any(!is(Design,"matrix"),!is(Contrast,"matrix"))) {
42
+    stop("Wrong Design and/or Contrast matrices")
43
+  }
45 44
     
46 45
     if (is.null(nboot)) {
47 46
         stop("nboot field is empty")