From 3e5dd74eb006aa3e6e354ecff01da2b11d4bad59 Mon Sep 17 00:00:00 2001 From: Ajit Johnson Nirmal Date: Wed, 24 Apr 2024 20:39:01 -0400 Subject: [PATCH] add plotting tests --- scimap/tests/test_pl.py | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 scimap/tests/test_pl.py diff --git a/scimap/tests/test_pl.py b/scimap/tests/test_pl.py new file mode 100644 index 00000000..ed3118a2 --- /dev/null +++ b/scimap/tests/test_pl.py @@ -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 \ No newline at end of file