Skip to content

Commit

Permalink
add plotting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Apr 25, 2024
1 parent 2ca267c commit 3e5dd74
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions scimap/tests/test_pl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 23 21:22:21 2024
@author: aj
Test plotting functions
"""

import pytest
import os
import anndata as ad
import matplotlib.pyplot as plt

# load data
@pytest.fixture
def adata():
image_path = os.getcwd() + '/scimap/tests/scimapExampleData/scimapExampleData.h5ad'
adata = ad.read_h5ad(image_path)
return adata


# heatmap
def test_heatmap (adata):
from scimap.plotting.heatmap import heatmap
heatmap(adata, groupBy='phenotype', standardScale='column')




# markerCorrelation
# groupCorrelation
# distPlot
# densityPlot2D
# cluster_plots
# umap
# foldchange
# spatial_scatterPlot
# spatial_distance
# spatial_interaction
# spatialInteractionNetwork
# spatial_pscore
# stacked_barplot
# pie
# voronoi


# image_viewer
# addROI_image
# gate_finder

0 comments on commit 3e5dd74

Please sign in to comment.