Compositions (chamois.compositions)#
Transformation of chamois.model objects into compositional data.
This module contains helper functions to transform objects from the
object model in chamois.model into compositional data suitable to
pass to the fit and
predict methods of
ChemicalOntologyPredictor objects.
The compositional matrices are stored in AnnData objects
to ensure that metadata related to the observations and features are
retained along the actual binary indicator matrices.
Compositions#
Build an observation table from a list of cluster sequences. |
|
Build a variable table from an iterable of domains. |
|
Build a compositional matrix from the given domain. |