What is "panic("index: unexpected alignment length")"

40 views
Skip to first unread message

서인석

unread,
Jul 12, 2022, 12:55:42 AM7/12/22
to biogo-user
What is wrong???

internal/index.go line 132

// Record interval tile information.
biv := r.Start() / TileWidth
if r.Start() < i.LastRecord {
return errors.New("index: attempt to add record out of position sort order")
}
i.LastRecord = r.Start()
eiv := r.End() / TileWidth
if eiv == len(ref.Intervals) {
if eiv > biv {
panic("index: unexpected alignment length")
}
ref.Intervals = append(ref.Intervals, c.Begin)
} else if eiv > len(ref.Intervals) {
intvs := make([]bgzf.Offset, eiv)
if len(ref.Intervals) > biv {

Dan Kortschak

unread,
Jul 12, 2022, 2:26:11 AM7/12/22
to biogo...@googlegroups.com
There is not really enough information there for me to answer your
question. The algorithm is described in section 5 of
https://samtools.github.io/hts-specs/SAMv1.pdf.

Dan

Reply all
Reply to author
Forward
0 new messages