commit/galaxy-central: jgoecks: Handle instance where BAMDataProvider iterator is None; this can occur when trying to fetch additional data.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/32d1ab3262ea/ changeset: 32d1ab3262ea user: jgoecks date: 2012-02-05 18:53:23 summary: Handle instance where BAMDataProvider iterator is None; this can occur when trying to fetch additional data. affected #: 1 file diff -r 84baec18959cb7f48f450f9aa676aaa1882044c1 -r 32d1ab3262ea4d45e1cae1f43f44e43d3c8899d8 lib/galaxy/visualization/tracks/data_providers.py --- a/lib/galaxy/visualization/tracks/data_providers.py +++ b/lib/galaxy/visualization/tracks/data_providers.py @@ -646,6 +646,10 @@ 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 ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket