[hg] galaxy 3627: Allow FASTQ parser to handle extra space padde...
details: http://www.bx.psu.edu/hg/galaxy/rev/f32497f2e001 changeset: 3627:f32497f2e001 user: Dan Blankenberg <dan@bx.psu.edu> date: Mon Apr 12 10:30:25 2010 -0400 description: Allow FASTQ parser to handle extra space padded decimal scores, e.g. '0 ' diffstat: lib/galaxy_utils/sequence/fastq.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 5536d57237a3 -r f32497f2e001 lib/galaxy_utils/sequence/fastq.py --- a/lib/galaxy_utils/sequence/fastq.py Fri Apr 09 18:09:54 2010 -0400 +++ b/lib/galaxy_utils/sequence/fastq.py Mon Apr 12 10:30:25 2010 -0400 @@ -60,7 +60,7 @@ else: quality = self.quality.rstrip() #decimal scores should have a trailing space if quality: - return map( int, quality.split( ' ' ) ) + return [ int( val ) for val in quality.split( ' ' ) if val.strip() ] else: return [] def convert_read_to_format( self, format, force_quality_encoding = None ):
participants (1)
-
Greg Von Kuster