cc-mapping 0.2.1__tar.gz → 0.2.3__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.
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/PKG-INFO +1 -1
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/pyproject.toml +1 -1
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/plot.py +11 -4
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/thresholding/sequential.py +11 -6
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/LICENSE +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/README.md +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/__init__.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/core.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/__init__.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/_base.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/_persistence.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/_plotting.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/_preprocessing.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/_random_forest.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/feature_selection/_training.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/manifold.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/preprocess.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/pseudotime.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/thresholding/__init__.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/thresholding/base.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/thresholding/single.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/utils.py +0 -0
- {cc_mapping-0.2.1 → cc_mapping-0.2.3}/src/cc_mapping/utils_v0.py +0 -0
|
@@ -531,14 +531,21 @@ def combine_figures_with_gridspec(
|
|
|
531
531
|
if fig.axes:
|
|
532
532
|
source_ax = fig.axes[0]
|
|
533
533
|
|
|
534
|
-
#
|
|
535
|
-
|
|
534
|
+
# Move artists from the source axes into the combined axes.
|
|
535
|
+
# Each Artist may belong to only ONE figure; calling add_*() on a
|
|
536
|
+
# second figure raises "Can not put single artist in more than one
|
|
537
|
+
# figure". Detach via .remove() first, then re-attach. list(...)
|
|
538
|
+
# snapshots so we don't mutate while iterating.
|
|
539
|
+
for collection in list(source_ax.collections):
|
|
540
|
+
collection.remove()
|
|
536
541
|
ax_combined.add_collection(collection)
|
|
537
542
|
|
|
538
|
-
for line in source_ax.lines:
|
|
543
|
+
for line in list(source_ax.lines):
|
|
544
|
+
line.remove()
|
|
539
545
|
ax_combined.add_line(line)
|
|
540
546
|
|
|
541
|
-
for patch in source_ax.patches:
|
|
547
|
+
for patch in list(source_ax.patches):
|
|
548
|
+
patch.remove()
|
|
542
549
|
ax_combined.add_patch(patch)
|
|
543
550
|
|
|
544
551
|
# Copy limits and properties
|
|
@@ -451,12 +451,17 @@ class SequentialGMM(GaussianMixtureModelBase):
|
|
|
451
451
|
ordered_labels=ordered_labels_processed,
|
|
452
452
|
)
|
|
453
453
|
|
|
454
|
-
# Assign new labels
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
454
|
+
# Assign new labels via per-cell argmax of the (possibly condensed)
|
|
455
|
+
# probability matrix. This is robust to overlapping components: when
|
|
456
|
+
# the threshold-derivation walk produces fewer than N-1 forward
|
|
457
|
+
# transitions (because backward transitions in the sorted-cell
|
|
458
|
+
# sequence get filtered), label assignment used to error out with
|
|
459
|
+
# "labels must equal thresholds + 1". decision_boundaries are still
|
|
460
|
+
# computed above and stored in internal_data for plotting / .uns
|
|
461
|
+
# introspection; only the cell-label assignment switches to argmax.
|
|
462
|
+
class_idx = np.argmax(probs_array, axis=1)
|
|
463
|
+
labels_arr = np.asarray(ordered_labels_processed)
|
|
464
|
+
new_labels = labels_arr[class_idx]
|
|
460
465
|
|
|
461
466
|
# Update labels in-place
|
|
462
467
|
self._update_labels_in_place(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|