Skip to content

Commit 9129acb

Browse files
authored
Merge pull request #831 from scverse/niche_definitions
Add function for calculating niches
2 parents dd5b672 + a7730d0 commit 9129acb

File tree

10 files changed

+1022
-30
lines changed

10 files changed

+1022
-30
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ jobs:
9090
DISPLAY: :42
9191
run: |
9292
tox -vv
93-
94-
- name: List figures for potential debugging
95-
ls -alh /home/runner/work/squidpy/squidpy/tests/figures
93+
# check if this can be deprecated
94+
#- name: List figures for potential debugging
95+
# ls -alh /home/runner/work/squidpy/squidpy/tests/figures
9696

9797
- name: Archive figures generated during testing
9898
if: always()

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fail_fast: false
22
default_stages:
3-
- pre-commit
4-
- pre-push
3+
- commit
4+
- push
55
minimum_pre_commit_version: 2.9.3
66
repos:
77
- repo: https://github.com/astral-sh/ruff-pre-commit

src/squidpy/_constants/_constants.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,12 @@ class TenxVersions(str, ModeEnum):
123123
V1 = "1.1.0"
124124
V2 = "1.2.0"
125125
V3 = "1.3.0"
126+
127+
128+
@unique
129+
class NicheDefinitions(ModeEnum):
130+
NEIGHBORHOOD = "neighborhood"
131+
UTAG = "utag"
132+
CELLCHARTER = "cellcharter"
133+
SPOT = "spot"
134+
BANKSY = "banksy"

src/squidpy/gr/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from squidpy.gr._build import mask_graph, spatial_neighbors
66
from squidpy.gr._ligrec import ligrec
77
from squidpy.gr._nhood import centrality_scores, interaction_matrix, nhood_enrichment
8+
from squidpy.gr._niche import calculate_niche
89
from squidpy.gr._ppatterns import co_occurrence, spatial_autocorr
910
from squidpy.gr._ripley import ripley
1011
from squidpy.gr._sepal import sepal

0 commit comments

Comments
 (0)