MyNixOS website logo
Description

Fast Genetic Variant Call Format File Header Intelligence and Audit.

Streams and parses variant call format file headers without reading full files. Provides structured metadata, validation, inference, and HTML reporting. For details on the specifications used see Danecek et al. (2021) <doi:10.1093/gigascience/giab008>.
vcfheader logo

vcfheader

vcfheader parses Variant Call Format (VCF) headers and turns them into a structured summary and a standalone HTML report.

VCF headers contain the metadata needed to understand a dataset before inspecting variant rows. They describe file format version, reference genome, contigs, INFO and FORMAT fields, filtering definitions, samples, and other header declarations. This package extracts that information quickly and presents it in a form that is easier to inspect, validate, and share.

TLDR

library(vcfheader)

hdr <- parse_vcf_header("file.vcf.gz")

vcfheader(
  hdr,
  file = "file_vcfheader.html"
)

What it does

  • reads VCF headers without loading full variant records
  • parses header metadata into a structured vcf_hdr object
  • extracts contigs, INFO fields, FORMAT fields, FILTER entries, ALT definitions, samples, and other header records
  • performs lightweight validation and inference
  • generates a portable HTML report for review and sharing

Why this is useful

The VCF header is often the fastest way to understand:

  • which reference assembly was used
  • what annotations are present
  • how genotype fields are encoded
  • what filtering or calling pipeline produced the file
  • which samples are included
  • whether structural variant metadata or caller-specific tags are present

Example report

The HTML report is designed to help review dataset contents, metadata, field definitions, and filtering context in a single readable document.

Bundled examples

The package ships with small example files for offline use:

  • simple.vcf
  • sv44.vcf
  • simple_vcfheader.html

Example usage with bundled files

library(vcfheader)

simple_vcf <- system.file("extdata", "simple.vcf", package = "vcfheader")
hdr <- parse_vcf_header(simple_vcf)

vcfheader(
  hdr,
  file = "simple_vcfheader.html"
)

Licence and notices

vcfheader is free and open-source software released under the GNU General Public License, version 3 (GPL-3).

Switzerland Omics is the creator of VCFheader. Attribution should be retained where reasonably practicable, but does not imply endorsement, certification, or approval of any specific use, result, or modified version.

Switzerland Omics® is a registered Swiss trade mark. No trade mark rights are granted under the software licence. Modified versions must not be presented as the original project or as endorsed by Switzerland Omics without permission.

VCF specification references may relate to samtools and the broader HTS specifications ecosystem, distributed under the MIT/Expat Licence by Genome Research Ltd. Source: Further reading: <https://www.htslib.org/doc/#file-formats.

Metadata

Version

0.1.0

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows