]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/lib/maasha/cigar.rb
fixed wrap bug in seq.rb
[biopieces.git] / code_ruby / lib / maasha / cigar.rb
index 2e6fd0a72b091a45bf39e7d59fd64836da8eef05..800fc1414104d755c99ab1d9e206d400d40a1242 100644 (file)
@@ -27,8 +27,6 @@
 
 # http://samtools.sourceforge.net/SAM1.pdf
 
-require 'pp'
-
 # Error class for all exceptions to do with CIGAR.
 class CigarError < StandardError; end
 
@@ -43,6 +41,8 @@ class Cigar
     check_cigar
   end
 
+  # Method to convert the CIGAR string to
+  # a printable string.
   def to_s
     @cigar
   end
@@ -133,7 +133,7 @@ class Cigar
 
   # Method to check that the CIGAR string is formatted
   # correctly, including hard clipping and soft clipping
-  # can't be located internally.
+  # that cant be located internally.
   def check_cigar
     unless  cigar =~ /^(\*|([0-9]+[MIDNSHPX=])+)$/
       raise CigarError, "Bad cigar format: #{cigar}"