record[:ALIGN].split(',').each do |snp|
pos, event = snp.split(':')
- pos += record[:S_BEG]
+ pos = pos.to_i + record[:S_BEG].to_i
- snp_hash[record[:S_ID].to_sym][pos.to_sym][event.to_sym] += 1
+ snp_hash[record[:S_ID].to_sym][pos][event.to_sym] += 1
end
end
end