| gdb.build_genome | R Documentation |
Builds a misha genomic database for a named assembly. Resolves the name
through the registry chain (or pattern-fallback for GC[FA]_*
accessions), downloads the FASTA, calls gdb.create to build
the seq-only groot, then dispatches to gdb.install_intervals
for the requested sets.
gdb.build_genome(
name,
path = name,
registry = NULL,
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"),
chrom_naming = NULL,
target_chroms = NULL,
target_lengths = NULL,
min_coverage = 1,
match_by_length = TRUE,
format = NULL,
verbose = TRUE
)
name |
Genome name (registry key, alias, or |
path |
Output directory; must not exist. |
registry |
Optional path to an explicit registry YAML. |
sets |
Subset of |
prefix |
Character scalar prepended to set names (see
|
gene_sets |
Named character vector mapping the four
|
gtf_priority |
Character vector ordering GTF source preference. |
chrom_naming |
Optional override for the recipe's |
target_chroms |
Optional character vector of chrom names the resulting
groot should align to (typically the output of |
target_lengths |
Optional numeric vector aligned with
|
min_coverage |
Minimum fraction of groot chroms that must appear in a
chromAlias column for that column to be picked as canonical (forwarded to
|
match_by_length |
Forwarded to |
format |
|
verbose |
If |
For details on resolution, sources, sets, and chromosome-alias handling,
see gdb.install_intervals.
None (invisible NULL). The installed 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.install_intervals, gdb.create,
gdb.list_genomes, gdb.genome_info.
## Not run:
gdb.build_genome("hg38", path = "~/genomes/hg38")
gdb.build_genome("GCA_004023825.1",
path = "~/genomes/arctic_fox",
prefix = "intervs.global."
)
# Match HAL/Cactus canonical names (GenBank accessions like JH880237.1):
gdb.build_genome("GCF_000298355.1",
path = "~/genomes/Bos_mutus",
chrom_naming = "genbank",
prefix = "intervs.global."
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.