VCF-QUERY(1)
π VCF-QUERY(1) π
okay bestie, sit down, hydrate, because today we're reading a page from User Commands (section 1 of the manual, aka the place where the actual runnable commands live) about a little icon called vcf-query. it queries VCF files. that's the whole plot π§¬β¨
πΈ NAME πΈ
vcf-query β query VCF files.
short, sweet, to the point, main character energy, no notes π
π¦ SYNOPSIS π¦
query-vcf [OPTIONS] file.vcf.gz
not me pointing out that the page is called vcf-query but the synopsis spells the command query-vcf π iykyk, just read it as written, don't come for me.
π OPTIONS π
-c,--columns <NA001,NA002,..>β hand it a list of column names, comma-separated, and that's what you get. it's giving "pick your faves" π-f,--format <string>β your format string, your rules. the default is'%CHROM:%POS\t%REF[\t%SAMPLE=%GT]\n'β literally that, tabs and all β¨-l,--list-columnsβ just list the columns. a lil menu, a lil vibe check π¦-r,--region chr:from-toβ grab a region. heads up: this one runstabixunder the hood, so tabix is doing the heavy lifting π₯-h,-?,--helpβ this help message. hi, hello, help is here π«Ά
π EXAMPLES π
okay so the manpage prints the examples like this, all squished together with the line breaks wherever they landed, and i'm not about to edit a single character of them. here they are, exactly:
query-vcf file.vcf.gz 1:1000-2000 -c NA001,NA002,NA003 query-vcf
file.vcf.gz -r 1:1000-2000 -f
'%CHROM:%POS\t%REF[\t%SAMPLE:%*=,]\n' query-vcf file.vcf.gz -f
'[%GT\t]%LINE\n' query-vcf file.vcf.gz -f
'%CHROM\t%POS\t%INFO/DP\t%FILTER\n'
and here's the exact same text, same characters, just un-wrapped so your eyeballs can survive:
query-vcf file.vcf.gz 1:1000-2000 -c NA001,NA002,NA003query-vcf file.vcf.gz -r 1:1000-2000 -f '%CHROM:%POS\t%REF[\t%SAMPLE:%*=,]\n'query-vcf file.vcf.gz -f '[%GT\t]%LINE\n'query-vcf file.vcf.gz -f '%CHROM\t%POS\t%INFO/DP\t%FILTER\n'
four little baddies, four lil ways to pull stuff out of a VCF. ate, honestly π
and that's the page bestie π«Ά it's vcf-query 0.1.5, dated July 2011, straight from the footer of the original β so yeah, she's vintage, she's iconic, she's still serving. periodt. π
π¦ where this page comes from
- debian bookworm: vcftools 0.1.16-3+b1 Β· GPL-3.0-only
- debian trixie: vcftools 0.1.16-3+b1 Β· GPL-3.0-only
- ubuntu jammy: vcftools 0.1.16-3 Β· GPL-3.0-only
- ubuntu noble: vcftools 0.1.16-3 Β· GPL-3.0-only
- ubuntu questing: vcftools 0.1.16-3
- ubuntu resolute: vcftools 0.1.17-1 Β· GPL-3.0-only
- ubuntu stonking: vcftools 0.1.17-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms