todo: Improve `--regions-overlap variant`
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- bioinformatics
Research direction
Start in synced_bcf_reader.c at the current --regions-overlap variant|2 implementation around line 569. Examine how left trimming handles variants such as ACGA > A--A and where the API would need to represent left- versus right-trimming choices. Done means the mode recognizes the actual affected bases without spurious overlaps, or a documented opposite-overlap mode is added.
Written by the indexing model from the issue text.
Description
The mode --regions-overlap variant|2 is supposed to recognize the actual bases affected by the variant. This is trickier than currently implemented in https://github.com/samtools/htslib/blob/develop/synced_bcf_reader.c#L569.
The existing code trims variants from the left, but does not take into account cases like ACGA > A--A, which can be trimmed from both ends.
In addition, the API does not give the choice to trim from the left or right in ambiguous cases. For many use cases, the desired behavior is to trim in such a way to prevent spurious overlaps. Alternatively, a new mode 3 can be added which acts the opposite way and reports an overlap whenever possible.
- Dominant language
- C
- Stars
- 950
- Forks
- 475
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from samtools/htslib
-
Difficulty 3/5 1-2 days Newbie friendliness 74/100
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
tabix performance Open
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100