Hi, I'm getting an error when attempting to perform SCDC with batches using SCDC_prop. The exact error I'm getting is:
Error in sc.basis$sigma[commongenes, ct.sub] : subscript out of bounds
I've tracked the error to SCDC_basis failing to assign row names to the sigma matrix. so that commongenes cannot be used to subset the matrix.
I've managed to work around the error by reassigning rownames from the mean.mat from which sigma is derived via
rownames(sigma) <- rownames(mean.mat)
(I checked on my local dataset that rownames(mean.mat) are identical to the names of the returned vector from the sapply function that builds the sigma object)
Hi, I'm getting an error when attempting to perform SCDC with batches using
SCDC_prop. The exact error I'm getting is:I've tracked the error to
SCDC_basisfailing to assign row names to thesigmamatrix. so thatcommongenescannot be used to subset the matrix.I've managed to work around the error by reassigning rownames from the
mean.matfrom whichsigmais derived via(I checked on my local dataset that
rownames(mean.mat)are identical to the names of the returned vector from thesapplyfunction that builds the sigma object)