Substituting Probe ID to Gene Symbols in Pheatmap
0
0
Entering edit mode
2.6 years ago
Prateek ▴ 20

Hello, I have selected top 5 genes using differential analysis from a GSE series and plotted a heatmap using the package pheatmap.
Heatmap

The coding is as follows:

top_genes <- ExcelNew$ID[1:5]

pheatmap(exprs(GEOSeries)[top_genes,],annotation_col = SampleInfo)

The ExcelNew is a data frame which contains 66 probe id in one column mapped with Gene Symbol in different column.ExcelNew screenshot

exprs(GEOSeries) contains assay data (expression levels) for each of 36 samples (17AD, 19CTRL) for the GSE series with respect to around 5.5 lakh ID references.exprs screenshot

Is it possible to replace these 5 or n number of Probe IDs to Gene Symbols with respect to GENE_SYMBOL in ExcelNew so that instead of Probe IDs on the heatmap, gene symbols are shown.

Thanks

Differential Expression Pheatmap Analysis R • 872 views
ADD COMMENT
1
Entering edit mode

join on row.names of exprs(GEOSeries) and ID column of ExcelNew. Remove IDs and make gene symbols as row names. Try exploring labels_row option

ADD REPLY
0
Entering edit mode

labels_row worked like a charm. Thanks for the reply!

ADD REPLY

Login before adding your answer.

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