write_bedGraph: Writes vector of values as bedGraph file.

View source: R/write-bedGraph.R

write_bedGraphR Documentation

Writes vector of values as bedGraph file.

Description

Writes a bedGraph conform file with coordinates defined by vectors: "contig", "start", and "end". According to: https://genome.ucsc.edu/goldenPath/help/bedgraph.html "start" and "end" are zero indexed and half opened. The caller needs to make sure that this is fullfilled.

Usage

write_bedGraph(file, contig, start, end, value)

Arguments

file

String represents the filename of the BED graph file.

contig

vector of character string represting the contig(s)

start

vector of numericals zero indexed (>= 0)

end

vector of numericals half opened: [start, end)

value

vector of character strings or numericals representing value(s)


dieterich-lab/JACUSA2helper documentation built on March 1, 2023, 12:09 a.m.