View source: R/ontology_shared.R
extract_lengths | R Documentation |
Primarily goseq, but also other tools on occasion require a set of gene IDs and lengths. This function is resposible for pulling that data from either a gff, or TxDb/OrganismDbi.
extract_lengths(
db = NULL,
gene_list = NULL,
type = "GenomicFeatures::transcripts",
id = "TXID",
possible_types = c("GenomicFeatures::genes", "GenomicFeatures::cds",
"GenomicFeatures::transcripts"),
...
)
db |
Object containing data, if it is a string then a filename is assumed to a gff file. |
gene_list |
Set of genes to query. |
type |
Function name used for extracting data from TxDb objects. |
id |
Column from the resulting data structure to extract gene IDs. |
possible_types |
Character list of types I have previously used. |
... |
More arguments are passed to arglist. |
Dataframe containing 2 columns: ID, length
[GenomicFeatures]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.