FastqBatch
Mojo struct 🡭
FastqBatch
Section titled “FastqBatch”@memory_onlystruct FastqBatchImplemented traits
Section titled “Implemented traits”AnyType, Copyable, GpuMovableBatch, ImplicitlyDestructible, Movable, Sized, Writable
Methods
Section titled “Methods”__init__
Section titled “__init__”fn __init__(out self, batch_size: Int = 4096, avg_record_size: Int = 150, quality_offset: UInt8 = UInt8(33))Args:
- batch_size (
Int) - avg_record_size (
Int) - quality_offset (
UInt8) - self (
Self)
Returns:
Self
fn __init__(out self, records: List[FastqRecord], avg_record_size: Int = 150, quality_offset: UInt8 = UInt8(33))Args:
- records (
List[FastqRecord]) - avg_record_size (
Int) - quality_offset (
UInt8) - self (
Self)
Returns:
Self
Raises:
fn add(mut self, record: FastqRecord)Args:
- self (
Self) - record (
FastqRecord)
fn add[origin: MutOrigin](mut self, record: FastqView[origin])Parameters:
- origin (
MutOrigin)
Args:
- self (
Self) - record (
FastqView[origin])
to_device
Section titled “to_device”fn to_device(self, ctx: DeviceContext) -> DeviceFastqBatchArgs:
- self (
Self) - ctx (
DeviceContext)
Returns:
DeviceFastqBatch
Raises:
fn stage(self, ctx: DeviceContext) -> StagedFastqBatchArgs:
- self (
Self) - ctx (
DeviceContext)
Returns:
StagedFastqBatch
Raises:
num_records
Section titled “num_records”fn num_records(self) -> IntArgs:
- self (
Self)
Returns:
Int
seq_len
Section titled “seq_len”fn seq_len(self) -> IntArgs:
- self (
Self)
Returns:
Int
quality_offset
Section titled “quality_offset”fn quality_offset(self) -> UInt8Args:
- self (
Self)
Returns:
UInt8
__len__
Section titled “__len__”fn __len__(self) -> IntArgs:
- self (
Self)
Returns:
Int
__repr__
Section titled “__repr__”fn __repr__(self) -> StringArgs:
- self (
Self)
Returns:
String
get_record
Section titled “get_record”fn get_record(self, index: Int) -> FastqRecordArgs:
- self (
Self) - index (
Int)
Returns:
FastqRecord
Raises:
get_ref
Section titled “get_ref”fn 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 to_records(self) -> List[FastqRecord]Args:
- self (
Self)
Returns:
List[FastqRecord]
Raises:
write_to
Section titled “write_to”fn write_to(self, mut w: T)Args:
- self (
Self) - w (
T)
Raises: