Skip to content
Discussion options

You must be logged in to vote

There are two useful checks here. The error you received is not purely a header-to-header incompatibility: it means a record uses INFO/C, but that file does not declare C with an ##INFO=<ID=C,...> header line.

You can first check whether all 500 headers can be merged:

bcftools merge --print-header --file-list vcfs.txt >/dev/null

However, that alone will not catch an undefined tag which only appears late in a file. To detect those, each file has to be parsed through its records at least once. A lightweight check for one file is:

bcftools view -Ou -o /dev/null sample.vcf.gz

Run that over the file list as a scheduler array or with your usual parallel tool, keeping stderr separate per input f…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by j-gillespie-dna
Comment options

You must be logged in to vote
2 replies
@ymxlx
Comment options

@j-gillespie-dna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants