MemoryLoomLayer (class)ΒΆ

A MemoryLoomLayer represents a layer of data residing in RAM only, and provides a numpy ndarray-like interface. They are typically obtained by creating a LoomView on the LoomConnection.

with loompy.connect("mydataset.loom") as ds:
    for (ix, selection, view) in ds.scan(axis=1):
        # Here, the matrix returned resides only in RAM and
        # each iteration gives a slab out of the full matrix
        print(view.layers["spliced"][0, :])