View source: R/annotation_shared.R
get_genesizes | R Documentation |
This function tries to gather an appropriate gene length column from whatever annotation data source is provided.
get_genesizes(
annotation = NULL,
type = "gff",
gene_type = "gene",
type_column = "type",
key = NULL,
length_names = NULL,
...
)
annotation |
There are a few likely data sources when getting gene sizes, choose one with this. |
type |
What type of annotation data are we using? |
gene_type |
Annotation type to use (3rd column of a gff file). |
type_column |
Type identifier (10th column of a gff file). |
key |
What column has ID information? |
length_names |
Provide some column names which give gene length information? |
... |
Extra arguments likely for load_annotations() |
Data frame of gene IDs and widths.
[rtracklayer] [load_gff_annotations()]
pa_gff <- system.file("share", "paeruginosa_pa14.gff", package = "hpgldata")
pa_genesizes <- get_genesizes(gff = pa_gff)
head(pa_genesizes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.