Thanks, it worked. I just had another question.
keep <- c("dedifferentiated liposarcoma", "well differentiated liposarcoma")
sample_idx <- which(gs0 %in% keep)
gset <- gset[, sample_idx]
gs <- pData(gset)$`tissue:ch1`
table(gs)
differential expression analysis ----------------------------------------
assign samples to groups and set up design matrix
gs <- factor(ifelse(gs == "well differentiated liposarcoma", "WDLPS", "DDLPS"))
gset$group <- gs
design <- model.matrix(~group, gset)
For this command design <- model.matrix(~group, gset)
I get the following error message: Error in contrasts<-(`tmp`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
Do you know I might correct this?