bam_to: Convert a BAM file

View source: R/bam_to.R

bam_toR Documentation

Convert a BAM file

Description

Convert a BAM file to any format supported by export.

Usage

bam_to(
  bam_files,
  formats = c("bedGraph", "bigWig"),
  width = 150,
  outdir = NULL,
  verbose = TRUE,
  ...
)

Arguments

bam_files

One or more BAM files.

outdir

Directory to save results to.

verbose

Print messages.

...

Additional arguments passed to export.

Value

Converted file paths.

Examples

bam_files <- c(f1=system.file("extdata","querybins.bam",package="Rsamtools"),
               f2=system.file("extdata","revbins.bam",package="Rsamtools"))
converted_files <- bam_to(bam_files = bam_files)               

neurogenomics/PeakyFinders documentation built on March 24, 2024, 4:28 p.m.