I am trying to conduct a preliminary test on my data before moving onto the real analysis in CellCODE, whereby my data ("E.rna")-
Has been labeled using the IRIS data that accompanies CellCODE.
EmapTag=tagData(IRIS, 0.7, max=15, ref=E.rna, ref.mean=F)
"E.rna", then has columns so I set the following to split it into two groups.
grp=as.factor(rep(c(1,2), each=ncol(E.rna)/2)) #ensuring it matches the ncol(E.rna) SPVs=getAllSPVs(E.rna, grp=grp, dataTag=EmapTag, method="mixed", plot=T, mix.par=0.3)
The process seems to work up until the last line where I get an error:
But then the process is curtailed by the following error.
Error in apply(data, 1, mean) : dim(X) must have a positive length
Has anyone encountered this error before?