Entering edit mode
2.9 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"))
What do you mean by numeric ID?
Hi genes have IDs like 11243, and whatever number that is gene ID. I dont know how and where to get thm.
Do you mean entrez ID?
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")