M3Drop 0.4.48__py3-none-any.whl → 0.4.49__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.
@@ -122,9 +122,17 @@ def NBumiPearsonResidualsCombinedCPU(
122
122
  adata_out_approx = anndata.AnnData(obs=adata_in.obs, var=filtered_var)
123
123
  adata_out_approx.write_h5ad(output_filename_approx, compression=None)
124
124
 
125
+ # --- CHUNK SIZE FIX ---
125
126
  # Calculate appropriate H5 storage chunks
126
127
  storage_chunk_rows = int(1_000_000_000 / (ng_filtered * 8))
127
- if storage_chunk_rows < 1: storage_chunk_rows = 1
128
+
129
+ # [CRITICAL FIX] Clamp chunk size to total rows (nc)
130
+ if storage_chunk_rows > nc:
131
+ storage_chunk_rows = nc
132
+
133
+ if storage_chunk_rows < 1:
134
+ storage_chunk_rows = 1
135
+ # ----------------------
128
136
 
129
137
  # Open both files for writing simultaneously
130
138
  with h5py.File(output_filename_full, 'a') as f_full, h5py.File(output_filename_approx, 'a') as f_approx:
@@ -101,8 +101,17 @@ def NBumiPearsonResidualsCombinedGPU(
101
101
  adata_out_approx = anndata.AnnData(obs=adata_in.obs, var=filtered_var)
102
102
  adata_out_approx.write_h5ad(output_filename_approx, compression=None)
103
103
 
104
+ # --- CHUNK SIZE FIX ---
105
+ # Calculate rows needed to fill ~1GB
104
106
  storage_chunk_rows = int(1_000_000_000 / (ng_filtered * 8))
105
- if storage_chunk_rows < 1: storage_chunk_rows = 1
107
+
108
+ # [CRITICAL FIX] Clamp chunk size to total rows (nc)
109
+ if storage_chunk_rows > nc:
110
+ storage_chunk_rows = nc
111
+
112
+ if storage_chunk_rows < 1:
113
+ storage_chunk_rows = 1
114
+ # ----------------------
106
115
 
107
116
  # Open both files for writing simultaneously
108
117
  with h5py.File(output_filename_full, 'a') as f_full, h5py.File(output_filename_approx, 'a') as f_approx:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: M3Drop
3
- Version: 0.4.48
3
+ Version: 0.4.49
4
4
  Summary: A Python implementation of the M3Drop single-cell RNA-seq analysis tool.
5
5
  Home-page: https://github.com/PragalvhaSharma/m3DropNew
6
6
  Author: Tallulah Andrews
@@ -4,11 +4,11 @@ m3Drop/CoreCPU.py,sha256=csRg5TLQx1Sup7k3lDJm9OO5Oe5-1aC3u_6ldE_GIX8,18679
4
4
  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
- m3Drop/NormalizationCPU.py,sha256=Mm8VzWDu-NONbp-ngAt4PLjCKAGc7gJZKf-Yd-U95r0,7255
8
- m3Drop/NormalizationGPU.py,sha256=1XRDZhNVkIbQMv_ggNoNEnIxRMY1NHDjOtOq4QGVRwY,7011
7
+ m3Drop/NormalizationCPU.py,sha256=DmqvjcpHwkNZicEb2GBqTDBVyvtBeUSLmFRwRFDk0ms,7458
8
+ m3Drop/NormalizationGPU.py,sha256=Kl5QvR4HCSgooUOf97-nu53J6wf3apdNvc3BFlTFiEM,7264
9
9
  m3Drop/__init__.py,sha256=W_TQ9P8_7Tdsa6kDZ6IJKT0FMkX_JFvBqiP821CZIrk,2180
10
- m3drop-0.4.48.dist-info/licenses/LICENSE,sha256=44Iqpp8Fc10Xzd5T7cT9UhO31Qftk3gBiCjtpwilP_k,1074
11
- m3drop-0.4.48.dist-info/METADATA,sha256=Q3r9QYqBYVTaBqeK_DUs0-Ygt1zkSz4gGY5G5d2XY8M,5248
12
- m3drop-0.4.48.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
- m3drop-0.4.48.dist-info/top_level.txt,sha256=AEULFEFIgFtAwS-KBlIFoYXrqczX_rwqrEcdK46GIrA,7
14
- m3drop-0.4.48.dist-info/RECORD,,
10
+ m3drop-0.4.49.dist-info/licenses/LICENSE,sha256=44Iqpp8Fc10Xzd5T7cT9UhO31Qftk3gBiCjtpwilP_k,1074
11
+ m3drop-0.4.49.dist-info/METADATA,sha256=aUj_G6pHzrSKr70GwbOptvcAP7HCGviG8hYjq6OiqMk,5248
12
+ m3drop-0.4.49.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ m3drop-0.4.49.dist-info/top_level.txt,sha256=AEULFEFIgFtAwS-KBlIFoYXrqczX_rwqrEcdK46GIrA,7
14
+ m3drop-0.4.49.dist-info/RECORD,,