Skip to content

bcftools query: referencing ID column when there is a META field named ID? #2337

@bbimber

Description

@bbimber

Hello,

I would like to take a VCF and write a TSV with one line per genotype, using something like:

bcftools query -f '[%ID\t%SAMPLE\t%GT\n]' $REF_VCF

The VCF in question has a META field also named ID. Is there a way to explicitly reference the built-in ID field? While I can more explicitly reference info fields like %INFO/AF, this does not appear to work for built-in fields like ID. Is there a workaround? Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions