Permalink
Browse files

Merge branch 'fstrozzi-master'

  • Loading branch information...
2 parents 0ec7eb3 + f73a67a commit d56ad573d09e0173c92814c7a08ac6d38e78e824 @chmille4 committed Jan 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/bio-assembly/caf.rb
View
@@ -50,7 +50,8 @@ def parse_blocks(line,feat)
def parse_dna(feat)
feat[:seq] = @file.gets("\n\n").tr("\n","")
newline = @file.gets
- feat[:qual] = @file.gets("\n\n").tr("\n"," ").rstrip if newline.start_with?("BaseQuality")
+ keywords = newline.split("\s")
+ feat[:qual] = @file.gets("\n\n").tr("\n"," ").rstrip if keywords[0] == "BaseQuality"
feat[:parsed] = true if feat[:type] == :contig
end

0 comments on commit d56ad57

Please sign in to comment.