VCF-SUBSET(1)
π vcf-subset β create subset of VCF file π
okay bestie, so vcf-subset is a lil command from the User Commands corner of the manual, and it does exactly what it says on the tin: it makes you a subset of a VCF file. slay. β¨
π SYNOPSIS π
vcf-subset [OPTIONS] in.vcf.gz > out.vcf
likeβ¦ you feed it a vcf, you get a smaller vcf out the other side. the > redirect is doing the heavy lifting there, bestie, don't forget it. π
β¨ OPTIONS β¨
-c,--columns<string> β a file or a comma-separated list of the columns you wanna keep in the vcf file. if you hand it a file, it's one column per row. your choice, queen. π-e,--exclude-refβ excludes the rows that don't contain variants. bye-bye reference-only rows, you will not be missed. π-p,--privateβ only prints rows where only the subset columns carry an alternate allele. private? more like exclusive. π-r,--replace-with-refβ replaces the excluded types with the reference allele instead of a dot. dot says nothing, this one actually speaks up. π-t,--type<list> β comma-separated list of the variant types to include:SNPs,indels. pick your fighters. π₯-u,--keep-uncalledβ do not exclude rows without calls. keep the uncalled ones, they're valid too. π«Ά-h,-?,--helpβ this help message. always there for you when you're lost, fr fr. π
π¦ EXAMPLES π¦
here's the vibe, in one line:
cat in.vcf | vcf-subset -r -t indels -e -c SAMPLE1 > out.vcf
cat the vcf, pipe it in, ask for indels only, swap the excluded types for reference with -r, drop the no-variant rows with -e, keep just the SAMPLE1 column with -c, and boom β out.vcf. main character energy, no cap. β
lowkey reminder bestie: -c will take a file or a comma-separated list, and if it's a file it's one column per row. don't come for me when you forget. π
and that's the whole page, gorgeous. this one's from vcf-subset 0.1.5, dated July 2011 β vintage but still eating, 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