diff --git a/JunctionSeq/R/func.R b/JunctionSeq/R/func.R index 271e46c..69b3001 100644 --- a/JunctionSeq/R/func.R +++ b/JunctionSeq/R/func.R @@ -608,7 +608,7 @@ readJunctionSeqCounts <- function(countfiles = NULL, countdata = NULL, lf <- countdata } - if( !all( sapply( lf[-1], function(x) all( x$V1 == lf[1]$V1 ) ) ) ) + if( !all( sapply( lf[-1], function(x) all( x$V1 == lf[[1]]$V1 ) ) ) ) stop( "Count files have differing gene ID column." ) if(isTRUE(verbose)) message("---> File read complete.");