From: martinahansen Date: Mon, 2 Dec 2013 21:27:33 +0000 (+0000) Subject: finishing slice_align biopiece X-Git-Url: https://git.donarmstrong.com/?p=biopieces.git;a=commitdiff_plain;h=31c64ec40cca2f80c424068b69327832be625e52 finishing slice_align biopiece git-svn-id: http://biopieces.googlecode.com/svn/trunk@2269 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/slice_align b/bp_bin/slice_align index 9c8ef6d..ed56198 100755 --- a/bp_bin/slice_align +++ b/bp_bin/slice_align @@ -110,6 +110,7 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| entry = Seq.new(seq: record[:SEQ]) unless options[:beg] + raise "template length != alignment length" if template and template.length != entry.length compact = template ? template : Seq.new(seq: entry.seq.dup) compact.seq.delete! "-.~"