sciv 0.0.80__py3-none-any.whl → 0.0.81__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
CHANGED
|
@@ -1023,7 +1023,10 @@ def calculate_fragment_weighted_accessibility(input_data: dict, block_size: int
|
|
|
1023
1023
|
|
|
1024
1024
|
ul.log(__name__).info("Calculate expected counts matrix ===> (numerator)")
|
|
1025
1025
|
global_scale_data = vector_multiply_block_storage(row_sum, col_sum, block_size=block_size)
|
|
1026
|
-
|
|
1026
|
+
|
|
1027
|
+
if block_size <= 0:
|
|
1028
|
+
global_scale_data = global_scale_data.astype(np.float32)
|
|
1029
|
+
|
|
1027
1030
|
del row_sum, col_sum
|
|
1028
1031
|
|
|
1029
1032
|
global_scale_data /= all_sum * 1.0
|
|
@@ -1034,7 +1037,7 @@ def calculate_fragment_weighted_accessibility(input_data: dict, block_size: int
|
|
|
1034
1037
|
overlap_matrix = to_dense(overlap_matrix)
|
|
1035
1038
|
global_scale_data = global_scale_data.dot(overlap_matrix)
|
|
1036
1039
|
|
|
1037
|
-
global_scale_data[global_scale_data
|
|
1040
|
+
global_scale_data[global_scale_data == 0] = global_scale_data[global_scale_data != 0].min() / 2
|
|
1038
1041
|
|
|
1039
1042
|
ul.log(__name__).info("Calculate fragment weighted accessibility.")
|
|
1040
1043
|
init_score = to_dense(init_score)
|
|
@@ -1127,7 +1130,10 @@ def calculate_init_score_weight(
|
|
|
1127
1130
|
|
|
1128
1131
|
ul.log(__name__).info("Calculate expected counts matrix ===> (numerator)")
|
|
1129
1132
|
global_scale_data = vector_multiply_block_storage(row_sum, col_sum, block_size=block_size)
|
|
1130
|
-
|
|
1133
|
+
|
|
1134
|
+
if block_size <= 0:
|
|
1135
|
+
global_scale_data = global_scale_data.astype(np.float32)
|
|
1136
|
+
|
|
1131
1137
|
del row_sum, col_sum
|
|
1132
1138
|
|
|
1133
1139
|
global_scale_data /= all_sum * 1.0
|
|
@@ -1139,7 +1145,7 @@ def calculate_init_score_weight(
|
|
|
1139
1145
|
global_scale_data = global_scale_data.dot(overlap_matrix)
|
|
1140
1146
|
del overlap_matrix
|
|
1141
1147
|
|
|
1142
|
-
global_scale_data[global_scale_data
|
|
1148
|
+
global_scale_data[global_scale_data == 0] = global_scale_data[global_scale_data != 0].min() / 2
|
|
1143
1149
|
|
|
1144
1150
|
ul.log(__name__).info("Calculate fragment weighted accessibility.")
|
|
1145
1151
|
_init_trs_ncw_ = to_dense(_init_trs_ncw_)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sciv
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.81
|
|
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=mmkk4cMCzJCziF49RnOuXBiF4frS6aSiwZdUmfDAg4
|
|
|
27
27
|
sciv/preprocessing/_scvi_.py,sha256=ZIDkQ_4deYmzSMiAbu5C3j_jMMl7hBTFLCBXHCNj3B4,10332
|
|
28
28
|
sciv/preprocessing/_snapatac_.py,sha256=Dq8CHF7Psl3CQszaEokQYO56Oe2uzyWOy_cGlaOywfc,27798
|
|
29
29
|
sciv/tool/__init__.py,sha256=WXzHkWt6RgBC3qqD-98nR5wQmt6oC850ox_VpMrapSU,2468
|
|
30
|
-
sciv/tool/_algorithm_.py,sha256=
|
|
30
|
+
sciv/tool/_algorithm_.py,sha256=ab6-fRdAkNzawGBNqER481X5PWUjYPO701ehe1sayEc,48063
|
|
31
31
|
sciv/tool/_matrix_.py,sha256=NDQf7yTuN4_GaKL7jK5i1BGYCIOGFQHcmpWgQkuquK8,24230
|
|
32
32
|
sciv/tool/_random_walk_.py,sha256=98HLa9X2xx3Tj7VKKwQ2oS-CWL7HbOURAXiYKky2OYs,47338
|
|
33
33
|
sciv/util/__init__.py,sha256=nOxZ8if27X7AUJ6hZwTwxOJwIBJb0obWlHjqCzjg_Gc,1964
|
|
34
34
|
sciv/util/_constant_.py,sha256=w0wKQd8guLd1ZTW24_5aECrWsIWDiNQmEpLsWlHar1A,3000
|
|
35
35
|
sciv/util/_core_.py,sha256=ZD2uSnEBHVu0i9TmXWzri_3bXZzYKnIZk818gW3zadE,14751
|
|
36
|
-
sciv-0.0.
|
|
37
|
-
sciv-0.0.
|
|
38
|
-
sciv-0.0.
|
|
39
|
-
sciv-0.0.
|
|
36
|
+
sciv-0.0.81.dist-info/METADATA,sha256=CorsYrplOzaSS5QtIMxMKxXysUkNbRQODcrtLIKp5BE,3465
|
|
37
|
+
sciv-0.0.81.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
38
|
+
sciv-0.0.81.dist-info/licenses/LICENSE,sha256=4UvHVf3qCOZjHLs4LkYz8u96XRpXnZrpTKrkUQPs5_A,1075
|
|
39
|
+
sciv-0.0.81.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|