Hello all,
I am trying to subset ESet object base on feature data. Eset with with feature data was created using following code.
library(ragene10sttranscriptcluster.db) library(annotate) library(R2HTML) library(limma) ID <- featureNames(eset) Symbol <- getSYMBOL(ID, "ragene10sttranscriptcluster.db") Name <- as.character(lookUp(ID, "ragene10sttranscriptcluster.db", "GENENAME")) tmp <- data.frame(ID=ID, Symbol=Symbol, Name=Name) fData(eset) <- tmp > eset ExpressionSet (storageMode: lockedEnvironment) assayData: 28826 features, 13 samples element names: exprs protocolData sampleNames: M11001NB1H-Heart-1-RatGeneArray.CEL M11003NB1H-Heart-3-RatGeneArray.CEL ... M11024NB2H-Heart-24-2-RatGeneArray.CEL (13 total) varLabels: ScanDate varMetadata: labelDescription phenoData sampleNames: M11001NB1H-Heart-1-RatGeneArray.CEL M11003NB1H-Heart-3-RatGeneArray.CEL ... M11024NB2H-Heart-24-2-RatGeneArray.CEL (13 total) varLabels: sample varMetadata: labelDescription featureData featureNames: 10700001 10700003 ... 10940690 (28826 total) fvarLabels: ID Symbol Name fvarMetadata: labelDescription experimentData: use 'experimentData(object)' Annotation: ragene10stv1
Now I want to get eset object only where Symbol is available for corresponding ID
sub<-eset[fData(eset)[2]!="NA"]
This gives me whole 28826 features again.
I appreciate any help.
Regards,
Thanks, Jim.