mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Simplification for dowsampler in bam data provider
This commit is contained in:
@@ -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.
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user