Open sergiigladchuk opened 7 years ago
hmm, yeah. this is a problem. there are a few places where error messages need improving and I'd like to get that into next release. This one is hard because it's and index error which (as you see) is a panic in go.
I'll try to figure out how to add more info here
Hi Brent,
I got this same issue and came across this thread. The same command runs well against the original GRCh37 version of the annotation bed file. Then I used liftOver to convert it from GRCh37 to GRCh38. The error came up when I use the liftover-ed bed file as the annotation source. I'd like to ask if there is any clue on where the error may comes from? Thanks!
panic: runtime error: index out of range
goroutine 45 [running]:
github.com/brentp/vcfgo.(*Reader).Parse(0xc00137ac00, 0xc001df70a0, 0x9, 0x9, 0x4db24d)
/home/brentp/go/src/github.com/brentp/vcfgo/reader.go:223 +0xae5
github.com/brentp/bix.(*Bix).toPosition(0xc0032cf0e0, 0xc001df70a0, 0x9, 0x9, 0x101, 0x0)
/home/brentp/go/src/github.com/brentp/bix/bix.go:204 +0x77
github.com/brentp/bix.bixerator.Next(0x88cd40, 0xc003778e70, 0xc0032cf2c0, 0xc0032cf0e0, 0x88f900, 0xc0031772c0, 0xf, 0xb346c0, 0x0, 0xc0000cb620)
/home/brentp/go/src/github.com/brentp/bix/bix.go:342 +0x11c
github.com/brentp/irelate.newMerger(0x81ecc8, 0x0, 0xc003177280, 0x2, 0x2, 0x55e780)
/home/brentp/go/src/github.com/brentp/irelate/irelate.go:235 +0x12e
github.com/brentp/irelate.IRelate(0x81ecc0, 0x0, 0x81ecc8, 0xc003177280, 0x2, 0x2, 0x10000, 0x10000)
/home/brentp/go/src/github.com/brentp/irelate/irelate.go:143 +0x5d
github.com/brentp/irelate.PIRelate.func3.1(0xc003746300, 0x81ec90, 0xc0032aa120, 0xc003177280, 0x2, 0x2)
/home/brentp/go/src/github.com/brentp/irelate/parallel.go:245 +0x7b
created by github.com/brentp/irelate.PIRelate.func3
/home/brentp/go/src/github.com/brentp/irelate/parallel.go:242 +0x10f
can you show the relevant parts of your config and a few lines of your bed file?
The bed file actually has some malformatted lines with fewer columns than expected. The error is fixed after I regenerated the bed file. Sorry about the mistake and thanks!
vcfanno version 0.2.3 [built with go1.8] In case of having wrong column index in [[annotation]] like:
,where 5 is more than I have in my .bed file. The error message:
Does not point to exact annotation block which should be either corrected or removed. This would be really helpful in case there are a lot of annotation blocks to review.