Commit 2aae307
committed
Work around colons in reference names (GRCh38 HLA).
This extends the callback function used by the hts iterator code to
the ref:start-end range parser, permitting the parser to validate
whether the whole thing matches a reference name.
This works around parsing conflicts when given range queries like
"HLA-DRB1*12:17", which is either the whole of "HLA-DRB1*12:17" (this
exists in GRCh38) or base 17 onwards of ""HLA-DRB1*12" (which does
not).
Note there are still some undecided questions here. Do we want to
handle the special names used in the iterator at this level to? Eg
"*" meaning unmapped data and "." meaning whole file?1 parent a13ac99 commit 2aae307
4 files changed
Lines changed: 70 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2507 | 2507 | | |
2508 | 2508 | | |
2509 | 2509 | | |
2510 | | - | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
2511 | 2522 | | |
2512 | | - | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
2513 | 2528 | | |
2514 | 2529 | | |
2515 | 2530 | | |
2516 | | - | |
| 2531 | + | |
| 2532 | + | |
2517 | 2533 | | |
2518 | 2534 | | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
2519 | 2543 | | |
2520 | 2544 | | |
2521 | 2545 | | |
| |||
2524 | 2548 | | |
2525 | 2549 | | |
2526 | 2550 | | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
2527 | 2563 | | |
2528 | 2564 | | |
2529 | 2565 | | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
2530 | 2571 | | |
2531 | 2572 | | |
2532 | 2573 | | |
2533 | | - | |
2534 | 2574 | | |
2535 | 2575 | | |
2536 | 2576 | | |
2537 | 2577 | | |
2538 | 2578 | | |
2539 | 2579 | | |
2540 | | - | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
| 2580 | + | |
2555 | 2581 | | |
| 2582 | + | |
2556 | 2583 | | |
2557 | 2584 | | |
| 2585 | + | |
| 2586 | + | |
2558 | 2587 | | |
2559 | 2588 | | |
2560 | 2589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
666 | 669 | | |
667 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
668 | 684 | | |
669 | 685 | | |
670 | 686 | | |
671 | | - | |
672 | | - | |
673 | 687 | | |
674 | 688 | | |
675 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
| |||
0 commit comments