| Title: | Fast Genetic Variant Call Format File Header Intelligence and Audit |
|---|---|
| Description: | 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>. |
| Authors: | Dylan Lawless [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-8496-3725>) |
| Maintainer: | Dylan Lawless <[email protected]> |
| License: | GPL-3 |
| Version: | 0.1.0 |
| Built: | 2026-06-04 07:35:13 UTC |
| Source: | https://github.com/cran/vcfheader |
Reads only the header portion of a VCF or gzipped VCF file and returns
a structured vcf_hdr object containing parsed metadata, field
definitions, sample names, warnings, and errors.
parse_vcf_header(path)parse_vcf_header(path)
path |
Path to a VCF or |
A vcf_hdr object.
Print a vcf_hdr object
## S3 method for class 'vcf_hdr' print(x, ...)## S3 method for class 'vcf_hdr' print(x, ...)
x |
A |
... |
Unused. |
Invisibly returns x.
Read the header lines from a VCF file
read_vcf_header(path)read_vcf_header(path)
path |
Path to a VCF file. |
A character vector of header lines.
Writes an HTML summary report for a parsed vcf_hdr object.
vcfheader( x, file = NULL, spec_index = NULL, manual_defs = NULL, spec_sections = NULL, input_path = NULL, brand_svg = NULL )vcfheader( x, file = NULL, spec_index = NULL, manual_defs = NULL, spec_sections = NULL, input_path = NULL, brand_svg = NULL )
x |
A |
file |
Output HTML file path. If |
spec_index |
Optional specification index object or path to an |
manual_defs |
Optional manual definition list. |
spec_sections |
Optional specification section list. |
input_path |
Optional input file path used when deriving the output path. |
brand_svg |
Optional path to an SVG logo or inline SVG markup. |
Invisibly returns the output file path.