| gdb.install_intervals | R Documentation |
Given an existing groot and a source recipe (or registry name, or accession),
fetches the relevant annotation files and installs interval sets - one or
more of genes / rmsk / cgi / cytoband.
gdb.install_intervals(
groot,
source,
sets = c("genes", "rmsk", "cgi", "cytoband"),
prefix = "",
gene_sets = c(tss = "tss", exons = "exons", utr3 = "utr3", utr5 = "utr5"),
gtf_priority = c("ncbiRefSeq", "bestRefSeq", "ensGene", "augustus", "xenoRefGene"),
overwrite = FALSE,
registry = NULL,
target_chroms = NULL,
target_lengths = NULL,
min_coverage = 1,
match_by_length = TRUE,
force = FALSE,
verbose = TRUE,
prefetched_alias = NULL,
.from_build_genome = FALSE
)
groot |
Path to a misha groot. |
source |
Either a registry name, a recipe |
sets |
Subset of |
prefix |
Character scalar prepended verbatim to each set name. Include
the trailing dot if you want one (e.g. |
gene_sets |
Named character vector mapping
|
gtf_priority |
Character vector ordering GTF source preference for
sources that ship multiple GTFs (currently |
overwrite |
If |
registry |
Optional path to a registry YAML; overrides the resolution chain. |
target_chroms |
Optional character vector to pin the canonical column
to (e.g. chrom names from |
target_lengths |
Optional numeric vector aligned with
|
min_coverage |
Minimum fraction that must be covered by a chromAlias
column for it to be picked as the canonical mapping. Default |
match_by_length |
If |
force |
If |
verbose |
If |
prefetched_alias |
Optional pre-fetched chromAlias bundle (the
return value of |
.from_build_genome |
Internal flag; when |
Decoupled from gdb.build_genome so that:
users with a private FASTA build can layer canonical annotations onto it;
failed installs can be resumed without re-fetching the FASTA;
the same groot can host annotations from multiple sources under
different prefixes (e.g. intervs.global., intervs.repeats.).
Invisible NULL. Side effects: writes .interv files under
<groot>/tracks/, extends <groot>/chrom_aliases.tsv, appends to
<groot>/genome_info.yaml, and re-initializes the active groot.
The gene-derived sets (tss, exons, utr3, utr5)
carry a name column (transcript/RNA accession) and a geneName
column (gene symbol from the source annotation; blank when the source has
no symbol).
gdb.build_genome, gdb.install_gtf_converter.
## Not run:
# Standalone install on an existing groot.
gdb.install_intervals(
groot = "/genomes/arctic_fox",
source = "GCA_004023825.1",
prefix = "intervs.global."
)
# Layered: private FASTA groot + intervals from a UCSC hub assembly.
gdb.install_intervals(
groot = "/genomes/my_private",
source = list(source = "ucsc-hub", accession = "GCF_009806435.1"),
sets = c("genes", "rmsk")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.