retrieveOrthologs {RCAS} | R Documentation |
Given two biomart connections and a set of entrez gene identifiers; retrieve orthologs between mart1 and mart2 for the given list of genes
retrieveOrthologs(mart1, mart2, geneSet)
mart1 |
An Ensembl biomart connection for reference species created
using the |
mart2 |
An Ensembl biomart connection for target species created using
the |
geneSet |
A vector of Entrez gene ids from a reference species (should be available at the biomart object, mart1) |
A data.frame object containing a mapping of orthologouse genes from two mart objects
mart1 <- biomaRt::useMart(biomart = 'ENSEMBL_MART_ENSEMBL', dataset = "hsapiens_gene_ensembl") mart2 <- biomaRt::useMart(biomart = 'ENSEMBL_MART_ENSEMBL', dataset = "mmusculus_gene_ensembl") genes <- c('2645','5232', '5230','5162','5160') orthologs <- retrieveOrthologs( mart1, mart2, genes)