annotate ID for multi-allelic sites
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- bioinformatics
Research direction
Reproduce the report with bcftools annotate -c +ID -a using the shown source and target records on bcftools 1.19. Compare annotation behavior for the G and T target lines; done means determining whether rs1258851236 should be copied to both records and documenting or correcting the observed result.
Written by the indexing model from the issue text.
Description
I found that ID column from multi-allelic site from a source file only transferred to the first allele in the target file.
My source annotation file:
chr21 5030278 rs1258851236 C G,T . . RS=1258851236
And my target file:
chr21 5030278 . C G . . .
chr21 5030278 . C T . . .
The command I used is as follows:
bcftools annotate -c +ID -a [source file] [target file]
And I got:
chr21 5030278 rs1258851236 C G . . .
chr21 5030278 . C T . . .
Shouldn't the ID (rs1258851236) be annotated to both lines in the target file?
The version I used: bcftools_annotateVersion=1.19+htslib-1.19
- 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