mushi.utils

Utility functions.

Functions

C

The combinatorial matrix \(\mathbf C\) defined in the paper's appendix.

M

The matrix \(\mathbf M\) defined in the paper's appendix

fold

transform SFS to folded SFS.

misid_partners

Ancestral state misidentification partner indices.

mutype_misid

mutation type misidentification operator.

revcomp

Reverse complement of nucleotide sequence.

tmrca_sf

The survival function of the TMRCA at each time point.