Closed TJonCooper closed 8 months ago
I have tried to replicate the error and it seems to be related to the true_label parameter.
When initialising the via object, I have set the true_label using adata.obs["label"] which will create a series object which causes the consequent problem with draw_differentiation_flow(). You can try to fix the problem by converting the series to a list object using true_label=list(adata.obs["label"]).
Firstly, thanks for a great package! I'm attempting to run via.plot_differentiation_flow but encountering a few issues that I'm not able to make sense of.
PyVIA version: 0.1.96
From my VIA object:
My VIA object:
There are (23) terminal clusters corresponding to unique lineages {7: 'Memory B', 9: 'CD14 Mono', 10: 'CD14 Mono', 19: 'CD14 Mono', 21: 'Memory B', 23: 'transitional B', 28: 'Memory B', 30: 'CD16 Mono', 31: 'Late Eryth', 36: 'CD14 Mono', 40: 'Late Eryth', 41: 'Memory B', 42: 'Memory B', 43: 'Late Eryth', 44: 'CD14 Mono', 45: 'cDC2', 46: 'pDC', 51: 'cDC2', 52: 'CD16 Mono', 53: 'Memory B', 54: 'Late Eryth', 55: 'CD16 Mono', 56: 'pDC'}
The root index, 382 provided by the user belongs to cluster number 16 and corresponds to cell type HSC
And the plot command:
via.plot_differentiation_flow(via_object=v0, marker_lineages=[9], do_log_flow=True, root_cluster_list=[16])
The error and traceback:Any idea what is causing this?