bamregion2GRanges: Import BAM file into GRanges

View source: R/bamregion2GRanges.R

bamregion2GRangesR Documentation

Import BAM file into GRanges

Description

Import aligned reads from a BAM file into a GRanges object.

Usage

bamregion2GRanges(
  bamfile,
  bamindex = bamfile,
  region = NULL,
  pairedEndReads = FALSE,
  min.mapq = 10,
  filterAltAlign = TRUE
)

Arguments

bamindex

Bam-index file with or without the .bai ending. If this file does not exist it will be created and a warning is issued.

region

If only a subset of the genomic regions should be loaded.

pairedEndReads

Set to TRUE if you have paired-end reads in your file.

min.mapq

Minimum mapping quality when importing from BAM files.

file

Bamfile with aligned reads.

Author(s)

Aaron Taudt, David Porubsky, Ashley Sanders


daewoooo/StrandPhaseR documentation built on April 7, 2024, 7:13 p.m.