cassiopeia/data
directory houses the core data structures and utility functions for representing and manipulating lineage tracing data in the Cassiopeia framework. This includes the fundamental CassiopeiaTree
class, which encapsulates a phylogenetic tree with associated character matrices, metadata, and methods for tree manipulation and analysis. Additionally, this directory provides utility functions for tasks like data conversion, dissimilarity computation, bootstrapping, and tree traversal.
CassiopeiaTree
class stores the tree topology, character matrix (mutations observed in cells), and metadata associated with cells and characters.CassiopeiaTree
class offers methods for modifying the tree structure, reconstructing ancestral states, and accessing tree properties.sample_bootstrap_character_matrices
generate bootstrapped versions of character matrices for statistical analysis.CassiopeiaTree
class (cassiopeia/data/CassiopeiaTree.py
), which serves as the primary interface for interacting with lineage tracing data. The utility functions in cassiopeia/data/utilities.py
are typically called by the CassiopeiaTree
methods or used directly for specific data manipulation tasks.
CassiopeiaTree
class, the fundamental data structure in Cassiopeia. It stores and manages:
CassiopeiaTree
methods and can also be called directly for specific data manipulation tasks.
Layers
class, which allows storing and managing multiple versions of character matrices within a CassiopeiaTree
object. This is useful for:
Layers
class acts as a dictionary, where keys represent different layers and values are the corresponding character matrices.
cassiopeia/data
directory depends on several external libraries:
cassiopeia.mixins
for error handling and cassiopeia.solver.solver_utilities
for solver-related utilities.