cytocommunity2 0.1.7__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cytocommunity2-0.1.7/src/cytocommunity2.egg-info → cytocommunity2-0.1.8}/PKG-INFO +1 -1
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/pyproject.toml +1 -1
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/__init__.py +1 -1
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/config.py +1 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/cca.py +1 -1
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/within.py +1 -1
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/moran.py +7 -10
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8/src/cytocommunity2.egg-info}/PKG-INFO +1 -1
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/LICENSE +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/README.md +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/setup.cfg +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/colors.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/__init__.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/coherence.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/__init__.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/between.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/utils.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/differential_composition.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/dominant_celltype.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/__init__.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/cn_selection.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/coherence.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/common.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/communication.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/composition.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/dominant.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/dotplots.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/recurrence.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/runtime.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/ensemble.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/learning/__init__.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/learning/api.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/learning/dataset.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/learning/model.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/learning/selection.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/learning/training.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/paths.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/visualization/__init__.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/visualization/spatial.py +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2.egg-info/SOURCES.txt +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2.egg-info/dependency_links.txt +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2.egg-info/requires.txt +0 -0
- {cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2.egg-info/top_level.txt +0 -0
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/cca.py
RENAMED
|
@@ -107,7 +107,7 @@ def run_cca_for_scores(
|
|
|
107
107
|
extreme = 0
|
|
108
108
|
valid_count = 0
|
|
109
109
|
invalid_count = 0
|
|
110
|
-
for _ in range(communication_params["
|
|
110
|
+
for _ in range(communication_params["cca_n_permutations"]):
|
|
111
111
|
shuffled_y = rng.permutation(y_matrix)
|
|
112
112
|
permutation_model = CCA(
|
|
113
113
|
n_components=min(
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/within.py
RENAMED
|
@@ -245,7 +245,7 @@ def run_within_cn_analysis(config, *, input_file=None, output_dir=None):
|
|
|
245
245
|
cn_order=cn_order,
|
|
246
246
|
celltype_order=celltype_order,
|
|
247
247
|
min_samples=params["minimum_samples"],
|
|
248
|
-
n_permutations=params["
|
|
248
|
+
n_permutations=params["within_cn_n_permutations"],
|
|
249
249
|
max_attempt_multiplier=params["permutation_max_attempt_multiplier"],
|
|
250
250
|
base_seed=config.random_seed,
|
|
251
251
|
)
|
|
@@ -56,9 +56,7 @@ def build_distance_weights(coordinates, distance_threshold):
|
|
|
56
56
|
return weights
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
def calculate_celltype_moran(
|
|
60
|
-
cell_type_series, weights, minimum_positive_count, permutations
|
|
61
|
-
):
|
|
59
|
+
def calculate_celltype_moran(cell_type_series, weights, minimum_positive_count):
|
|
62
60
|
"""Calculate Moran's I for every eligible cell type in one CN."""
|
|
63
61
|
try:
|
|
64
62
|
from esda.moran import Moran
|
|
@@ -75,7 +73,7 @@ def calculate_celltype_moran(
|
|
|
75
73
|
positive_count = int(indicator.sum())
|
|
76
74
|
if positive_count < minimum_positive_count or positive_count == n_cells:
|
|
77
75
|
continue
|
|
78
|
-
moran = Moran(indicator, weights, permutations=
|
|
76
|
+
moran = Moran(indicator, weights, permutations=0)
|
|
79
77
|
rows.append(
|
|
80
78
|
{
|
|
81
79
|
"CellType": cell_type,
|
|
@@ -116,12 +114,11 @@ def calculate_sample_moran_frame(
|
|
|
116
114
|
)
|
|
117
115
|
if weights.sparse.nnz == 0:
|
|
118
116
|
continue
|
|
119
|
-
for result in calculate_celltype_moran(
|
|
120
|
-
cn_frame["Cell_Type"],
|
|
121
|
-
weights,
|
|
122
|
-
moran_params["minimum_positive_count"],
|
|
123
|
-
|
|
124
|
-
):
|
|
117
|
+
for result in calculate_celltype_moran(
|
|
118
|
+
cn_frame["Cell_Type"],
|
|
119
|
+
weights,
|
|
120
|
+
moran_params["minimum_positive_count"],
|
|
121
|
+
):
|
|
125
122
|
rows.append(
|
|
126
123
|
{
|
|
127
124
|
"Sample": str(sample_name),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/between.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/communication/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/dominant_celltype.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/__init__.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/cn_selection.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/coherence.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/common.py
RENAMED
|
File without changes
|
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/composition.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/dominant.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/dotplots.py
RENAMED
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2/downstream/plotting/recurrence.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cytocommunity2-0.1.7 → cytocommunity2-0.1.8}/src/cytocommunity2.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|