sgkit-dev / vcztools

Partial reimplementation of bcftools for VCF Zarr
Apache License 2.0
1 stars 3 forks source link

Add query command with basic `-f/--format` support #50

Closed tomwhite closed 3 weeks ago

tomwhite commented 1 month ago

For example:

vcztools query -f '%POS\n' sample.vcz

Don't need looping over samples ([] notation) yet: https://samtools.github.io/bcftools/bcftools.html#query

Will-Tyler commented 4 weeks ago

I would like to get started on this issue. I am going to try a similar approach to #49. That is, using PyParsing to create a parser that produces a syntax tree representing the query format and then producing a function based on the syntax tree that takes a chunk and returns the query results in the specified format.