for line in fd:
parts = line.split("\t")
yield make_range(parts[0], int(parts[1]), int(parts[2]))
def from_regions(regions, contig_map=None):
After Change
nucleus.genomics.v1.Range protobuf objects.
with bed.BedReader(filename) as fin:
for r in fin.iterate():
yield make_range(r.reference_name, r.start, r.end)
def from_regions(regions, contig_map=None):
Parses each region of `regions` into a Range proto.
This function provides a super high-level interface for