X-Git-Url: https://git.donarmstrong.com/?p=biopieces.git;a=blobdiff_plain;f=bp_bin%2Fsplit_pair_seq;h=cd0aea6533a625705bdfef66375d352c44a1146f;hp=b0425acd2c0b02e27413554b74e806101e919913;hb=10e0db1d8cc294afc9bcff4c56ca34770e0052cb;hpb=3656f15bb59e2eb7eff628bae117db6479b2f03f diff --git a/bp_bin/split_pair_seq b/bp_bin/split_pair_seq index b0425ac..cd0aea6 100755 --- a/bp_bin/split_pair_seq +++ b/bp_bin/split_pair_seq @@ -46,8 +46,8 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| raise "SEQ_LEN_LEFT + SEQ_LEN_RIGHT != SEQ_LEN #{len_left} + #{len_right} != #{entry.length}" end - entry1 = entry.subseq(0, len_left) - entry2 = entry.subseq(len_left) + entry1 = entry[0 ... len_left] + entry2 = entry[len_left .. -1] if entry.seq_name =~ /^[^ ]+ \d:/ entry2.seq_name.sub!(/ \d:/, " 2:")