pub enum WriteError {
QualityFlagSet,
PairedFlagSet,
QualityFlagNotSet,
PairedFlagNotSet,
RecordSizeExceedsMaximumBlockSize(usize, usize),
InvalidNucleotideSequence(String),
MissingHeader,
IncompatibleBlockSizes(usize, usize),
IncompatibleHeaders(VBinseqHeader, VBinseqHeader),
}Expand description
Errors that can occur during write operations to VBINSEQ files
These errors typically occur when there’s a mismatch between the header configuration and the data being written, or when there are issues with the data format.
Variants§
QualityFlagSet
When trying to write data without quality scores but the header specifies they should be present
PairedFlagSet
When trying to write data without a pair but the header specifies paired records
QualityFlagNotSet
When trying to write quality scores but the header specifies they are not present
PairedFlagNotSet
When trying to write paired data but the header doesn’t specify paired records
RecordSizeExceedsMaximumBlockSize(usize, usize)
When a record is too large to fit in a block of the configured size
The first parameter is the record size, the second is the maximum block size
InvalidNucleotideSequence(String)
When invalid nucleotide characters are found in a sequence
MissingHeader
When a header is not provided to the writer builder
IncompatibleBlockSizes(usize, usize)
When trying to ingest blocks with different sizes than expected
The first parameter is the expected size, the second is the found size
IncompatibleHeaders(VBinseqHeader, VBinseqHeader)
When trying to ingest data with an incompatible header
The first parameter is the expected header, the second is the found header