norm normalizing reference ALT is not counted in stats or old-rec-tag
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Reproduce the issue with the supplied VCF, reference FASTA, and bcftools norm --multiallelics=- --check-ref=s --old-rec-tag=BCFTOOLS_OLD_VARIANT command. Trace the norm handling that changes a reference-only record and verify that the old-record tag is populated and the statistics report one modified record; assess whether it should also count as realigned or normalized.
Written by the indexing model from the issue text.
Description
Input VCF:
##fileformat=VCFv4.1
##reference=GRCh38>
##contig=<ID=NC_000015.10,length=101991189,assembly=GRCh38>
#CHROM POS ID REF ALT QUAL FILTER INFO
NC_000015.10 40407805 . GTTTT . . . .
Output:
##fileformat=VCFv4.1
##FILTER=<ID=PASS,Description="All filters passed">
##reference=GRCh38>
##contig=<ID=NC_000015.10,length=101991189,assembly=GRCh38>
##INFO=<ID=BCFTOOLS_OLD_VARIANT,Number=1,Type=String,Description="Original variant. Format: CHR|POS|REF|ALT|USED_ALT_IDX">
##bcftools_normVersion=1.21-116-gd7fb0a94+htslib-1.21-42-g6e3588c4
##bcftools_normCommand=norm --multiallelics=- --check-ref=s --old-rec-tag=BCFTOOLS_OLD_VARIANT --fasta-ref=/data/annotation/fasta/GCF_000001405.39_GRCh38.p13_genomic.fna.gz big_ref.vcf; Date=Thu Apr 10 17:32:29 2025
#CHROM POS ID REF ALT QUAL FILTER INFO
NC_000015.10 40407805 . G . . . .
Lines total/split/joined/realigned/mismatch_removed/dup_removed/skipped: 1/0/0/0/0/0/0
REF/ALT total/modified/added: 1/0/0
Issue 1 - Missing INFO for old-rec-tag
BCFTOOLS_OLD_VARIANT should be populated if variant is changed - see samtools/bcftools#2357
Issue 2 - Stats
Expected:
REF/ALT total/modified/added: 1/1/0
I would also argue "realigned" might be better named "normalized" and have it added in this case (otherwise you lose it)
- Dominant language
- C
- Stars
- 891
- Forks
- 277
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 2
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/bcftools
-
needs-feedback
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 45/100
-
htslib-dependent P2: Desirable
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
needs-feedback requires-test-case
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in samtools/bcftools
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