LoomView (class)¶
A LoomView is in-memory Loom dataset, typically created by slicing the LoomConnection.view()
attribute of
a LoomConnection
. It is designed to behave exactly like a LoomConnection, except that it’s read-only.
Examples:
with loompy.connect("mydataset.loom") as ds:
myview = ds.view[:100, :100] # Top-left 100x100 corner of the dataset
print(myview.ra.Gene) # Will print the 100 genes that are in the view
-
class
loompy.
LoomView
(layers: loompy.layer_manager.LayerManager, row_attrs: loompy.attribute_manager.AttributeManager, col_attrs: loompy.attribute_manager.AttributeManager, row_graphs: loompy.graph_manager.GraphManager, col_graphs: loompy.graph_manager.GraphManager, *, filename: str = '', file_attrs: loompy.global_attribute_manager.GlobalAttributeManager = None)[source]¶ An in-memory loom dataset
-
__init__
(layers: loompy.layer_manager.LayerManager, row_attrs: loompy.attribute_manager.AttributeManager, col_attrs: loompy.attribute_manager.AttributeManager, row_graphs: loompy.graph_manager.GraphManager, col_graphs: loompy.graph_manager.GraphManager, *, filename: str = '', file_attrs: loompy.global_attribute_manager.GlobalAttributeManager = None) → None[source]¶ Initialize self. See help(type(self)) for accurate signature.
-