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 Oct. 22, 2024, 9:41 p.m.