I have a microarray dataset with and I have labeled the data such that it looks something like this:
[9967] piRNA piRNA piRNA piRNA piRNA piRNA
[9973] piRNA piRNA piRNA piRNA piRNA piRNA
[9979] snoRNA snoRNA snoRNA snoRNA snoRNA snoRNA
[9985] tiRNA tiRNA tiRNA tiRNA tiRNA tiRNA
[9991] miRNA miRNA miRNA miRNA miRNA miRNA
So basically I have a bunch of different probe-types in a single-channel micro-array and I want to make a contrast to see which are DE.
I have tried to do this as follows:
design<-factor(levels(probe.type1)) design<-model.matrix(~0+design) dim(design) dim(E.ncRNA1) subE.ncRNA1<-E.ncRNA1[ ,1:12] fit<-lmFit(subE.ncRNA1, design) contrast.matrix <- makeContrasts(
piRNA-miRNA,
levels=design)
trying <- contrasts.fit(fit, contrast.matrix)
try <- eBayes(trying)
trying<-eBayes(trying)
volcanoplot(trying)
The problem occurs where I try to make the contrasts:
contrast.matrix <- makeContrasts(pivsmi=piRNA-miRNA, levels=design)
Error in makeContrasts(pivsmi = piRNA - miRNA, levels = design) :
The levels must by syntactically valid names in R, see help(make.names). Non valid names: designputative miRNA,designsub scRNA,designvault RNA
Can anyone tell me what I'm doing wrong? I plan to submit this Q to the BioConductor help forum as well.
Hi Steve, Thanks very much