From 58b9ddc3ddfcbe0c4476f36b12cc6cb0dbe88b41 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Mon, 24 Jun 2013 09:59:49 +0000 Subject: [PATCH] added \r remove hack to genbank/embl parsers git-svn-id: http://biopieces.googlecode.com/svn/trunk@2186 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/lib/maasha/embl.rb | 2 +- code_ruby/lib/maasha/genbank.rb | 2 +- code_ruby/lib/maasha/locator.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code_ruby/lib/maasha/embl.rb b/code_ruby/lib/maasha/embl.rb index 29c3eb6..6d9d6b5 100644 --- a/code_ruby/lib/maasha/embl.rb +++ b/code_ruby/lib/maasha/embl.rb @@ -68,7 +68,7 @@ class EMBL < Filesys block.chomp!("//" + $/ ) - entry = block.split $/ + entry = block.tr("\r", "\n").split $/ return nil if entry.empty? diff --git a/code_ruby/lib/maasha/genbank.rb b/code_ruby/lib/maasha/genbank.rb index 1cf2038..b1c9f87 100644 --- a/code_ruby/lib/maasha/genbank.rb +++ b/code_ruby/lib/maasha/genbank.rb @@ -68,7 +68,7 @@ class Genbank < Filesys block.chomp!("//" + $/ ) - entry = block.split $/ + entry = block.tr("\r", "\n").split $/ return nil if entry.empty? diff --git a/code_ruby/lib/maasha/locator.rb b/code_ruby/lib/maasha/locator.rb index 638f473..70aa861 100644 --- a/code_ruby/lib/maasha/locator.rb +++ b/code_ruby/lib/maasha/locator.rb @@ -125,7 +125,7 @@ class Locator @subseq.seq << (order ? " " + newseq.seq : newseq.seq) end else - $stderr.puts "WARNING: Could not match locator -> #{locator}"; + $stderr.puts "WARNING: Could not match locator ->#{locator}<-"; @subseq.seq << "" end end -- 2.39.2