From: martinahansen Date: Fri, 4 Jan 2013 10:53:03 +0000 (+0000) Subject: fixed to_i bug in pcr_seq X-Git-Url: https://git.donarmstrong.com/?p=biopieces.git;a=commitdiff_plain;h=7747e486d3339b1fe256513274ca697224aea96a fixed to_i bug in pcr_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@2057 74ccb610-7750-0410-82ae-013aeee3265d --- 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]