M3Drop 0.4.53__py3-none-any.whl → 0.4.54__py3-none-any.whl
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.
- m3Drop/NormalizationGPU.py +14 -4
- {m3drop-0.4.53.dist-info → m3drop-0.4.54.dist-info}/METADATA +1 -1
- {m3drop-0.4.53.dist-info → m3drop-0.4.54.dist-info}/RECORD +6 -6
- {m3drop-0.4.53.dist-info → m3drop-0.4.54.dist-info}/WHEEL +0 -0
- {m3drop-0.4.53.dist-info → m3drop-0.4.54.dist-info}/licenses/LICENSE +0 -0
- {m3drop-0.4.53.dist-info → m3drop-0.4.54.dist-info}/top_level.txt +0 -0
m3Drop/NormalizationGPU.py
CHANGED
|
@@ -176,6 +176,7 @@ def NBumiPearsonResidualsCombinedGPU(
|
|
|
176
176
|
cupy.get_default_memory_pool().free_all_blocks()
|
|
177
177
|
|
|
178
178
|
# --- VIZ ACCUMULATION 1: RAW MEAN ---
|
|
179
|
+
# Add raw sums to accumulator (column-wise sum)
|
|
179
180
|
acc_raw_sum += cupy.sum(counts_dense, axis=0)
|
|
180
181
|
|
|
181
182
|
# --- VIZ SAMPLING: GENERATE INDICES ---
|
|
@@ -305,17 +306,25 @@ def NBumiPearsonResidualsCombinedGPU(
|
|
|
305
306
|
ax.set_xlabel("Mean Raw Expression (log)")
|
|
306
307
|
ax.set_ylabel("Variance of Residuals (log)")
|
|
307
308
|
ax.legend()
|
|
308
|
-
ax.grid(True, alpha=0.
|
|
309
|
+
ax.grid(True, which='both', linestyle='--', alpha=0.5) # Enhanced Grid
|
|
309
310
|
ax.text(0.5, -0.15, "Goal: Blue dots should form a flat line at y=1",
|
|
310
311
|
transform=ax.transAxes, ha='center', fontsize=9,
|
|
311
312
|
bbox=dict(facecolor='#f0f0f0', edgecolor='black', alpha=0.7))
|
|
312
313
|
|
|
313
|
-
# Plot 3: Distribution
|
|
314
|
+
# Plot 3: Distribution (Histogram + KDE Overlay)
|
|
314
315
|
ax = ax1[1]
|
|
315
316
|
if len(flat_approx) > 100:
|
|
316
317
|
mask_kde = (flat_approx > -10) & (flat_approx < 10)
|
|
317
|
-
|
|
318
|
-
|
|
318
|
+
|
|
319
|
+
# Histograms (The Truth)
|
|
320
|
+
bins = np.linspace(-5, 5, 100)
|
|
321
|
+
ax.hist(flat_approx[mask_kde], bins=bins, color='red', alpha=0.2, density=True, label='_nolegend_')
|
|
322
|
+
ax.hist(flat_full[mask_kde], bins=bins, color='blue', alpha=0.2, density=True, label='_nolegend_')
|
|
323
|
+
|
|
324
|
+
# KDEs (The Trend)
|
|
325
|
+
sns.kdeplot(flat_approx[mask_kde], fill=False, color='red', linewidth=2, label='Approx', ax=ax, warn_singular=False)
|
|
326
|
+
sns.kdeplot(flat_full[mask_kde], fill=False, color='blue', linewidth=2, label='Full', ax=ax, warn_singular=False)
|
|
327
|
+
|
|
319
328
|
ax.set_xlim(-5, 5)
|
|
320
329
|
ax.set_title("Distribution of Residuals")
|
|
321
330
|
ax.set_xlabel("Residual Value")
|
|
@@ -335,6 +344,7 @@ def NBumiPearsonResidualsCombinedGPU(
|
|
|
335
344
|
|
|
336
345
|
if len(flat_approx) > 0:
|
|
337
346
|
ax2.scatter(flat_approx, flat_full, s=1, alpha=0.5, color='purple')
|
|
347
|
+
|
|
338
348
|
lims = [
|
|
339
349
|
np.min([ax2.get_xlim(), ax2.get_ylim()]),
|
|
340
350
|
np.max([ax2.get_xlim(), ax2.get_ylim()]),
|
|
@@ -5,10 +5,10 @@ m3Drop/CoreGPU.py,sha256=6LToLuWyHxX_7sC2z0Xnvy_qqgmpew5DmnCV0PxmTZQ,19785
|
|
|
5
5
|
m3Drop/DiagnosticsCPU.py,sha256=l0Imkh3F3zo4ovihUjx7cYWYgzPdztWCN1hcBFO43nY,12943
|
|
6
6
|
m3Drop/DiagnosticsGPU.py,sha256=bsatHyHszgbufneeJvFvHBTLzDuY006nP2yHPHs8s7M,14389
|
|
7
7
|
m3Drop/NormalizationCPU.py,sha256=DmqvjcpHwkNZicEb2GBqTDBVyvtBeUSLmFRwRFDk0ms,7458
|
|
8
|
-
m3Drop/NormalizationGPU.py,sha256=
|
|
8
|
+
m3Drop/NormalizationGPU.py,sha256=Y6RxfK6L907EQq8PoQADLmpMlXS_Vl1QiitqehgGcAw,15250
|
|
9
9
|
m3Drop/__init__.py,sha256=W_TQ9P8_7Tdsa6kDZ6IJKT0FMkX_JFvBqiP821CZIrk,2180
|
|
10
|
-
m3drop-0.4.
|
|
11
|
-
m3drop-0.4.
|
|
12
|
-
m3drop-0.4.
|
|
13
|
-
m3drop-0.4.
|
|
14
|
-
m3drop-0.4.
|
|
10
|
+
m3drop-0.4.54.dist-info/licenses/LICENSE,sha256=44Iqpp8Fc10Xzd5T7cT9UhO31Qftk3gBiCjtpwilP_k,1074
|
|
11
|
+
m3drop-0.4.54.dist-info/METADATA,sha256=_EO2kAiscwMTDamIgELDn5qsv3G3sPCcUHP6QnFxYZc,5248
|
|
12
|
+
m3drop-0.4.54.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
+
m3drop-0.4.54.dist-info/top_level.txt,sha256=AEULFEFIgFtAwS-KBlIFoYXrqczX_rwqrEcdK46GIrA,7
|
|
14
|
+
m3drop-0.4.54.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|