bbcf / bbcflib

Internal utility modules for the BBCF
http://bbcf.epfl.ch/bbcflib
GNU General Public License v3.0
7 stars 4 forks source link

wig & selection issue #24

Closed delafont closed 10 years ago

delafont commented 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