-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthew Jones
authored and
Matthew Jones
committed
Jul 30, 2021
1 parent
bd2db32
commit d5b94ec
Showing
9 changed files
with
199 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
=========== | ||
Data | ||
=========== | ||
.. module:: cassiopeia.data | ||
.. currentmodule:: cassiopeia | ||
|
||
CassiopeiaTrees | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
The main data structure that Cassiopeia uses for all tree-based analyses is the CassiopeiaTree: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
data.CassiopeiaTree | ||
|
||
Utilities | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
We also have several utilities that are useful for working with various data related to phylogenetics: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
data.compute_dissimilarity_map | ||
data.get_lca_characters | ||
data.sample_bootstrap_allele_tables | ||
data.sample_bootstrap_character_matrices | ||
data.to_newick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
=== | ||
API | ||
=== | ||
|
||
|
||
Import Cassiopeia as:: | ||
|
||
import cassiopeia as cas | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
preprocess | ||
data | ||
solver | ||
simulator | ||
plotting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
========== | ||
Plotting | ||
========== | ||
|
||
.. module:: cassiopeia.pl | ||
.. currentmodule:: cassiopeia | ||
|
||
Plotting | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
Currently, our plotting functionality is linked to the rich iTOL framework: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
pl.upload_and_export_itol | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
=========== | ||
Preprocess | ||
=========== | ||
.. module:: cassiopeia.pp | ||
.. currentmodule:: cassiopeia | ||
|
||
Data Preprocessing | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
We have several functions that are part of our pipeline for processing sequencing data from single-cell lineage tracing technologies: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
pp.align_sequences | ||
pp.call_alleles | ||
pp.call_lineage_groups | ||
pp.collapse_umis | ||
pp.convert_fastqs_to_unmapped_bam | ||
pp.error_correct_cellbcs_to_whitelist | ||
pp.error_correct_intbcs_to_whitelist | ||
pp.error_correct_umis | ||
pp.filter_bam | ||
pp.filter_molecule_table | ||
pp.filter_cells | ||
pp.filter_umis | ||
pp.resolve_umi_sequence | ||
|
||
|
||
|
||
|
||
Data Utilities | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
We also have several functions that are useful for converting between data formats for downstream analyses: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
pp.compute_empirical_indel_priors | ||
pp.convert_alleletable_to_character_matrix | ||
pp.convert_alleletable_to_lineage_profile | ||
pp.convert_lineage_profile_to_character_matrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
=========== | ||
Simulator | ||
=========== | ||
.. module:: cassiopeia.sim | ||
.. currentmodule:: cassiopeia | ||
|
||
|
||
Our simulators for cassiopeia are split up into those that simulate topologies and those that simulate data on top of the topologies. | ||
|
||
Tree Simulators | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
We have several frameworks available for simulating topologies: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
sim.BirthDeathFitnessSimulator | ||
sim.CompleteBinarySimulator | ||
sim.SimpleFitSubcloneSimulator | ||
|
||
|
||
Data Simulators | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
These simulators are subclasses of the `DataSimulator` class and implement the `overlay_data` method which simulates data according to a given topology. | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
sim.Cas9LineageTracingDataSimulator | ||
|
||
Leaf SubSamplers | ||
~~~~~~~~~~~~~~~~~~~ | ||
These are utilities for subsampling lineages for benchmarking purposes. For example, sampling a random proportion of leaves or grouping together cells into clades to model spatial data. | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
sim.SupercellularSampler | ||
sim.UniformLeafSubsampler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
=========== | ||
Solver | ||
=========== | ||
.. module:: cassiopeia.solver | ||
.. currentmodule:: cassiopeia | ||
|
||
CassiopeiaSolvers | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
We have several algorithms available for solving phylogenies: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
solver.HybridSolver | ||
solver.ILPSolver | ||
solver.MaxCutSolver | ||
solver.MaxCutGreedySolver | ||
solver.NeighborJoiningSolver | ||
solver.PercolationSolver | ||
solver.SharedMutationJoiningSolver | ||
solver.SpectralSolver | ||
solver.SpectralGreedySolver | ||
solver.UPGMASolver | ||
solver.VanillaGreedySolver | ||
|
||
|
||
Dissimilarity Maps | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
For use in our distance-based solver and for comparing character states, we also have available several dissimilarity functions: | ||
|
||
.. autosummary:: | ||
:toctree: reference/ | ||
|
||
solver.dissimilarity_functions.cluster_dissimilarity | ||
solver.dissimilarity_functions.hamming_distance | ||
solver.dissimilarity_functions.hamming_similarity_normalized_over_missing | ||
solver.dissimilarity_functions.hamming_similarity_without_missing | ||
solver.dissimilarity_functions.weighted_hamming_distance | ||
solver.dissimilarity_functions.weighted_hamming_similarity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters