fixing 0-based coordinates
With the positions being 0-based, the use of "parseInt()" (e.g.
segment.SEGSTART = parseInt(segment.SEGSTART, 10);
) won't work; same for numeric tests of params.start. In our standards-compatible positions, all p-telomere segments start at 0. One can e.g. query for whole chromosome deletions with start==0 and length==reference length.
So this has to be re-implemented, either by providing separate tests/assignments for the "0" parameter and segments positions, or by using other numeric clean-up mechanisms.