Skip to content

Commit

Permalink
added to index
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Mar 15, 2024
1 parent 95916a0 commit 9001945
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/Tools Shortcut.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import scimap as sm
| [`sm.pl.image_viewer`](Functions/pl/image_viewer.md) | Integrates with `napari` to offer an interactive platform for enhanced image viewing and annotation with data overlays. |
| [`sm.pl.addROI_image`](Functions/pl/addROI_image.md) | Facilitates the addition of Regions of Interest (ROIs) through `napari`, enriching spatial analyses with precise locational data. |
| [`sm.pl.gate_finder`](Functions/pl/gate_finder.md) | Aids in the manual gating process by overlaying marker positivity on images, simplifying the identification and analysis of cellular subsets. |
| [`sm.pl.heatmap`](Functions/pl/heatmap.md) | Creates heatmaps to visually explore marker expression or feature distributions across different groups. |
| [`sm.pl.distPlot`](Functions/pl/distPlot.md) | Generates distribution plots for specific markers, allowing for the visual comparison of marker expression across different conditions or cell types. |
| [`sm.pl.densityPlot2D`](Functions/pl/densityPlot2D.md) | Creates two-dimensional density plots of marker expressions, facilitating the visualization of expression patterns and densities in a spatial context. |
| [`sm.pl.cluster_plots`](Functions/pl/cluster_plots.md) | Provides a meta-function that outputs a combination of UMAP, heatmap, and ranked markers for each group, offering a comprehensive view of clustering results. |
Expand Down
8 changes: 4 additions & 4 deletions scimap/plotting/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ def heatmap (adata,
Returns a plot, if `saveDir` and `fileName` are provided, the plot is saved in the given directory.
Example:
```python
```python
Example 1: Basic usage with clustering and standard scale by column.
# Example 1: Basic usage with clustering and standard scale by column.
sm.pl.heatmap(adata, groupBy='leiden', standardScale='column')
Example 2: Advanced usage with specified subset markers, custom grouping, and file saving.
# Example 2: Advanced usage with specified subset markers, custom grouping, and file saving.
subsetMarkers = ['ELANE', 'CD57', 'CD45', 'CD11B', 'SMA', 'CD16', 'ECAD']
subsetGroups = ['0', '1', '3', '6']
Expand All @@ -119,7 +119,7 @@ def heatmap (adata,
sm.pl.heatmap(adata, groupBy='leiden', subsetMarkers=subsetMarkers, subsetGroups=subsetGroups, clusterRows=False, clusterColumns=False, standardScale='column', orderRow=orderRow, orderColumn=orderColumn, showPrevalence=True, figsize=(10, 5), saveDir=saveDir, fileName=fileName, vmin=0, vmax=1)
```
```
"""

# load adata
Expand Down

0 comments on commit 9001945

Please sign in to comment.