R/zzz.R

Defines functions .onLoad

.STRAND_LEVELS <- c("+", "-", "*")

.PILEUP_NUCLEOTIDE_LEVELS <- c("A", "C", "G", "T", "N", "=", "-", "+")

.onLoad <-
    function(libname, pkgname)
{
    if (!identical(levels(strand()), .STRAND_LEVELS))
        stop("internal: 'levels(strand())' not consistent with Rsamtools")
    .Call(.bamfile_init)
    .Call(.bcffile_init)
    .Call(.fafile_init)
    .Call(.tabixfile_init)
    .Call(.bambuffer_init)
}
Bioconductor/Rsamtools documentation built on Oct. 31, 2024, 1:23 p.m.