Entering edit mode
4.4 years ago
lordoftheflower
▴
10
Hi all, i've been trying out PSEA deonvolution for expression count matrices; i managed to reach the steps
constructing ref signals
neuref<-marker(neuronprobeset,expr=counts,targetMean = 100)
mgref<-marker(mgprobeset,expr=counts,targetMean = 100)
oligref<-marker(oligprobeset,expr=counts,targetMean = 100)
oligprecref<-marker(oligprecprobeset,expr=counts.wt,targetMean = 100)
astrref<-marker(astrprobeset,expr=counts,targetMean = 100)
x<-c(0,1)
groups vector matching order of count matrix
groups<-rep(x,each=4)
model_matrix<- fmm(cbind(neuref,astrref,oligref,mgref,oligprecref),groups)
model_subset<-em_quantvg(c(2,3,4,5), tnv=4, ng=1,int=TRUE)
models<- lmfitst(t(counts), model_matrix, model_subset)
However, i get the error from lmfitst
Error in terms.formula(formula, data = data) : '.' in formula and no 'data' argument
May i know why doesnt the function recognise the count matrices and model_matrix?
Just to give a glimpse of what is counts and model_matrix;
[8,] 90.65504 91.50933 92.10532
i anonymise the colnames which contains samples to 1-8; pls pardon the spacing formatting of colnames