Skip to content

Commit

Permalink
fix import mellon error
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlitnightly committed Nov 16, 2023
1 parent 78fd560 commit b0ba2a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions omicverse/palantir/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from scipy.sparse import csr_matrix, find, issparse, hstack
from scipy.sparse.linalg import eigs
import mellon
#import mellon
import scanpy as sc

from .core import run_palantir
Expand Down Expand Up @@ -222,7 +222,7 @@ def run_density(
# Set the default arguments for mellon.DensityEstimator
mellon_args = dict()
mellon_args.update(kwargs)

import mellon
dest = mellon.DensityEstimator(**mellon_args)
log_density = np.asarray(dest.fit_predict(X))

Expand Down Expand Up @@ -285,6 +285,7 @@ def run_density_evaluation(
)

X = out_ad.obsm[repr_key]
import mellon
predictor = mellon.Predictor.from_dict(in_ad.uns[predictor_key])
log_density = predictor(X)
out_ad.obs[density_key] = log_density
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "omicverse"
version = "1.5.2"
version = "1.5.3"
description = "OmicVerse: A single pipeline for exploring the entire transcriptome universe"
readme = "README.md"
requires-python = ">=3.8"
Expand Down

0 comments on commit b0ba2a8

Please sign in to comment.