sciv 0.0.106__py3-none-any.whl → 0.0.107__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.
- sciv/tool/_algorithm_.py +4 -0
- sciv/tool/_random_walk_.py +3 -3
- {sciv-0.0.106.dist-info → sciv-0.0.107.dist-info}/METADATA +1 -1
- {sciv-0.0.106.dist-info → sciv-0.0.107.dist-info}/RECORD +6 -6
- {sciv-0.0.106.dist-info → sciv-0.0.107.dist-info}/WHEEL +0 -0
- {sciv-0.0.106.dist-info → sciv-0.0.107.dist-info}/licenses/LICENSE +0 -0
sciv/tool/_algorithm_.py
CHANGED
|
@@ -982,12 +982,16 @@ def overlap_sum(regions: AnnData, variants: dict, trait_info: DataFrame, n_jobs:
|
|
|
982
982
|
# Collect non-zero values
|
|
983
983
|
if matrix_sum.size == 1:
|
|
984
984
|
val = float(matrix_sum)
|
|
985
|
+
|
|
985
986
|
if val != 0:
|
|
986
987
|
local_row_indices.append(row_idx)
|
|
987
988
|
local_col_indices.append(col_idx)
|
|
988
989
|
local_data_vals.append(val)
|
|
990
|
+
|
|
989
991
|
else:
|
|
992
|
+
|
|
990
993
|
for t_idx, v in enumerate(matrix_sum):
|
|
994
|
+
|
|
991
995
|
if v != 0:
|
|
992
996
|
local_row_indices.append(row_idx)
|
|
993
997
|
local_col_indices.append(col_idx + t_idx)
|
sciv/tool/_random_walk_.py
CHANGED
|
@@ -86,7 +86,7 @@ class RandomWalkModel(nn.Module):
|
|
|
86
86
|
self.p = p
|
|
87
87
|
self.pbar = pbar
|
|
88
88
|
|
|
89
|
-
is_gpu_available = check_gpu_availability(
|
|
89
|
+
is_gpu_available = check_gpu_availability()
|
|
90
90
|
|
|
91
91
|
self.device = 'cuda' if (device == 'gpu' or (device == 'auto' and is_gpu_available)) else 'cpu'
|
|
92
92
|
|
|
@@ -197,7 +197,7 @@ def random_walk(
|
|
|
197
197
|
device: str = 'auto'
|
|
198
198
|
) -> matrix_data:
|
|
199
199
|
|
|
200
|
-
availability = check_gpu_availability(
|
|
200
|
+
availability = check_gpu_availability()
|
|
201
201
|
|
|
202
202
|
if device == 'cpu' or (device == 'auto' and not availability):
|
|
203
203
|
sample_count = seed_cell_weight.shape[1]
|
|
@@ -339,7 +339,7 @@ class RandomWalk:
|
|
|
339
339
|
self.benchmark_count = benchmark_count
|
|
340
340
|
self._enrichment_seed_cell_min_count_ = 3
|
|
341
341
|
|
|
342
|
-
self.is_gpu_available = check_gpu_availability(
|
|
342
|
+
self.is_gpu_available = check_gpu_availability()
|
|
343
343
|
|
|
344
344
|
if not is_simple and self.is_ablation:
|
|
345
345
|
if "cell_mutual_knn" not in cc_adata.layers:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sciv
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.107
|
|
4
4
|
Summary: Unveiling the pivotal cell types involved in variant function regulation at a single-cell resolution
|
|
5
5
|
Project-URL: github, https://github.com/YuZhengM/sciv
|
|
6
6
|
Author-email: Zheng-Min Yu <yuzmbio@163.com>
|
|
@@ -27,13 +27,13 @@ sciv/preprocessing/_scanpy_.py,sha256=95kt6ylfqKmjLr8GZ1XH1khP9Q3uBYy4vqc4_2Zf1J
|
|
|
27
27
|
sciv/preprocessing/_scvi_.py,sha256=RfphdljTzA0sNuae44rKuP8YCOv5Cl23e6txCIXK_mI,11544
|
|
28
28
|
sciv/preprocessing/_snapatac_.py,sha256=Dq8CHF7Psl3CQszaEokQYO56Oe2uzyWOy_cGlaOywfc,27798
|
|
29
29
|
sciv/tool/__init__.py,sha256=WgyiWuCvBadTZfNEB70VurbN1YfpNodnVCIcAABTYEA,2512
|
|
30
|
-
sciv/tool/_algorithm_.py,sha256=
|
|
30
|
+
sciv/tool/_algorithm_.py,sha256=pQuCI7Jxdnd6KxenFNIx6iVHR2_UK04oyDleP5aOuPU,53690
|
|
31
31
|
sciv/tool/_matrix_.py,sha256=SnC3sXic_ufuEXStcD_HncvYH6apBdNK6nhG6jFLmjA,24324
|
|
32
|
-
sciv/tool/_random_walk_.py,sha256=
|
|
32
|
+
sciv/tool/_random_walk_.py,sha256=M73RmnP-CZAiIxMl5YfkP6wkH2xQ10dCkjfwsJTKrBQ,48889
|
|
33
33
|
sciv/util/__init__.py,sha256=nER-hRRaBGl3CGgl2rLZAUOQ3uY6-m9wQ9VNrjO5EFE,2014
|
|
34
34
|
sciv/util/_constant_.py,sha256=w0wKQd8guLd1ZTW24_5aECrWsIWDiNQmEpLsWlHar1A,3000
|
|
35
35
|
sciv/util/_core_.py,sha256=00v5MrSqZxLnJvbfijD7DuR7innW_R0J6CAwivAsNNs,16767
|
|
36
|
-
sciv-0.0.
|
|
37
|
-
sciv-0.0.
|
|
38
|
-
sciv-0.0.
|
|
39
|
-
sciv-0.0.
|
|
36
|
+
sciv-0.0.107.dist-info/METADATA,sha256=COiUTIK3Dd14FAZBJWZDwnDQPQ0JSsXZ5I_3k9x2fC8,3495
|
|
37
|
+
sciv-0.0.107.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
38
|
+
sciv-0.0.107.dist-info/licenses/LICENSE,sha256=4UvHVf3qCOZjHLs4LkYz8u96XRpXnZrpTKrkUQPs5_A,1075
|
|
39
|
+
sciv-0.0.107.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|