estLibSize {ChIPpeakAnno}R Documentation

estimate the library size

Description

estimate the library size of bam files

Usage

estLibSize(bamfiles, index = bamfiles, ...)

Arguments

bamfiles

The file names of the 'BAM' ('SAM' for asBam) files to be processed.

index

The names of the index file of the 'BAM' file being processed; this is given without the '.bai' extension.

...

Not used.

Value

numberic vector

Author(s)

Jianhong Ou

Examples

    if(Sys.getenv("USER")=="jianhongou"){
        path <- system.file("extdata", "reads", package="MMDiffBamSubset")
        if(file.exists(path)){
            WT.AB2 <- file.path(path, "WT_2.bam")
            Null.AB2 <- file.path(path, "Null_2.bam")
            Resc.AB2 <- file.path(path, "Resc_2.bam")
            estLibSize(c(WT.AB2, Null.AB2, Resc.AB2))
        }
    }

[Package ChIPpeakAnno version 3.18.0 Index]