ibrary(biomaRt)
human = useMart(“ensembl”, dataset = “hsapiens_gene_ensembl”)
mouse = useMart(“ensembl”, dataset = “mmusculus_gene_ensembl”)
mouse: ensembl to symbol
gene_trans = getLDS(attributes = c(“ensembl_gene_id”), filters = “ensembl_gene_id”, values = x , mart = mouse, attributesL = c(“mgi_symbol”), martL = mouse, uniqueRows=T)
human: ensembl to symbol
gene_trans = getLDS(attributes = c(“ensembl_gene_id”), filters = “ensembl_gene_id”, values = x , mart = human, attributesL = c(“hgnc_symbol”), martL = human uniqueRows=T)
mouse ensembl to human symbol
gene_trans = getLDS(attributes = c(“ensembl_gene_id”), filters = “ensembl_gene_id”, values = x , mart = mouse, attributesL = c(“hgnc_symbol”), martL = human uniqueRows=T)
human ensembl to mouse symbol
gene_trans = getLDS(attributes = c(“ensembl_gene_id”), filters = “ensembl_gene_id”, values = x , mart = human, attributesL = c(“mgi_symbol”), martL = mouse, uniqueRows=T)
评论
发表评论