Description Usage Arguments Value Examples
This function uses the biomaRt package to get ortholog information for supplied human genes
1 | getOrthologs(con, genes, species = "mmusculus", alt_mart = NULL)
|
con |
A |
genes |
A vector of ENSEMBL gene ids |
species |
The ENSEMBL species id eg mmusculus for mouse |
alt_mart |
A Mart object created using biomaRt::useMart. This should specify |
a data frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
ex_con <- setupSQLite()
ex_genes <- c('ENSG00000074800', 'ENSG00000127616')
#get mouse orthologs
getOrthologs(ex_con, ex_genes, species='mmusculus')
#get fly orthologs
getOrthologs(ex_con, ex_genes, species='dmelanogaster')
#view the tables in the database
DBI::dbListTables(ex_con)
#larger set of genes
all_genes <- getAllHumanGenes(ex_con)
set.seed(20120806)
ex_genes2 <- sample(all_genes$gene_id, 2000)
ortho_df <- getOrthologs(ex_con, ex_genes2, species='mmusculus')
#Specify which Mart to use
my_mart <- biomaRt::useMart("ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl", host="sep2015.archive.ensembl.org")
getOrthologs(ex_con, ex_genes, species='mmusculus', alt_mart=my_mart)
getOrthologs(ex_con, ex_genes, species='dmelanogaster', alt_mart=my_mart)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.