Skip to content

Commit

Permalink
Edits to base GRN, CCI core
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhu8 committed Mar 4, 2024
1 parent d917a02 commit be1ab6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spateo/tools/CCI_effects_modeling/MuSIC_downstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ def plot_interaction_effect_3D(
self.logger.info(f"{(target_interaction_coef > 0).sum()} {target}-expressing cells affected by {interaction}.")
if n_neighbors_smooth > 0:
from scipy.spatial import cKDTree

tree = cKDTree(coords)
distances, indices = tree.query(coords, k=n_neighbors_smooth + 1)
smoothed_values = np.zeros(len(target_interaction_coef))
Expand Down

0 comments on commit be1ab6d

Please sign in to comment.