FastqBatch
Mojo struct 🡭
FastqBatch
Section titled “FastqBatch”@memory_onlystruct FastqBatchImplemented traits
Section titled “Implemented traits”AnyType, Copyable, Deinitable, Movable, Sized, Writable
Methods
Section titled “Methods”__init__
Section titled “__init__”fn def __init__(out self, batch_size: Int = Int(4096), avg_record_size: Int = Int(150), quality_offset: UInt8 = UInt8(33))Args:
- batch_size (
Int) - avg_record_size (
Int) - quality_offset (
UInt8) - self (
Self)
Returns:
Self
fn def __init__(out self, records: List[FastqRecord], avg_record_size: Int = Int(150), quality_offset: UInt8 = UInt8(33))Args:
- records (
List[FastqRecord]) - avg_record_size (
Int) - quality_offset (
UInt8) - self (
Self)
Returns:
Self
Raises:
fn def add(mut self, record: FastqRecord)Args:
- self (
Self) - record (
FastqRecord)
fn def add[origin: MutOrigin](mut self, record: FastqView[origin])Parameters:
- origin (
MutOrigin)
Args:
- self (
Self) - record (
FastqView[origin])
num_records
Section titled “num_records”fn def num_records(self) -> IntArgs:
- self (
Self)
Returns:
Int
seq_len
Section titled “seq_len”fn def seq_len(self) -> IntArgs:
- self (
Self)
Returns:
Int
quality_offset
Section titled “quality_offset”fn def quality_offset(self) -> UInt8Args:
- self (
Self)
Returns:
UInt8
__len__
Section titled “__len__”fn def __len__(self) -> IntArgs:
- self (
Self)
Returns:
Int
__repr__
Section titled “__repr__”fn def __repr__(self) -> StringArgs:
- self (
Self)
Returns:
String
get_record
Section titled “get_record”fn def get_record(self, index: Int) -> FastqRecordArgs:
- self (
Self) - index (
Int)
Returns:
FastqRecord
Raises:
get_ref
Section titled “get_ref”fn def get_ref(self, index: Int) -> FastqView[origin_of(self)]Args:
- self (
Self) - index (
Int)
Returns:
FastqView[origin_of(self)]
Raises:
to_records
Section titled “to_records”fn def to_records(self) -> List[FastqRecord]Args:
- self (
Self)
Returns:
List[FastqRecord]
Raises:
write_to
Section titled “write_to”fn def write_to(self, mut w: T)Args:
- self (
Self) - w (
T)
Raises: