This function is still a bit experimental. Write all tracks provided as a
list tracks
into a single BED file. So far only BED export is supported.
exportTracks(tracks, range, chromosome, file)
A list of annotation track objects to be exported into a single BED file.
A numeric vector or length 2. The genomic range to display when opening the file in a browser.
The chromosome to display when opening the file in a browser.
Character, the path to the file to write into.
The function is called for its side effect of writing to a file.