sciv 0.0.79__tar.gz → 0.0.81__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.
- {sciv-0.0.79 → sciv-0.0.81}/PKG-INFO +1 -1
- {sciv-0.0.79 → sciv-0.0.81}/pyproject.toml +1 -1
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/tool/_algorithm_.py +10 -4
- {sciv-0.0.79 → sciv-0.0.81}/.gitignore +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/LICENSE +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/MANIFEST.in +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/README.en.md +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/README.md +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/requirements.txt +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/file/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/file/_read_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/file/_write_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/model/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/model/_core_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_bar_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_barcode_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_box_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_bubble_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_core_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_graph_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_heat_map_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_kde_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_line_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_pie_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_radar_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_scatter_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_venn_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/plot/_violin_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/_anndata_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/_gencode_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/_gsea_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/_scanpy_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/_scvi_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/preprocessing/_snapatac_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/tool/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/tool/_matrix_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/tool/_random_walk_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/util/__init__.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/util/_constant_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/src/sciv/util/_core_.py +0 -0
- {sciv-0.0.79 → sciv-0.0.81}/tests/scivTest/__init__.py +0 -0
|
@@ -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>
|
|
@@ -1024,9 +1024,12 @@ def calculate_fragment_weighted_accessibility(input_data: dict, block_size: int
|
|
|
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
|
-
global_scale_data /= all_sum
|
|
1032
|
+
global_scale_data /= all_sum * 1.0
|
|
1030
1033
|
|
|
1031
1034
|
del all_sum
|
|
1032
1035
|
|
|
@@ -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)
|
|
@@ -1128,9 +1131,12 @@ def calculate_init_score_weight(
|
|
|
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
|
-
global_scale_data /= all_sum
|
|
1139
|
+
global_scale_data /= all_sum * 1.0
|
|
1134
1140
|
|
|
1135
1141
|
del all_sum
|
|
1136
1142
|
|
|
@@ -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_)
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|