You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any normalization method should work when there are multiple variables (p>1), as well as when there is only 1 variable (p=1) over N observations (samples).
Code that breaks because current implementation assumes a matrix with more than 1 variable:
library(bladderbatch)
data(bladderdata)
dat = bladderEset[1,] **#### <- Here, isntead of first 50 variables, I just subset the data to the first variable ####**
pheno = pData(dat)
edata = exprs(dat)
batch = pheno$batch
mod = model.matrix(~as.factor(cancer), data=pheno)
# parametric adjustment
combat_edata1 = ComBat(dat=edata, batch=batch, mod=NULL, par.prior=TRUE, prior.plots=FALSE)
Error:
Error in apply(dat[, batch == batch_level], 1, function(x) { :
dim(X) must have a positive length
The text was updated successfully, but these errors were encountered:
Any normalization method should work when there are multiple variables (p>1), as well as when there is only 1 variable (p=1) over N observations (samples).
Code that breaks because current implementation assumes a matrix with more than 1 variable:
Error:
The text was updated successfully, but these errors were encountered: