Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#cassiopeia.pl.plot_matplotlib() failed to add meta_data information #241

Closed
jinyongfan opened this issue May 4, 2024 · 2 comments
Closed

Comments

@jinyongfan
Copy link

Hi Matt

I analysis my data with cassiopeia recently. When I used cas.pl.plot_matplotlib(cas_tree, orient='right', allele_table=allele_table,meta_data='Sample',add_root=True) to add tree meta_data information, PlottingError: Meta data item not in CassiopeiaTree cell meta. BUT I check that cas_tree.cell_meta.Sample saved in cas_tree object. ALSO, cas.pl.plot_matplotlib(cas_tree, orient='right', allele_table=allele_table,add_root=True) plotting successfully. I wondered that if there were something I missed when I added meta_data?

@jinyongfan
Copy link
Author

the meta_data format should be a list cas.pl.plot_matplotlib(cas_tree, orient='right', allele_table=allele_table,meta_data=["Sample"],add_root=True)
I make it.

@mattjones315
Copy link
Collaborator

Hi @jinyongfan , thanks for posting this issue and producing a solution. I've also fixed this in #240 so that you can pass in a single string and it will be plotted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants