sciv 0.0.94__tar.gz → 0.0.95__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.94 → sciv-0.0.95}/PKG-INFO +1 -1
- {sciv-0.0.94 → sciv-0.0.95}/pyproject.toml +1 -1
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_scatter_.py +21 -14
- {sciv-0.0.94 → sciv-0.0.95}/.gitignore +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/LICENSE +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/MANIFEST.in +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/README.en.md +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/README.md +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/requirements.txt +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/file/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/file/_read_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/file/_write_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/model/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/model/_core_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_bar_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_barcode_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_box_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_bubble_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_core_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_graph_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_heat_map_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_kde_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_line_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_pie_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_radar_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_venn_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/plot/_violin_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/_anndata_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/_gencode_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/_gsea_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/_scanpy_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/_scvi_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/preprocessing/_snapatac_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/tool/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/tool/_algorithm_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/tool/_matrix_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/tool/_random_walk_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/util/__init__.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/util/_constant_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/src/sciv/util/_core_.py +0 -0
- {sciv-0.0.94 → sciv-0.0.95}/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.95
|
|
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>
|
|
@@ -8,6 +8,7 @@ import numpy as np
|
|
|
8
8
|
import pandas as pd
|
|
9
9
|
from anndata import AnnData
|
|
10
10
|
from matplotlib import pyplot as plt
|
|
11
|
+
from matplotlib.colors import ListedColormap
|
|
11
12
|
from pandas import DataFrame
|
|
12
13
|
import seaborn as sns
|
|
13
14
|
|
|
@@ -165,8 +166,10 @@ def scatter_3d(
|
|
|
165
166
|
title: str = None,
|
|
166
167
|
width: float = 7,
|
|
167
168
|
height: float = 7,
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
elev: float = 30,
|
|
170
|
+
azim: float = -60,
|
|
171
|
+
is_add_legend: bool = True,
|
|
172
|
+
cmap: Union[str, ListedColormap] = 'tab20',
|
|
170
173
|
font_size: int = 14,
|
|
171
174
|
edge_color: str = None,
|
|
172
175
|
size: Union[float, collection] = 0.1,
|
|
@@ -180,8 +183,8 @@ def scatter_3d(
|
|
|
180
183
|
ul.log(__name__).error(f"At least one of the `output` and `show` parameters is required")
|
|
181
184
|
raise ValueError(f"At least one of the `output` and `show` parameters is required")
|
|
182
185
|
|
|
183
|
-
fig
|
|
184
|
-
fig.
|
|
186
|
+
fig = plt.figure(figsize=(width, height))
|
|
187
|
+
ax = fig.add_subplot(projection='3d')
|
|
185
188
|
|
|
186
189
|
hue_cat = pd.Categorical(df[hue])
|
|
187
190
|
|
|
@@ -196,6 +199,9 @@ def scatter_3d(
|
|
|
196
199
|
**kwargs
|
|
197
200
|
)
|
|
198
201
|
|
|
202
|
+
# angle of view
|
|
203
|
+
ax.view_init(elev=elev, azim=azim)
|
|
204
|
+
|
|
199
205
|
if x_name is not None:
|
|
200
206
|
ax.set_xlabel(x_name, fontsize=font_size)
|
|
201
207
|
|
|
@@ -208,16 +214,17 @@ def scatter_3d(
|
|
|
208
214
|
if title is not None:
|
|
209
215
|
ax.set_title(title, fontsize=font_size)
|
|
210
216
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
217
|
+
if is_add_legend:
|
|
218
|
+
unique_types = hue_cat.categories
|
|
219
|
+
legend_elements = [
|
|
220
|
+
plt.Line2D(
|
|
221
|
+
[0], [0], marker='o', color='w', label=type_,
|
|
222
|
+
markerfacecolor=scatter.cmap(scatter.norm(i))
|
|
223
|
+
)
|
|
224
|
+
for i, type_ in enumerate(unique_types)
|
|
225
|
+
]
|
|
226
|
+
|
|
227
|
+
ax.legend(handles=legend_elements, title=legend_name, loc='upper left')
|
|
221
228
|
|
|
222
229
|
plot_end(fig, None, None, None, output, show, close)
|
|
223
230
|
|
|
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
|