YosefLab / Cassiopeia

A Package for Cas9-Enabled Single Cell Lineage Tracing Tree Reconstruction
https://cassiopeia-lineage.readthedocs.io/en/latest/
MIT License
75 stars 24 forks source link

how to display cutsite name in cas.pl.plot_matplotlib #222

Closed tenlives closed 1 year ago

tenlives commented 1 year ago

Hi, image When I use cas.pl.plot_matplotlib function, I want to know which cutsite represent the color bar. May I get some methods from you to display the cutsite?

Thanks!

mattjones315 commented 1 year ago

Hi @tenlives,

Thanks for posting this question. Unfortunately we currently do not have a way of displaying the cutsite names in cas.pl.plot_matplotlib.

One hacky way to get this ordering though is if you were to create an indel lineage profile as so:

lineage_profile = cas.preprocess.utilities.convert_alleletable_to_lineage_profile(allele_table)

The ordering of the displayed intBCs will mirror the columns of that lineage profile. I hope this helps, and we will make a note to work on adding this functionality in a future release.