gene ID RNAseq
0
0
Entering edit mode
2.2 years ago
Rob ▴ 170

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 • 946 views
ADD COMMENT
0
Entering edit mode

What do you mean by numeric ID?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

Do you mean entrez ID?

ADD REPLY
0
Entering edit mode

yes, I assume it is called entrez ID

ADD REPLY
0
Entering edit mode

use this:

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

ADD REPLY

Login before adding your answer.

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