From 086f4f9e084466a77bd23d66a98aa08d34937db5 Mon Sep 17 00:00:00 2001 From: Ines Scheller Date: Tue, 16 Apr 2024 18:43:07 +0200 Subject: [PATCH] fix missing colnames in test --- R/AllGenerics.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/R/AllGenerics.R b/R/AllGenerics.R index 180863f3..45a8fa3f 100644 --- a/R/AllGenerics.R +++ b/R/AllGenerics.R @@ -1111,6 +1111,9 @@ aberrant.FRASER <- function(object, type=fitMetrics(object), aberrantEvents <- aberrantEvents & as.matrix(rho <= rhoCutoff) } aberrantEvents[is.na(aberrantEvents)] <- FALSE + if(is.null(colnames(aberrantEvents))){ + colnames(aberrantEvents) <- colnames(object) + } } if(isTRUE(aggregate)){