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

How to visualize multiple cell type in a single figure? #20

Open
CyrusWang57 opened this issue Jul 19, 2023 · 2 comments
Open

How to visualize multiple cell type in a single figure? #20

CyrusWang57 opened this issue Jul 19, 2023 · 2 comments

Comments

@CyrusWang57
Copy link

CyrusWang57 commented Jul 19, 2023

image
Hi, thanks to develop this wonderful methods. I just want to know how to produce this type of figure in your article, which shows fractions of multiple cell type. I can't find solution in tutorial and it seems there don't exist this function in the source code?
Look forward to reply! Thanks a lot!

@beibeiru
Copy link
Collaborator

Hi, Chunyi,

Thank you for your question. I have revised the visualization function. Please reinstall our package.
As in the following example, you can assign a list to spatialFeatures.
Please let me know if you have any other concerns.

SpaCET.visualize.spatialFeature(
  SpaCET_obj, 
  spatialType = "CellFraction", 
  spatialFeatures=list(Cancer="Malignant",Stromal=c("CAF","Endothelial"),Immune=c("B cell","T CD4","T CD8","NK"))
)

Best,
Beibei

@CyrusWang57
Copy link
Author

Thank you very much for your quick update and reply! It worked well and helped me a lot!

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