scikit-bio / scikit-bio

scikit-bio: a community-driven Python library for bioinformatics, providing versatile data structures, algorithms and educational resources.
https://scikit.bio
BSD 3-Clause "New" or "Revised" License
894 stars 268 forks source link

Rename DistanceMatrix and OrdinationResults IDs #1959

Open wasade opened 8 months ago

wasade commented 8 months ago

Currently, it is not easy to rename DistanceMatrix or OrdinationResults IDs. Work around are possible, but exposing a stable .rename(rename_dict, strict=True | False) member method would be pleasant, where strict requires all IDs have a mapping.

constellation99 commented 5 months ago

@Bharath-Sathappan and myself are currently working on this issue. We have implemented rename functions for DistanceMatrix and OrdinationResults and are finishing writing test cases before submitting our pull request.