could not parse the input VCF

Open
#2,397 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale

Research direction

Start by reproducing the shown bcftools mpileup | bcftools call pipeline and inspect the generated VCF header alongside the reported INFO, contig, and FILTER warnings. Compare the header and contigs with hg38.fa, then rerun the command; done means the output VCF parses without these errors.

Written by the indexing model from the issue text.

Description

requires-test-case

Hi,
I want to call SNPs for PacBio HiFi assembled haplotype genome using the following command:
bcftools mpileup -f hg38.fa --threads 16 -O v $file | bcftools call --ploidy 1 -mv -o ../SNP/$vcf

The following information was reported:
[mpileup] maximum number of reads per input file set to -d 250
[W::vcf_parse_info] INFO 'MQ0' is not defined in the header, assuming Type=String
Error: could not parse the input VCF

[mpileup] maximum number of reads per input file set to -d 250
[W::vcf_parse] Contig 'chrUn_KI270' is not defined in the header. (Quick workaround: index the file with tabix.)
Error: could not parse the input VCF

[mpileup] maximum number of reads per input file set to -d 250
[W::vcf_parse_filter] FILTER '' is not defined in the header
Error: could not parse the input VCF

The contigs were mapped to hg38 using minimap2:
minimap2 -t 12 -ax asm5 hg38.fa ./assemble/$file > ./AlignedSam/$out

I tried to restart some failure programe and recived complete SNP files.

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.