This is a test version of Biostars. For the public version, visit https://www.biostars.org.
gene ID RNAseq

Hi friends How can I get gene numeric ID and hugo ID by R script? what script should I use? I have this but does not give numeric ID and hugo ID.

ibrary(biomaRt)
library(dplyr)
library(tibble)

attributeNames <-c("ensembl_gene_id","external_gene_name","HGNC_ID", "chromosome_name","description")


filterValues <- rownames(res)

Annotations <- getBM(attributes=attributeNames, filters =
                       "ensembl_gene_id",values = filterValues,
                        mart=useMart(biomart="ensembl",
                        dataset="hsapiens_gene_ensembl"))
script gene id

Hi genes have IDs like 11243, and whatever number that is gene ID. I dont know how and where to get thm.

yes, I assume it is called entrez ID

use this:

attributeNames <-c("ensembl_gene_id","external_gene_name","hgnc_id", "chromosome_name","description","entrezgene_id")

0 answers

No answers yet.

Log in to answer this question.