Closed thpralas closed 4 weeks ago
Assays with strictly-negative values are not handled by rarefyAssay.
rarefyAssay
data(GlobalPatterns) tse <- GlobalPatterns matrix <- assay(tse) matrix[1,1] <- -1 assay(tse) <- matrix rarefyAssay(tse)
Error in sample.int(length(x), size, replace, prob) : negative probability
This PR adds an informative error message.
Assays with strictly-negative values are not handled by
rarefyAssay
.This PR adds an informative error message.