Description Usage Arguments Value Examples
This function uses the biomaRt package to extract paralog information for supplied human genes
1 | countHumanParalogs(con, genes, alt_mart = NULL)
|
con |
A |
genes |
A vector of ENSEMBL gene ids |
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 | ## Not run:
ex_con <- setupSQLite()
all_genes <- getAllHumanGenes(ex_con)
set.seed(20120806)
ex_genes <- sample(all_genes$gene_id, 100)
#count paralogs
ex_df <- countHumanParalogs(ex_con, ex_genes)
ex_df[1:10,1:2]
#view the tables in the database
DBI::dbListTables(ex_con)
#larger set of genes
countHumanParalogs(ex_con, sample(all_genes$gene_id, 2000))[1:10,1:2]
#Specify which Mart to use
my_mart <- biomaRt::useMart("ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl", host="sep2015.archive.ensembl.org")
ex_df <- countHumanParalogs(ex_con, ex_genes, alt_mart=my_mart)
ex_df[1:10,1:2]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.