readBAM {nucleR} | R Documentation

## Import reads from a list of BAM files.

### Description

This function allows to load reads from BAM files from both single and paired-end commming from Next Generation Sequencing nucleosome mapping experiments.

### Usage

    readBAM(files, type = "paired")

### Arguments

`files` | List of input BAM files.
`type` | Describes the type of reads. Values allowed are `single` for single-ended reads and `paired` for pair-ended.

### Value

GenomicRanges::GRangesList containing the reads of each input BAM file.

### Author(s)

Ricard Illa ricard.illa@irbbarcelona.org

### Examples

    infile <- system.file(
        "extdata", "cellCycleM_chrII_5000-25000.bam", package="nucleR"
    )
    reads <- readBAM(infile, type="paired")

[Package nucleR version 2.14.0 Index]