compute_dissimilarity
Compute a pairwise dissimilarity map between cells from a character matrix, storing the result for phylogeny reconstruction via neighbor-joining or UPGMA.
Instructions
Compute a pairwise dissimilarity map over cells (useful before nj/upgma).
Stores the result in tdata.obsp[key_added]. Returns a short confirmation.
Args: dataset_id: Dataset handle. method: Dissimilarity metric (e.g. nonmissing_hamming, weighted_hamming, hamming). characters_key: obsm key holding the character matrix. key_added: obsp key to store the distance map under.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | nonmissing_hamming | |
| key_added | No | distances | |
| dataset_id | Yes | ||
| characters_key | No | characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |