Entering edit mode
8.4 years ago
786
▴
50
Hi I was working on GSE38642 and got an error in defining phenotypic data while making groups for analyzing differential expression. I think I've defined groups properly but still getting error and it is as follows:
> groups = pData(phenoData(gse38642dat[[1]]))$status
> groups=as.character(groups)
> groups[groups=="non-diabetic donors"]="control"
> groups[groups=="T2D donors"]="T2D"
> f = factor(groups, levels=c("control","T2D"))
> f
[1] <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
[16] <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
[31] <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
[46] <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA> <NA>
[61] <NA> <NA> <NA>
Levels: control T2D
Why it isn't recognizing the samples?Please help me in finding error. It'll be very helpful for me.
thank u so much it worked :)