Skip to content

Commit d1542fb

Browse files
Merge pull request #613 from ICB-DCM/develop
Release 0.12.12
2 parents 7cbf832 + cd498ba commit d1542fb

20 files changed

+2090
-20
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ Release Notes
88
...........
99

1010

11+
0.12.12 (2023-08-18)
12+
--------------------
13+
14+
Visualization:
15+
16+
* Dash-based visualization server (#581)
17+
18+
1119
0.12.11 (2023-07-06)
1220
--------------------
1321

14-
Fixes (#608)
22+
Fixes (#608):
1523

1624
* Fix petab test suite (different name resolution)
1725
* Fix LocalTransition (pandas -> numpy argument)

doc/server_screenshots/dash_code.png

6.29 KB
Loading
39.1 KB
Loading

doc/server_screenshots/dash_main.png

73.7 KB
Loading

doc/server_screenshots/dash_meta.png

77.4 KB
Loading

doc/server_screenshots/dash_path.png

9.24 KB
Loading
53 KB
Loading

doc/visualization.rst

Lines changed: 67 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Visualization and analysis
44
==========================
55

6-
Overview
6+
Plotting
77
--------
88

99
pyABC offers a variety of routines to visualize and analyze results.
@@ -14,26 +14,84 @@ Further, functions to correctly extract statistics, in particular
1414
on importance samples obtained via ABCSMC, can be found in the
1515
:ref:`Weighted statistics API documentation <api_weighted_statistics>`.
1616

17+
Visualization server
18+
--------------------
1719

18-
Web-based visualizations
19-
------------------------
20+
pyABC comes with a visualization server based on the data visualization
21+
tool Dash,
22+
to interactively display information on running and completed jobs.
2023

21-
Further, pyABC comes with a web server, which displays lots of useful
22-
information on the currently running and already completed ABC tasks.
2324
You can launch it from the command line with
2425

2526
.. code-block:: bash
2627
27-
abc-server <databasename>
28+
abc-server-dash
2829
30+
By default, this opens a web server on port 8050.
31+
32+
You should see something similar to the following:
33+
34+
.. image:: server_screenshots/dash_main.png
35+
36+
37+
38+
You can upload your database to the server by providing the absolute or relative path to your database file. Please ensure that your database file has a ``.db`` extension.
39+
40+
41+
42+
The duration of the upload process will depend on the size of your database. Upon completion, you will receive a notification message indicating the success or failure of the upload process:
43+
44+
.. image:: server_screenshots/dash_successful.png
45+
46+
If not, then you will receive an error message describing the issue
47+
48+
If the metadata of your file appears, that means your database file was uploaded successfully.
49+
50+
.. image:: server_screenshots/dash_meta.png
51+
52+
After a successful upload, you can select the ID of the specific run you wish to analyze (the first run will be automatically selected by default). Upon selecting the run's ID, the right panel of the page will update to show detailed information about the selected run:
53+
54+
The upper section of the loaded page will contain some general information about the selected run:
55+
56+
.. image:: server_screenshots/dash_details.png
57+
58+
On the lower section, the user can select one of the plots by selecting one of the tabs under ``Run's plots``
59+
60+
Upon selection, the corresponding plot will be displayed. These plots can be adjusted using tools found in the ``Plot configuration`` box. For certain tabs, you may be required to select one or more parameters from a dropdown list.
61+
62+
To save a plot, simply right-click on the plot and choose ``Save image as``.
63+
64+
If you wish to access the code used to generate a specific plot, click on ``Copy code to clipboard`` placed below the figure.
65+
66+
67+
.. image:: server_screenshots/dash_code.png
68+
69+
For further assistance or to explore more available options (like selecting a different port), type the following command into your command line:
70+
71+
72+
.. code-block:: bash
73+
74+
abc-server-dash --help
75+
76+
77+
Visualization server -- using Flask
78+
-----------------------------------
79+
80+
Note: This web-server is deprecated and no longer maintained.
81+
82+
Further, pyABC comes with a web server based on the micro web framework Flask.
83+
You can launch it from the command line with
84+
85+
.. code-block:: bash
86+
87+
abc-server-flask <databasename>
2988
3089
It opens per default a web server on port 5000.
3190

3291
You should see something similar to the following:
3392

3493
.. image:: server_screenshots/main.png
3594

36-
3795
Via "Go to ABC Run List", you can see all running and finished ABC runs, which you can then inspect in more detail.
3896

3997
You can get overviews over the models:
@@ -44,17 +102,14 @@ Information about individual model parameters for each model and time point is a
44102

45103
.. image:: server_screenshots/model_detail.png
46104

47-
48-
49105
Type in the command line
50106

51107
.. code-block:: bash
52108
53-
abc-server --help
109+
abc-server-flask --help
54110
55111
To get more information on available options, such as selecting another port:
56112

57-
58113
.. code-block:: bash
59114
60-
abc-server --port=8888 <databasename>
115+
abc-server-flask --port=8888 <databasename>

pyabc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.12.11'
1+
__version__ = '0.12.12'

pyabc/visserver/assets/pyABC_logo.png

14.3 KB
Loading

0 commit comments

Comments
 (0)