Class Layer
- java.lang.Object
-
- ubic.gemma.core.loader.util.anndata.Layer
-
public class Layer extends Object
Represents a layer.- Author:
- poirigui
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DenseMatrix
getDenseMatrix()
Obtain the dense matrix encoded in this layer.String
getEncodingType()
Matrix
getMatrix()
Obtain the matrix encoded in this layer.String
getPath()
Indicate where this layer is located relative to the H5 file.SparseMatrix
getSparseMatrix()
Obtain the sparse matrix encoded in this layer.String
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.String
toString()
-
-
-
Method Detail
-
getEncodingType
public String getEncodingType()
-
getPath
public String getPath()
Indicate where this layer is located relative to the H5 file.This is either
X
orlayers/{layerName}
.
-
getType
public String 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
public Matrix getMatrix()
Obtain the matrix encoded in this layer.
-
getSparseMatrix
public SparseMatrix getSparseMatrix()
Obtain the sparse matrix encoded in this layer.
-
getDenseMatrix
public DenseMatrix getDenseMatrix()
Obtain the dense matrix encoded in this layer.
-
-