Convert a BedGraph fiel to a vector of depth-like signals

Description

Convert a BedGraph fiel to a vector of depth-like signals

Usage

1
bedgraph.to.depth(inFpath, chr, start, end, reverse = FALSE)

Arguments

inFpath

character, the path of a bedgraph file

chr

character, the chromosome

start

numeric, the start position (0-base)

end

numeric, the end position

reverse

logical, whether a reverse strand

Value

numeric

Author(s)

Xiaobei Zhao