]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/lib/maasha/sff.rb
finished refactoring s/has_key?/[]/
[biopieces.git] / 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 = {}