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

Cluster composition graph and influential genes in pseudo-time analysis #36

Open
nilesh-iiita opened this issue Jan 25, 2023 · 1 comment

Comments

@nilesh-iiita
Copy link

Hi,

Is there any way I extract the pie composition from the cluster composition graph and information regarding the contribution of genes toward pseudo-time branching from the fine-grained pseudo-time analysis?

Thanks

@Starlitnightly
Copy link

Hi,

You can use this code to solve:

type(v0)#via_object of pyVIA
cluster_i_loc=np.where(np.asarray(v0.labels) == 1)[0]
dict(adata.obs.iloc[cluster_i_loc].value_counts('label'))

cluster_i_loc give the position of the composition of pie chart you interested in adata.obs. If you think this is difficult, you can also try the Pyomic package I developed, which integrates pyVIA, and you can get the composition of a given pie directly via Pyomic.single.pyVIA.get_piechart_dict(label=0, cluster='cell_type'). Let me know if you have any questions or feedback. Thanks!"

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