Entering edit mode
5.0 years ago
mannoulag1
▴
120
Hi I have a expression data matrix 'mat' and I would like to replace the affymetrix probes with the gene symbols. I did this code:
library(hgu95av2.db)
x <- hgu95av2SYMBOL
# Get the probe identifiers that are mapped to a gene symbol
mapped_probes <- mappedkeys(x)
xx <- as.list(x[mapped_probes])
names <-merge(x,mat,by.x=1,by.y=0)
but how can I obtain the data matrix with only the symbols? with the code I obtained a lower size data matrix 'names' with the affy probes id and the symboles? how to remove the probes id from this matrix? thank you
I will try it, thank you, I edit the question