Error in groups
1
1
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.

R affy limma GEOquery phenotypic Data • 1.6k views
ADD COMMENT
1
Entering edit mode
8.4 years ago

The column that contains the information you want is accessed using:

groups = pData(gse38642dat[[1]])$characteristics_ch1.5

Then, you'll need to make some small changes to your code, but that should get you started.

ADD COMMENT
0
Entering edit mode

thank u so much it worked :)

ADD REPLY

Login before adding your answer.

Traffic: 2003 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6