bcftools filter not parsing sample FORMAT fields correctly
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the bcftools filter -R target.bed input.vcf command with a multisample FreeBayes-generated VCF containing a decimal GQ value. Trace the FORMAT-field parsing used by the filter command and confirm that the decimal GQ remains one field while DP and later fields retain their original values.
Written by the indexing model from the issue text.
Description
bcftools --version
bcftools 1.3 (same result with 1.2 and 1.0)
When using the command "bcftools filter -R target.bed input.vcf > output.vcf" on a multisample FreeBayes-generated vcf, the FORMAT fields do not seem to deal with a decimal in the GQ position correctly (deals with it fine in other entries). As can be seen below, the existing DP value is getting replaced by the digits past the decimal of the floating value GQ (the GL value seems okay). Is anyone else seeing this effect?
"… GT:GQ:DP:DPR:RO:QR:AO:QA:GL 1/1:131.721:67:67,67:0:0:67:2311:-208.242,-20.169,0 …"
becomes
"… GT:GQ:DP:DPR:RO:QR:AO:QA:GL 1/1:131:721:67,67:0:0:67:2311:-208.242,-20.169,0 …"
- 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