Simplification for dowsampler in bam data provider

This commit is contained in:
Jeremy Goecks
2014-04-24 21:24:33 -04:00
parent c69b3f8065
commit bae94cedc0
@@ -952,8 +952,7 @@ class BamDataProvider( GenomeDataProvider, FilterableMixin ):
# Convert threshold to N for stepping through iterator.
n = int( 1/threshold )
for e in itertools.islice( read_iterator, None, None, n ):
yield e
return itertools.islice( read_iterator, None, None, n )
# Alternatate and much slower implementation that looks for pending pairs.
'''