ParserConfig
Mojo struct 🡭
ParserConfig
Section titled “ParserConfig”@memory_onlystruct ParserConfigConfiguration struct for FASTQ parser options.
Centralizes buffer capacity, growth policy, validation flags, and quality
schema settings. Pass as a comptime parameter to FastqParser, e.g.
FastqParser[FileReader, ParserConfig(check_ascii=False)].
Attributes:
buffer_capacity: Size in bytes of the internal read buffer. Larger
values can improve throughput for large files but use more memory.
buffer_max_capacity: Maximum buffer size when growth is enabled.
buffer_growth_enabled: If True, buffer grows when a line exceeds
buffer_capacity, up to buffer_max_capacity. Disable for fixed memory.
check_ascii: If True, validate that all record bytes are ASCII.
check_quality: If True, validate quality bytes against the quality schema.
quality_schema: Optional schema name; used when not passed to __init__.
One of: “generic”, “sanger”, “solexa”, “illumina_1.3”, “illumina_1.5”, “illumina_1.8”.
Fields
Section titled “Fields”- buffer_capacity (
Int) - buffer_max_capacity (
Int) - buffer_growth_enabled (
Bool) - check_ascii (
Bool) - check_quality (
Bool) - quality_schema (
Optional[String])
Implemented traits
Section titled “Implemented traits”AnyType, Copyable, ImplicitlyDestructible, Movable
Methods
Section titled “Methods”__init__
Section titled “__init__”def __init__(out self, buffer_capacity: Int = 262144, buffer_max_capacity: Int = 1073741824, buffer_growth_enabled: Bool = False, check_ascii: Bool = False, check_quality: Bool = False, quality_schema: Optional[String] = None)Args:
- buffer_capacity (
Int) - buffer_max_capacity (
Int) - buffer_growth_enabled (
Bool) - check_ascii (
Bool) - check_quality (
Bool) - quality_schema (
Optional) - self (
Self)
Returns:
Self