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

New Violin Plot Function (analogous to scanpy: sc.pl.stacked_violin with identity on y axis #109

Open
2 of 4 tasks
samuel-marsh opened this issue Jun 26, 2023 · 0 comments
Assignees
Labels
enhancement Enhance existing function/feature New Feature New feature to add

Comments

@samuel-marsh
Copy link
Owner

samuel-marsh commented Jun 26, 2023

Create a new violin plot function that allows for plotting of vertical violins with identities stacked on the y axis and features on the x axis. Colored by continuous gradient based on gene expression in identity.

Example:
Figure 2E: https://www.science.org/doi/10.1126/science.abl5197#F2
New scCustomize Feature

Code:
https://zenodo.org/record/6334988
TICA_04_myeloid.ipynb
sc.pl.stacked_violin(migDC_subset, var_names=['CRLF2','CCL17','CSF2RA','GPR157','CCL22','SPRED2','EBI3','AIRE','PDLIM4','ROR2','LZTFL1'], figsize=(8,3), groupby='organ_code',title='Migratory DCs', cmap='GnBu', standard_scale='var', categories_order=['LNG','LLN','MLN'])

  • New fetch and organize data function
  • Test best value to use for fill
  • Enable aesthetic stacking to match Stacked_VlnPlot
  • If possible wrap into current scCustomize VlnPlots with logical parameter (identity_y_axis?). (Need to ensure it is not confusing with flip parameter that creates hortizontal violins.
@samuel-marsh samuel-marsh added enhancement Enhance existing function/feature New Feature New feature to add labels Jun 26, 2023
@samuel-marsh samuel-marsh self-assigned this Jun 26, 2023
@samuel-marsh samuel-marsh changed the title New Violin Plot Function (analogous to scanpy: sc.pl.stacked_violin New Violin Plot Function (analogous to scanpy: sc.pl.stacked_violin with identity on y axis Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance existing function/feature New Feature New feature to add
Projects
None yet
Development

No branches or pull requests

1 participant