cassiopeia/data/__init__.py
:
High-level description
This file serves as the top-level initialization for thecassiopeia.data
module. It imports and exposes key classes and utility functions from the module, making them easily accessible to users of the Cassiopeia package.
Symbols
CassiopeiaTree
Description
Imports theCassiopeiaTree
class from the CassiopeiaTree
module. This class is the core data structure in Cassiopeia, representing a phylogenetic tree with associated character matrices and metadata.
Utility Functions
Description
Imports several utility functions from theutilities
module. These functions provide various operations and computations related to phylogenetic trees and character matrices.
Imported Functions:
compute_dissimilarity_map
: Computes pairwise dissimilarities between samples in a character matrix.compute_inter_cluster_distances
: Calculates mean distances between categories in a categorical variable.compute_phylogenetic_weight_matrix
: Computes distances or proximities between all leaves in a tree.get_lca_characters
: Builds the character vector of the lowest common ancestor (LCA) of a list of character vectors.net_relatedness_index
: Computes the net relatedness index between two groups of indices.sample_bootstrap_allele_tables
: Generates bootstrap character matrices from an allele table.sample_bootstrap_character_matrices
: Creates bootstrapped character matrices from a given character matrix.to_newick
: Converts a networkx graph to a Newick string representation.
Dependencies
Dependency | Purpose |
---|---|
CassiopeiaTree | Core data structure for phylogenetic trees |
utilities | Module containing various utility functions |
cassiopeia.data
without needing to know the exact submodule structure.