Skip to contents

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)