mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Handle instance where BAMDataProvider iterator is None; this can occur when trying to fetch additional data.
This commit is contained in:
@@ -646,6 +646,10 @@ class BamDataProvider( TracksDataProvider ):
|
||||
max_high - highest coordinate for the returned reads
|
||||
message - error/informative message
|
||||
"""
|
||||
# No iterator indicates no reads.
|
||||
if iterator is None:
|
||||
return { 'data': [], 'message': None }
|
||||
|
||||
# Decode strand from read flag.
|
||||
def decode_strand( read_flag, mask ):
|
||||
strand_flag = ( read_flag & mask == 0 )
|
||||
|
||||
Reference in New Issue
Block a user