VCF parse error:FILTER ' PASS' is not defined in the header

Open
#1,762 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
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

No repository file or test is named in the report. Reproduce the command bcftools view white_yakXcow.FI.vcf -Oz -o white_yakXcow.FI.vcf.gz with the supplied VCF, then inspect the FILTER header entries and the value reported as ' PASS'; done should be a confirmed parser diagnosis and a documented expected behavior or fix.

Written by the indexing model from the issue text.

Description

requires-test-case

Dear all,
I 'm compressing vcf with the following code:
bcftools view white_yakXcow.FI.vcf -Oz -o white_yakXcow.FI.vcf.gz
The input white_yakXcow.FI.vcf is like
##fileformat=VCFv4.2
##FILTER=<ID=PASS,Description="All filters passed">
##ALT=<ID=NON_REF,Description="Represents any possible alternative allele at this location">
##FILTER=<ID=LowQual,Description="Low quality">
##FILTER=<ID=SnpCluster,Description="SNPs found in clusters">
##FILTER=<ID=filtered,Description="QD < 2.0 || FS > 60.0 || MQ < 40.0 || MQRankSum < -12.5 || ReadPosRankSum < -8.0 || SOR > ### 3.0">
image
image
image
and I got the error
[W::vcf_parse] FILTER ' PASS' is not defined in the header
[E::vcf_parse] Could not add dummy header for FILTER ' PASS'
Error: VCF parse error

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.