[hg] galaxy 3659: Have fastq set_meta() only skip counting 'comm...
details: http://www.bx.psu.edu/hg/galaxy/rev/1dc7e6c15272 changeset: 3659:1dc7e6c15272 user: Dan Blankenberg <dan@bx.psu.edu> date: Thu Apr 15 12:33:28 2010 -0400 description: Have fastq set_meta() only skip counting 'comment lines' when they are before any sequences. This is still not properly determining sequence counts in cases where line wrapping occurs; quality score lines can start with e.g. '#' and '@'. diffstat: lib/galaxy/datatypes/sequence.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r df40eae8e86b -r 1dc7e6c15272 lib/galaxy/datatypes/sequence.py --- a/lib/galaxy/datatypes/sequence.py Thu Apr 15 11:10:57 2010 -0400 +++ b/lib/galaxy/datatypes/sequence.py Thu Apr 15 12:33:28 2010 -0400 @@ -163,7 +163,7 @@ seq_counter = 0 # blocks should be 4 lines long for line in file( dataset.file_name ): line = line.strip() - if line and line.startswith( '#' ): + if line and line.startswith( '#' ) and not sequences: # We don't count comment lines for sequence data types continue if line and line.startswith( '@' ):
participants (1)
-
Greg Von Kuster