exportBedGraph: Export aligned reads into a bedgraph

View source: R/exportBedGraph.R

exportBedGraphR Documentation

Export aligned reads into a bedgraph

Description

This function takes as an input aligned reads in BAM and exports them into a UCSC formated bedgraph.

Usage

exportBedGraph(
  bamfile,
  outputdirectory = ".",
  mapq = 10,
  filt.flag = 0,
  min.read.len = 5000,
  blacklist = NULL
)

Arguments

bamfile

Bamfile with aligned reads.

outputdirectory

A directory to save constructed bedgraphs.

mapq

Minimum mapping quality when importing from BAM files.

filt.flag

Filter out reads with given flag.

min.read.len

Minimum length of mapped reads to import.

blacklist

A GRanges-class object of regions to exclude reads from.

Value

NULL

Author(s)

David Porubsky


daewoooo/primatR documentation built on March 28, 2024, 6:41 a.m.