get_genome | R Documentation |
Get a genome (or a subset of chromosomes from a genome) as a GRanges object. This can be useful for querying whole-chromosomes at a time.
get_genome(
keep.chr = paste0("chr", c(seq_len(22), "X", "Y")),
genome = "hg19",
sort = TRUE,
style = "UCSC",
split_chromosomes = FALSE
)
keep.chr |
is a character vector stating the names of the chromosomes to keep. Any chromosome not in the vector will be filtered out. If keep.chr is supplied, organism and chr.type are ignored. |
genome |
The genome object or genome identifier. |
sort |
Whether to sort the GRanges by chromosomes. |
style |
Chromosome style, set by seqlevelsStyle.
|
split_chromosomes |
Whether to split the GRanges by chromosome (as a named list). |
GRanges
gr <- get_genome(keep.chr=1:2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.