I've started putting together video screencasts for things like this, especially when several of the core's clients ask the same question. In this example, I'll show you how to quickly convert from the Affymetrix Mouse Gene 1.0 ST microarray probeset IDs to an Ensembl gene ID and gene symbol.
You can also do this programmatically in R using the biomaRt package in Bioconductor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fit your model on your expressionset and design matrix | |
fit <- lmFit(eset, design) | |
fit2 <- contrasts.fit(fit, contrast.matrix) | |
fit2 <- eBayes(fit2) | |
results <- topTable(fit2) | |
# get biomart annotation | |
library(biomaRt) | |
mart <- useMart("ensembl", dataset="mmusculus_gene_ensembl") | |
attributes <- c("affy_mogene_1_0_st_v1", "chromosome_name", | |
"start_position","end_position", "ensembl_gene_id", | |
"external_gene_id", "description") | |
genes <- getBM(attributes=attributes, filters="affy_mogene_1_0_st_v1", | |
values=topTable$ID, mart=mart, uniqueRows=T) |