Closed delafont closed 10 years ago
Wig format does not understand selections correctly. Converting the wig to bedGraph works.
from bbcflib.track import track
twig = track('mapability100.wig') tbg = track('mapability100.bedGraph') selection = {'start': (0, 50000), 'chr': 'chr17p', 'end': (0, 50000)}
tbg.read(selection=selection).next() ('chr17p', 1, 4, 0.2454) twig.read(selection=selection).next() StopIteration
Wig format does not understand selections correctly. Converting the wig to bedGraph works.
from bbcflib.track import track
twig = track('mapability100.wig') tbg = track('mapability100.bedGraph') selection = {'start': (0, 50000), 'chr': 'chr17p', 'end': (0, 50000)}
tbg.read(selection=selection).next() ('chr17p', 1, 4, 0.2454) twig.read(selection=selection).next() StopIteration