Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed all the start_with methods from caf.rb

  • Loading branch information...
commit f73a67a5628d3db3b0074a6efb45e858bb15e64b 1 parent b30db0b
@fstrozzi fstrozzi authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/bio-assembly/caf.rb
View
3  lib/bio-assembly/caf.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.