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__”def __init__(out self, batch_size: Int = 4096, avg_record_size: Int = 150, quality_offset: UInt8 = 33)Args:
- batch_size (
Int) - avg_record_size (
Int) - quality_offset (
UInt8) - self (
Self)
Returns:
Self
def __init__(out self, records: List[FastqRecord], avg_record_size: Int = 150, quality_offset: UInt8 = 33)Args:
- records (
List) - avg_record_size (
Int) - quality_offset (
UInt8) - self (
Self)
Returns:
Self
Raises:
def add(mut self, record: FastqRecord)Args:
- self (
Self) - record (
FastqRecord)
def add[origin: MutOrigin](mut self, record: FastqView[origin])Parameters:
- origin (
MutOrigin)
Args:
- self (
Self) - record (
FastqView)
to_device
Section titled “to_device”def to_device(self, ctx: DeviceContext) -> DeviceFastqBatchArgs:
- self (
Self) - ctx (
DeviceContext)
Returns:
DeviceFastqBatch
Raises:
def stage(self, ctx: DeviceContext) -> StagedFastqBatchArgs:
- self (
Self) - ctx (
DeviceContext)
Returns:
StagedFastqBatch
Raises:
num_records
Section titled “num_records”def num_records(self) -> IntArgs:
- self (
Self)
Returns:
Int
seq_len
Section titled “seq_len”def seq_len(self) -> IntArgs:
- self (
Self)
Returns:
Int
quality_offset
Section titled “quality_offset”def quality_offset(self) -> UInt8Args:
- self (
Self)
Returns:
UInt8
__len__
Section titled “__len__”def __len__(self) -> IntArgs:
- self (
Self)
Returns:
Int
__repr__
Section titled “__repr__”def __repr__(self) -> StringArgs:
- self (
Self)
Returns:
String
get_record
Section titled “get_record”def get_record(self, index: Int) -> FastqRecordArgs:
- self (
Self) - index (
Int)
Returns:
FastqRecord
Raises:
get_ref
Section titled “get_ref”def get_ref(self, index: Int) -> FastqView[origin_of(self)]Args:
- self (
Self) - index (
Int)
Returns:
FastqView
Raises:
to_records
Section titled “to_records”def to_records(self) -> List[FastqRecord]Args:
- self (
Self)
Returns:
List
Raises:
write_to
Section titled “write_to”def write_to(self, mut w: T)Args:
- self (
Self) - w (
T)
Raises: