biomart returns several ensembl ids for one gene

0

I have to convert the gene names in my scRNA-seq data into ensembl IDs for downstream analyses. I used biomaRt package which converted some of the gene names:

library(biomaRt)
ensembl = useMart("ensembl",dataset="hsapiens_gene_ensembl")

biomart_hgnc <- getBM(attributes = c("hgnc_symbol", "ensembl_gene_id"), 
                     filters = "hgnc_symbol", 
                     values = rownames(LeeCRCtumor), bmHeader = T, mart = ensemble)

However, it returns several ensemble ids for one gene like here:

enter image description here

should I specify the gene location/chromosome in this case?


scrna-seq


ensembl


biomart


r

• 53 views



Source link