small bug fix on chromosome names.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5168 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
carneiro 2011-02-01 20:55:19 +00:00
parent 798955b006
commit aab0ec209b
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ assert(table.getn(arg) > 0, "\n\nMissing input file\n\nUsage:\n\tlua MergeInterv
local intervals = {}
local intervalKeys = {}
for l in io.lines(arg[1]) do
local chr, a, b = l:match("([%l%d]+):(%d+)-(%d+)")
local chr, a, b = l:match("([%a%d]+):(%d+)-(%d+)")
a,b = tonumber(a), tonumber(b)
if not intervals[chr] then
intervals[chr] = {}