testBam: extract content from a BAM file

Description Usage Arguments Value Examples

View source: R/BamParser.R

Description

This method will extract a block of BAM content from a given BAM file

Usage

1
testBam(bamFile, yieldSize = 100L)

Arguments

bamFile

is the location to the BAM file to parse

yieldSize

is the number of mapping observations to extract

Value

list of summary observations

Examples

1
2
3
4
5
# define the path to a BAM file
demoBam <- system.file("extdata",
    "Ecoli_zymo_R10_filt_subs.bam",
    package = "nanopoRe")
bamdata <- testBam(demoBam, 10)

sagrudd/nanopoRe documentation built on June 7, 2020, 10:20 p.m.