mushi.utils.mutype_misid

mutype_misid(mutation_types)[source]

mutation type misidentification operator.

Parameters

mutation_types (List[str]) – list of mutation type strings, e.g. [AAA>ACA, …]

Examples

>>> from mushi import utils
>>> utils.mutype_misid(['TCC>TTC', 'GAA>GGA', None])
DeviceArray([[0., 1., 0.],
             [1., 0., 0.],
             [0., 0., 1.]], dtype=float64)
Return type

ndarray