X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=code_ruby%2Flib%2Fmaasha%2Fseq.rb;h=fd83ba3282d28c561358fb9383c18e324d9a7ed4;hb=545eed9d7927e2c59a7c7d3c919aa8d8bed18c86;hp=1d8f3c00594e9208f434251eb23c342413df9506;hpb=508d11515a4f8ac768829b56486c1b660b8f247e;p=biopieces.git diff --git a/code_ruby/lib/maasha/seq.rb b/code_ruby/lib/maasha/seq.rb index 1d8f3c0..fd83ba3 100644 --- a/code_ruby/lib/maasha/seq.rb +++ b/code_ruby/lib/maasha/seq.rb @@ -135,6 +135,10 @@ class Seq @seq = seq @type = type @qual = qual + + if @qual + raise SeqError, "Sequence length and score length mismatch: #{@seq.length} != #{@qual.length}" if @seq.length != @qual.length + end end # Method that guesses and returns the sequence type