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

Enrichment Visualizations and Visium Polygon Creation #782

Merged
merged 17 commits into from
Oct 25, 2023

Conversation

mattobny
Copy link
Contributor

Added:

  • New File spatial_enrichment_visuals.R
  • New function findCellTypesFromEnrichment() within spatial_enrichment_visuals.R to show most probable cell types based on a provided enrichment
  • New function plotCellTypesFromEnrichment() within spatial_enrichment_visuals.R that generates a bar plot of cell types vs frequency based on a provided enrichment
  • New function pieCellTypesFromEnrichment() within spatial_enrichment_visuals.R that generates a pie chart of cell types based on a provided enrichment
  • New function addVisiumPolygons() within convenience.R (along with its requisite internal functions) that adds circular polygons centered at the spatial locations of a Giotto Object made with Visium data. Takes a Giotto Object and a path to the Visium output file scalefactors_json.json as input arguments.
  • Added addVisiumPolygons() to createGiottoVisiumObject() workflow.

NOTE: Highly advisable to update the installation of GiottoClass to this PR when this update is pulled. This update to GiottoClass ensures addVisiumPolygons() assigns polygon centroids as close as possible to the spatial locations.

R/convenience.R Outdated Show resolved Hide resolved
R/convenience.R Outdated Show resolved Hide resolved
@jiajic jiajic merged commit 0d25631 into drieslab:suite_modular Oct 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants