.\" Automatically generated by Pandoc 2.14.0.3 .\" .TH "VCFFILTER" "1" "" "vcffilter (vcflib)" "vcffilter (VCF filter)" .hy .SH NAME .PP \f[B]vcffilter\f[R] .SH SYNOPSIS .PP \f[B]vcffilter\f[R] options .SH DESCRIPTION .PP VCF filter the specified vcf file using the set of filters .SH OPTIONS .IP .nf \f[C] options: -f, --info-filter specifies a filter to apply to the info fields of records, removes alleles which do not pass the filter -g, --genotype-filter specifies a filter to apply to the genotype fields of records -k, --keep-info used in conjunction with \[aq]-g\[aq], keeps variant info, but removes genotype -s, --filter-sites filter entire records, not just alleles -t, --tag-pass tag vcf records as positively filtered with this tag, print all records -F, --tag-fail tag vcf records as negatively filtered with this tag, print all records -A, --append-filter append the existing filter tag, don\[aq]t just replace it -a, --allele-tag apply -t on a per-allele basis. adds or sets the corresponding INFO field tag -v, --invert inverts the filter, e.g. grep -v -o, --or use logical OR instead of AND to combine filters -r, --region specify a region on which to target the filtering, requires a BGZF compressed file which has been indexed with tabix. any number of regions may be specified. Filter the specified vcf file using the set of filters. Filters are specified in the form \[dq] : -f \[dq]DP > 10\[dq] # for info fields -g \[dq]GT = 1|1\[dq] # for genotype fields -f \[dq]CpG\[dq] # for \[aq]flag\[aq] fields Operators can be any of: =, !, <, >, |, & Any number of filters may be specified. They are combined via logical AND unless --or is specified on the command line. Obtain logical negation through the use of parentheses, e.g. \[dq]! ( DP = 10 )\[dq] For convenience, you can specify \[dq]QUAL\[dq] to refer to the quality of the site, even though it does not appear in the INFO fields. type: filter \f[R] .fi .SH EXIT VALUES .TP \f[B]0\f[R] Success .TP \f[B]not 0\f[R] Failure .SH SEE ALSO .PP \f[B]vcflib\f[R](1) .SH OTHER .SH LICENSE .PP Copyright 2011-2023 (C) Erik Garrison and vcflib contributors. MIT licensed. .SH AUTHORS Erik Garrison and vcflib contributors.