From 39a50c1789ae8f1d4a8ffafdfa2f8eb4b34257fb Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 21 Nov 2012 09:30:07 +0000 Subject: [PATCH] added exception handling for missing SFF coordinates git-svn-id: http://biopieces.googlecode.com/svn/trunk@1992 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/lib/maasha/sff.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code_ruby/lib/maasha/sff.rb b/code_ruby/lib/maasha/sff.rb index b0ec738..7111f64 100644 --- a/code_ruby/lib/maasha/sff.rb +++ b/code_ruby/lib/maasha/sff.rb @@ -195,7 +195,11 @@ class Read # Method that converts a Read object's data to a Biopiece record (a hash). def to_bp - coordinates_get + # Simulated SFF files may not have coordinates. + begin + coordinates_get + rescue + end hash = {} -- 2.39.5