API#
Import scphylo as:
import scphylo as scp
This package is intended for use after mutation calling and building the input data via our suggested mutation calling pipeline.
Read/Write (io)#
This module provides functions for reading and writing data.
Preprocessing (pp)#
This module provides functions for filtering and preprocessing data.
|
Remove a list of mutations from the data. |
|
Remove a list of cells from the data. |
Remove mutations based on the wild-type status. |
|
Remove mutations based on the mutant status. |
|
|
Bi-filtering to find maximally inforemed submatrix. |
Combine cells in genotype matrix. |
Tools (tl)#
This module provides a high-level API to compute conflict-free solutions and calculate the probability of mutations seeding particular cells.
Solving the noisy input genotype matrix (scphylo-Boost)
|
Trisicell-Boost solver. |
|
Solving using SCITE. |
|
Solving using PhISCS-B (only in single-cell mode, no bulk). |
|
Solving using ScisTree. |
|
Solving using PhISCS-BnB. |
|
Solving using OncoNEM. |
|
Solving using HUNTRESS. |
|
Solving using SiCloneFit. |
|
Solving using SPhyR. |
|
Solving using gpps. |
|
Solving using PhISCS-I (in single-cell mode with bulk and mutation elimination). |
|
Solving using Scelestial. |
Partition function calculation (scphylo-PartF)
|
Calculate the probability of a mutation seeding particular cells. |
Consensus tree building (scphylo-Cons)
|
Build the consensus tree between two tumor progression trees. |
For comparing two phylogenetic trees
|
Ancestor-descendent accuracy. |
|
Different-lineage accuracy. |
|
Multi-labeled tree dissimilarity measure (MLTD). |
|
Tumor phylogeny tree edit distance measure (TPTED). |
|
Commonly Ancestor Sets score. |
|
Distinctly Inherited Sets score. |
|
Triplet-based similarity score. |
|
Robinson-Foulds score. |
|
Genotype-similarity accuracy. |
Plotting (pl)#
This module provides functionality for plotting trees in clonal or dendrogram formats.
|
Draw the tree in clonal format. |
|
Draw the tree in dendro fromat. |
Utils (ul)#
This module provides utility functions.
|
Convert a conflict-free matrix to a tree object. |
|
Convert phylogenetic tree to conflict-free matrix. |
|
Convert the phylogenetic tree to mutation tree. |
|
Hierarchical clustering. |
|
Check conflict-free criteria via Gusfield algorithm. |
|
Check conflict-free criteria via Gusfield algorithm. |
Datasets (datasets)#
This module provides functions for simulating data and accessing published datasets.
|
Return an example for sanity checking and playing with scPhylo. |
|
Simulate single-cell noisy genotype matrix. |
|
Add noise to the input genotype matrix. |
|
Add readcount to the input genotype matrix. |
Mouse Melanoma dataset with 20 sublines. |
|
Human Colorectal Cancer (Patient 1). |
|
|
Human Colorectal Cancer (Patient 2). |
Human Colorectal Cancer. |
|
Human Acute Myeloid Leukemia dataset (Patient 1). |
|
Human Acute Myeloid Leukemia dataset (Patient 2). |
|
Human Acute Lymphocytic Leukemia dataset (Patient 1). |
|
Human Acute Lymphocytic Leukemia dataset (Patient 2). |
|
Human Acute Lymphocytic Leukemia dataset (Patient 3). |
|
Human Acute Lymphocytic Leukemia dataset (Patient 4). |
|
Human Acute Lymphocytic Leukemia dataset (Patient 5). |
|
Human Acute Lymphocytic Leukemia dataset (Patient 6). |
|
High Grade Serous Ovarian Cancer (Patient 2). |
|
High Grade Serous Ovarian Cancer (Patient 3). |
|
High Grade Serous Ovarian Cancer (Patient 9). |
|
High Grade Serous Ovarian Cancer (3 cell lines). |
|
JAK2-Negative Myeloproliferative Neoplasm. |
|
JAK2-Negative Myeloproliferative Neoplasm. |
|
JAK2-Negative Myeloproliferative Neoplasm. |
|
Clear-cell Renal-cell Carcinoma. |
|
Muscle Invasive Bladder Cancer. |
|
Oestrogen-receptor-positive (ER+) Breast Cancer. |
|
Triple-negative Breast Cancer. |