Entering edit mode
Hello,
I got the warning message:
In .check_reddim_names(x, value, withDimnames) :
non-NULL 'rownames(value)' should be the same as
'colnames(x)' for 'reducedDim<-'. This will be an error
in the next release of Bioconductor.
Does anyone have solutions?
# package version: scran-1.22.1, scuttle-1.4.0, scater-1.22.0
library(scran); library(scuttle)
sce <- mockSCE(); sce <- logNormCounts(sce)
colnames(sce) <- c(rep('cell1', 100), rep('cell2', 100))
# Modelling the variance:
var.stats <- modelGeneVar(sce)
# Automatically storing the results.
sce <- denoisePCA(sce, technical=var.stats, subset.row=rownames(var.stats))
library(scater)
sce <- runUMAP(sce, dimred="PCA")
Regards
Yes, in my work I need to use duplicated column names.
Without knowing why you need that, I'd still strongly recommend using unique column names and just store the duplicate-containing cell-level metadata in
colData(sce)
for when you need to access it (e.g.,sce$alt_colnames <- (rep('cell1', 100), rep('cell2', 100))
)Got it. Thank you!