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
- Wrapper for the lines of a file. If the file is bgzipped, the lines are read with a BGZFReader.
Functions
- Converts a large VCF file into batches of smaller VCF files containing a fixed number of samples
- In VCF-Files header lines containing metadata start with a
#
. This function therefore simply checks if a line starts with a#
. - Parses the user input for the compression level and returns the corresponding compression level from the bgzip crate.
- The output is wrapped in a Result to allow matching on errors Returns an Iterator to the Reader of the lines of the file.
- Saves a batch of variants to a file.