Sorting Gene Expression Omnibus GSE file by phenoData
1
0
Entering edit mode
23 months ago
aok1234 • 0

I was able to upload GSE40774 to R using:

gse40774 <- getGEO('GSE40774',GSEMatrix=TRUE)

show(gse40774)

I was also able to see the phenoData using:

show(pData(phenoData(gse40774[[1]]))[1:2,c(1:13)])

I am only interested in seeing those samples that have "hpv status: neg" in column 13 of the phenoData (characteristics_ch1.3). How do I filter the gse expression data by phenoData column?

GEO GSE R GEOquery • 433 views
ADD COMMENT
0
Entering edit mode
23 months ago
Basti ★ 2.0k

You can easily select your samples of interest by searching the samples that match your criteria with which:

expr=exprs(gse40774[[1]])
pheno=pData(gse40774[[1]])

selection=rownames(pheno[which(pheno$characteristics_ch1.3=="hpv status: neg"),])

expr[,selection]
ADD COMMENT

Login before adding your answer.

Traffic: 1750 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