From: martinahansen Date: Wed, 21 Nov 2012 09:30:07 +0000 (+0000) Subject: added exception handling for missing SFF coordinates X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=39a50c1789ae8f1d4a8ffafdfa2f8eb4b34257fb;p=biopieces.git added exception handling for missing SFF coordinates git-svn-id: http://biopieces.googlecode.com/svn/trunk@1992 74ccb610-7750-0410-82ae-013aeee3265d --- 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 = {}