From 7747e486d3339b1fe256513274ca697224aea96a Mon Sep 17 00:00:00 2001 From: martinahansen Date: Fri, 4 Jan 2013 10:53:03 +0000 Subject: [PATCH] fixed to_i bug in pcr_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@2057 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/pcr_seq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bp_bin/pcr_seq b/bp_bin/pcr_seq index 8700276..5cee30b 100755 --- a/bp_bin/pcr_seq +++ b/bp_bin/pcr_seq @@ -195,8 +195,8 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| record[:TYPE] = File.basename(outfile).sub(".fna", "").upcase record[:SEQ_NAME].match(/(.+):\[(\d+),(\d+)\]$/) record[:SEQ_NAME] = $1 - record[:PCR_BEG] = $2 - record[:PCR_END] = $3 + record[:PCR_BEG] = $2.to_i + record[:PCR_END] = $3.to_i if record[:PCR_BEG] > record[:PCR_END] record[:PCR_BEG], record[:PCR_END] = record[:PCR_END], record[:PCR_BEG] -- 2.39.2