bx.wiggle module

Support for scores in the wiggle file format used by the UCSC Genome Browser.

The positions in the wiggle format are 1-relative, however, the positions returned match the BED/interval format which is zero-based, half-open.

bx.wiggle.IntervalReader(f)

Iterator yielding chrom, start, end, strand, value. Values are zero-based, half-open. Regions which lack a score are ignored.

class bx.wiggle.Reader(f)

Bases: object

Iterator yielding chrom, position, value. Values are zero-based. Regions which lack a score are ignored.

bx.wiggle.parse_header(line)