]> git.donarmstrong.com Git - biopieces.git/commitdiff
added exception handling for missing SFF coordinates
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 21 Nov 2012 09:30:07 +0000 (09:30 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 21 Nov 2012 09:30:07 +0000 (09:30 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1992 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/sff.rb

index b0ec7386ef18530e063cf8ed84be150110317a9d..7111f643426469cfe9cbebc32608854c0310584b 100644 (file)
@@ -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 = {}