Skip to contents

Extracts contig names and lengths from the VCF/BCF header.

Usage

vcf_get_contig_lengths(filename)

Arguments

filename

Path to VCF/BCF file

Value

Named integer vector (names = contigs, values = lengths)

Examples

if (FALSE) { # \dontrun{
lengths <- vcf_get_contig_lengths("variants.vcf.gz")
} # }