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

kpy.plot_cpdb - plot interacting pair rather than genes #71

Closed
elise-smith opened this issue Jul 2, 2024 · 7 comments
Closed

kpy.plot_cpdb - plot interacting pair rather than genes #71

elise-smith opened this issue Jul 2, 2024 · 7 comments

Comments

@elise-smith
Copy link

Thank you for the great package!
For kpy.plot_cpdb, I have been specifying genes of interest, but sometimes it would be more useful to plot specific interacting pairs of ligands/receptors.
Could there be an option to plot the interacting_pair, rather than just genes?
Many thanks

@zktuong
Copy link
Owner

zktuong commented Jul 2, 2024

hi @elise-smith, sure i can make that happen but may take some time.

To clarify, the behaviour you want is to specify e.g. ["CPI-SC0B5CEA47D", "CPI-SC0C8B7BCBB"] and it will plot it accordingly? do you still want it to display as the gene names in the final output?

@zktuong
Copy link
Owner

zktuong commented Jul 2, 2024

OH wait you mean you just want e.g. TNF-TNFR?

@elise-smith
Copy link
Author

Thank you for your quick reply!
Sorry, I just realised that the genes option takes ligand receptor pairs, as well as individual genes, which was what I was looking for
Thanks again

@zktuong
Copy link
Owner

zktuong commented Jul 2, 2024

well, kinda. the current way it works is it does a regex grab but it's not specific to a specific interacting pair.

I'm going to make a PR soon in the next 5 min and you can try the new option to specify the specify pair's name.

@zktuong
Copy link
Owner

zktuong commented Jul 2, 2024

you can try it now with:

pip install git+https://www.github.com/zktuong/ktplotspy@add-interacting-pairs-option

@elise-smith
Copy link
Author

Just tested it out on a few interacting pairs and it works well!
Thank you very much

@zktuong
Copy link
Owner

zktuong commented Jul 5, 2024

solved with #72

@zktuong zktuong closed this as completed Jul 5, 2024
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