Incorrect allele ("2") in... when trying to merge, merged files

Open
#2,488 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
c

Research direction

The report names bcftools 1.21 and two merged, compressed, indexed VCFs; start by reproducing the second merge and inspect chr1:939414 for sample CC0037_CC0037_N. Determine whether merging the intermediate files reliably causes the incorrect-allele error and document the conditions or input issue found.

Written by the indexing model from the issue text.

Description

requires-test-case

bcftools version 1.21

I have about 230 massive vcfs that I am trying to slap together. I kept crashing everything while merging all 230 at once, but I managed to get them merged, zipped, and indexed in two batches. I then wanted to merge the two merged vcf.gz files. However, I ran into an error:

[E::bcf_calc_ac] Incorrect allele ("2") in CC0037_CC0037_N at chr1:939414

which I thought was interesting as these samples have already been merged just fine? Not sure if merging already merged files is a problem or if some sort of artifacting is happening.

Dominant language
C
Stars
891
Forks
277
Avg merge
2d 23h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from samtools/bcftools

All issues in samtools/bcftools

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.