I recently installed the new version of scater for R that uses a SingleCellExperiment object instead of the SCESet object. When I read in a 10X dataset using read10XResults, I get a Single Cell Experiment object that looks good. But when I try to remove genes with no values I get an error message when using rowSums: Here is my code
sce10x <- read10XResults(data_dir = "cellranger_input_data") keep_feature <- rowSums(counts(sce10x) > 0) > 0
The following error is returned
Error in rowSums(counts(sce10x) > 0) :
'x' must be an array of at least two dimensions
Any help on this issue?
That worked, thanks!