This directory contains unit tests for the data module of the Cassiopeia project, which is likely a framework for phylogenetic analysis and lineage tracing. The tests cover various functionalities related to character matrices, tree topologies, bootstrapping, and utility functions used in phylogenetic analysis.
These tests ensure that the core data handling and manipulation functions of Cassiopeia work correctly. They verify:
Character matrix operations: Creating, modifying, and analyzing matrices that represent genetic or cellular states.
Tree topology handling: Converting trees to Newick format, reconstructing trees from character matrices, and manipulating tree structures.
Bootstrapping: Sampling techniques for character matrices and allele tables to assess statistical confidence.
Phylogenetic calculations: Computing least common ancestor characters, phylogenetic weight matrices, and inter-cluster distances.
Layer operations: Adding and managing different layers of data in the phylogenetic analysis.
These tests help maintain the reliability and accuracy of the Cassiopeia framework, ensuring that researchers can trust the results of their lineage tracing and phylogenetic analyses.
This setup creates a basic character matrix and tree topology used across multiple test cases in the TestLayers class.The tests cover a wide range of scenarios and edge cases, ensuring robust functionality of the Cassiopeia framework. They include checks for error handling, such as raising appropriate exceptions when invalid inputs are provided:
Overall, these tests play a crucial role in maintaining the reliability and accuracy of the Cassiopeia framework for phylogenetic analysis and lineage tracing.