Browse code

bugfix for class is/vs inherits

erik.dassi@gmail.com authored on 02/03/2020 08:21:43
Showing 1 changed files

... ...
@@ -287,7 +287,7 @@ newTranslatomeDataset <- function(expr.matrix, cond.a, cond.b, cond.c, cond.d,
287 287
   # if the input dataset is a Biobase ExpressionSet, 
288 288
   # extract the expression matrix from it
289 289
   finalMatrix = expr.matrix
290
-  if (class(expr.matrix) == "ExpressionSet") finalMatrix = exprs(expr.matrix)
290
+  if (is(expr.matrix, "ExpressionSet")) finalMatrix = exprs(expr.matrix)
291 291
   
292 292
 	return(new(Class="TranslatomeDataset",expr.matrix = finalMatrix, 
293 293
 						 cond.a=cond.a, cond.b=cond.b, cond.c=cond.c, cond.d=cond.d,