Entering edit mode
4.3 years ago
sinha.puja
▴
20
Hi I am trying to get ensembl ID from official gene symbol of rat (rn6) using biomart and below is the code but the last line has error.
library("biomaRt")
listMarts()
ensembl <- useMart("ensembl")
datasets <- listDatasets(ensembl)
ensembl = useDataset("rnorvegicus_gene_ensembl",mart=ensembl)
Gene <- read.csv("TMM-normalizedcounts-ANOVA-8-30-19.csv",header=T)
final <- getBM(attributes=c('external_gene_name','ensembl_gene_id'), filters = 'external_gene_name', values = Gene$Gene Symbol, mart = ensembl)
Can anyone help me in correcting the code.
Thanks in advance.
A minor addition - Kevin already solved your problem, I think. Try
instead of
Thanks you, it worked.
Please accept Kevin's answer to mark this question as resolved.