Skip to content

Commit

Permalink
feat(tests): Added test for compute_metacell function.
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Aivazidis <alexander.aivazidis@sanger.ac.uk>
  • Loading branch information
AlexanderAivazidis committed Aug 26, 2024
1 parent 73b1b87 commit 725a0bd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pyrovelocity/tests/test_preprocess.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""Tests for `pyrovelocity.tasks.preprocess` module."""


def test_load_preprocess():
from pyrovelocity.tasks import preprocess

print(preprocess.__file__)

def test_compute_metacells():
from pyrovelocity.tasks.preprocess import compute_metacells
from pyrovelocity.tests.synthetic_AnnData import synthetic_AnnData
import scanpy as sc
adata_rna = synthetic_AnnData(seed = 1)
adata_atac = synthetic_AnnData(seed = 2)
sc.tl.pca(adata_rna, n_comps=3)
compute_metacells(adata_rna, adata_atac,
latent_key = 'X_pca',
resolution = 1,
celltype_key = 'cell_type')

0 comments on commit 725a0bd

Please sign in to comment.