R: Function converts bam file to bedgraph by counting number of...
bam2bedgraph
R Documentation
Function converts bam file to bedgraph by counting number of reads starting at each position (termination counts)
It creates two-track bedgraph file (one track for each strand).
integer vector with SAM flags should be kept, see https://broadinstitute.github.io/picard/explain-flags.html for explanation
maxMemory
maxMemory of scanBam function used internally
genome_build
character specifying which UCSC genome build should data
be displayed in, e.g. "mm9"
bedgraph_out_file
character specifying prefix of output file.
Generated file name is: prefix.bedgraph; if file with such a name already
exists new tracks will be appended.