cassiopeia.pp.convert_lineage_profile_to_character_matrix¶
- cassiopeia.pp.convert_lineage_profile_to_character_matrix(lineage_profile, indel_priors=None, missing_state_indicator=- 1)[source]¶
Converts a lineage profile to a character matrix.
Takes in a lineage profile summarizing the explicit indel identities observed at each cut site in a cell and converts this into a character matrix where the indels are abstracted into integers.
Note
The lineage profile is converted directly into a character matrix, without performing any collapsing of duplicate states. Instead, this should have been done in the previous step, when calling
convert_alleletable_to_lineage_profile().