fill-fs
Quick Start
- Command:
fill-fs [OPTIONS] file.vcf - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/fill-fs - Full reference: See references/help.md for complete options and examples
When To Use This Tool
- Annotate VCF records with flanking sequence in
INFO/FS. - Mask known variants or BED regions out of the flanks before downstream primer/probe design.
- Lowercase or replace masked sequence context to make nearby-conflict regions obvious.
- Self-mask clustered nearby variants with
-cwhen local variant density matters.
Common Patterns
# 1) Add 100-bp flanking sequence around each variant
fill-fs -r ref.fa.gz variants.vcf > variants.fs.vcf
# 2) Mask known variants and BED regions, lowercasing the BED masks
fill-fs \
-r ref.fa.gz \
-v known.vcf.gz \
-m lc -b mask.bed.gz \
variants.vcf > masked.fs.vcf
# 3) Self-mask clustered nearby variants within 20 bp
fill-fs -r ref.fa.gz -c 20 variants.vcf > clustered.fs.vcf
Recommended Workflow
- Prepare a tabix-indexed reference sequence file (required for flanking sequence extraction)
- Optionally prepare tabix-indexed VCF or BED files for masking known variants or regions
- Run
fill-fswith appropriate masking options (-v,-b,-c) and flanking length (-l) - Validate the output VCF contains the expected INFO/FS annotations
Guardrails
- Requires a reference sequence file (
-r) to extract flanking sequences - Masking files (VCF/BED) must be tabix-indexed before use
-monly affects the next-b,-v, or-ctarget and must appear before that argument to take effect.- Multiallelic sites are reduced to the first ALT allele when constructing the
FSannotation. --helpworks, but--versionis not implemented and errors as an unknown parameter.