h_get_size_biomart | R Documentation |
This helper function queries BioMart
for lengths of genes by adding up all
exon lengths after reducing overlaps.
h_get_size_biomart(gene_ids, id_var, mart)
gene_ids |
( |
id_var |
( |
mart |
( |
Named integer vector indicating the gene lengths.
if (interactive()) {
mart <- biomaRt::useMart("ensembl", dataset = "hsapiens_gene_ensembl")
h_get_size_biomart("11185", "entrezgene_id", mart)
h_get_size_biomart("ENSG00000215417", "ensembl_gene_id", mart)
h_get_size_biomart(c("11185", "10677"), "entrezgene_id", mart)
h_get_size_biomart(c("ENSG00000135407", "ENSG00000215417"), "ensembl_gene_id", mart)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.