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§
- Reader
Lines - 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.