-
Notifications
You must be signed in to change notification settings - Fork 19
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
how sankey_plot show more than four species #130
Comments
If you have a SAMAP object with four species, you should be able to just pass in a list of the four species IDs into the sankey function. Alternatively, you could try making a chord plot. Could you give me more context about what you're trying to do? |
sankey_plot(MappingTable, align_thr=0.12, species_order = ["gas",'tro','dst',"kdc"]) I pass in a list of the four species IDs, but only “gas” “tro” “dst” display in sankey map. Actually, I want to make a sankey map of seven species, but I failed at sm.run(pairwise=True), probably because the computer is out of memory. I successfully ran through four species, but it cannot display all in sankey_plot. Or how can I modify the parameters in sankey_plot? sankey_plot seems to show only three species at most. |
Can you display screenshot |
mapping_scores_example.csv |
I had the same issue |
Hi, did you solve this? |
@dnjst @atarashansky As for chord plots, when it comes to several species and cell types, it's hard to read the graph if we group them based on species. It would be better to group them based on the mapping, that is homologous cell type group together. Another way is to draw a heatmap. import numpy as np def sankey_plot2(M, species_order=None, align_thr=0.1, **params):
|
Hi Alec,
How can I display more than four species using a sankey_plot?
Thank you for your help !
The text was updated successfully, but these errors were encountered: