From 396a7720d1f222ddc3bf53369d657f93eba6aeec Mon Sep 17 00:00:00 2001 From: Xiaojie Qiu Date: Thu, 6 Jan 2022 17:19:38 -0500 Subject: [PATCH] minor updates --- docs/requirements.txt | 2 +- docs/source/API.rst | 17 ++++++++++------- dynamo/plot/scVectorField.py | 15 +++++++-------- pyproject.toml | 2 +- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index fb36536ef..65f470887 100755 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -8,7 +8,7 @@ ipykernel>=5.1.0 nbsphinx>=0.8.6 pygments>=2.6.1 -numpy>=1.18.1 +numpy>=1.20.0 pandas>=0.25.1 scipy>=1.0 scikit-learn>=0.19.1 diff --git a/docs/source/API.rst b/docs/source/API.rst index 6ad71a446..053c8b3e7 100755 --- a/docs/source/API.rst +++ b/docs/source/API.rst @@ -241,21 +241,24 @@ Vector field (vf) vf.diffusionMatrix -*Vector field graph* - -.. autosummary:: - :toctree: _autosummary - - vf.vfGraph - Prediction (pd) ~~~~~~~~~~~~~~~ .. autosummary:: :toctree: _autosummary + +*Vector field lineage fate* + pd.fate pd.fate_bias + + +*Vector field state graph* + +.. autosummary:: + :toctree: _autosummary + pd.state_graph Plotting (pl) diff --git a/dynamo/plot/scVectorField.py b/dynamo/plot/scVectorField.py index 7b5504242..b992b43ee 100755 --- a/dynamo/plot/scVectorField.py +++ b/dynamo/plot/scVectorField.py @@ -69,9 +69,9 @@ def cell_wise_vectors_3d( save_kwargs: dict = {}, quiver_3d_kwargs: dict = { "zorder": 3, - "length": 2, - "linewidth": 5, - "arrow_length_ratio": 5, + "length": 10, + "linewidth": 1, + "arrow_length_ratio": 0.3, "norm": cm.colors.Normalize(), "cmap": cm.PRGn, }, @@ -292,7 +292,7 @@ def add_axis_label(ax, labels): elif save_show_or_return == "show": plt.show() elif save_show_or_return == "return": - return axes + return axes, (x0, x1, x2, v0, v1, v2) def grid_vectors_3d(): @@ -1687,10 +1687,9 @@ def streamplot_2d(ax): set_arrow_alpha(ax, streamline_alpha) set_stream_line_alpha(s, streamline_alpha) - if type(axes_list) == list: - for i in range(len(axes_list)): - ax = axes_list[i] - streamplot_2d(ax) + for i in range(len(axes_list)): + ax = axes_list[i] + streamplot_2d(ax) if save_show_or_return == "save": s_kwargs = { diff --git a/pyproject.toml b/pyproject.toml index 2cd4da51d..9fd09668a 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ keywords = 'dynamo scslam-seq scrna-seq velocity rna protein vector-field potent license = 'BSD' module = 'dynamo' requires = [ - 'numpy>=1.18.1', + 'numpy>=1.20.0', 'pandas>=0.25.1', 'scipy>=1.0', 'scikit-learn>=0.19.1',