bio.block

Source code: bio/block.seq

class bio.block.Block[T]

Represents a block of data; useful in parallelization to batch data

Magic methods:

__new__(size: int)
__iter__()
__getitem__(idx: int)
__len__()
__bool__()
__str__()
bio.block.blocks(x, size: int)

Partitions the given object into blocks of the specified size by calling the __blocks__ magic method.