pullRegion: Pull counts from a bam file for target region

View source: R/readFiles.R

pullRegionR Documentation

Pull counts from a bam file for target region

Description

Pull counts from a bam file for target region

Usage

pullRegion(
  reg,
  files,
  bam2depthBinary = "./bam2depth",
  fillMissingZeros = TRUE
)

Arguments

reg

region in the format "chrX:123545-123324"

files

bam files to pull the counts from

bam2depthBinary

bam2depth executable file

fillMissingZeros

if TRUE fill in uncovered positions with zeros otherwise may be left out of output by bam2depth

Value

data.frame with columns chr, pos and counts


sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.