Class Layer
java.lang.Object
ubic.gemma.core.loader.util.anndata.Layer
Represents a layer.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain the dense matrix encoded in this layer.Obtain the matrix encoded in this layer.getPath()
Indicate where this layer is located relative to the H5 file.Obtain the sparse matrix encoded in this layer.getType()
Get the encoding type of this layer.boolean
isDense()
Check if the matrix encoded in this layer is dense.boolean
isSparse()
Check if the matrix encoded in this layer is sparse.toString()
-
Constructor Details
-
Layer
-
-
Method Details
-
getEncodingType
-
getPath
Indicate where this layer is located relative to the H5 file.This is either
X
orlayers/{layerName}
. -
getType
Get the encoding type of this layer.Layers are either dense or sparse, use
isSparse()
orisDense()
to verify that. -
isSparse
public boolean isSparse()Check if the matrix encoded in this layer is sparse. -
isDense
public boolean isDense()Check if the matrix encoded in this layer is dense. -
getMatrix
Obtain the matrix encoded in this layer. -
getSparseMatrix
Obtain the sparse matrix encoded in this layer. -
getDenseMatrix
Obtain the dense matrix encoded in this layer. -
toString
-