X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fslice_align;h=ed561981869c7549acfd4e5cea8e0d1b0fd5d6c5;hb=31c64ec40cca2f80c424068b69327832be625e52;hp=9c8ef6d034a112048e5351924e5ce7bb7427abf1;hpb=e605ac14c9e2a30aa316db707674ac1d110724ab;p=biopieces.git 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! "-.~"