Crate vcf_batcher

Source
Expand description

§VCF Batcher

A library for converting large VCF files into batches of smaller VCF files containing a fixed number of samples. Can also be used as a command line tool.

Enums§

ReaderLines
Wrapper for the lines of a file. If the file is bgzipped, the lines are read with a BGZFReader.

Functions§

extract_variants_to_batches
Converts a large VCF file into batches of smaller VCF files containing a fixed number of samples
is_header_line
In VCF-Files header lines containing metadata start with a #. This function therefore simply checks if a line starts with a #.
parse_compression_level
Parses the user input for the compression level and returns the corresponding compression level from the bgzip crate.
read_lines
The output is wrapped in a Result to allow matching on errors Returns an Iterator to the Reader of the lines of the file.
save_batch
Saves a batch of variants to a file.