bioplus.peaktools

bioplus.peaktools.MACS_track_to_iter(track)[source]
bioplus.peaktools.array_to_bedgraph(a, chrom, write_zero_values=False, precision=0)[source]
generator that takes a numpy array and yields tuples bedGraph file

note: the array must be compatible with enumerate() chrom should be specified too

precision specifies how many places past the decimal to retain (default 1)

To coerce into a string use something like

for line in array_to_bedgraph(a, chrom): '%s    %d      %d      %.1f

‘ % line

Previous topic

bioplus.motif

Next topic

bioplus.seqtools

This Page