Description Usage Arguments Value Author(s) Examples
View source: R/misc_cleanSeqLevels.R
Removes unused chromosomes, converts seqlevels to UCSC nomenclature and adds chromosomal information.
1 | cleanSeqlevels(g, excludeChr = NULL)
|
g |
(GRanges): GRanges object to be cleaned. |
excludeChr |
(character): Character vector of chromosomes which should be excluded, e.g. 'chrY' if patient is female or chrM. Set NULL to ignore. |
(GRanges) Returns cleaned-up GRanges.
Job van Riet j.vanriet@erasmusmc.nl
1 2 3 4 5 6 7 | gr0 <- GenomicRanges::GRanges(
S4Vectors::Rle(c('chr2', 'chr2', 'chr1', 'chr3'), c(1, 3, 2, 4)),
IRanges::IRanges(1:10, width=10:1)
)
gr0.clean <- cleanSeqlevels(gr0)
GenomeInfoDb::seqinfo(gr0.clean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.