You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/visualization.rst
+67-12Lines changed: 67 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Visualization and analysis
4
4
==========================
5
5
6
-
Overview
6
+
Plotting
7
7
--------
8
8
9
9
pyABC offers a variety of routines to visualize and analyze results.
@@ -14,26 +14,84 @@ Further, functions to correctly extract statistics, in particular
14
14
on importance samples obtained via ABCSMC, can be found in the
15
15
:ref:`Weighted statistics API documentation <api_weighted_statistics>`.
16
16
17
+
Visualization server
18
+
--------------------
17
19
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.
20
23
21
-
Further, pyABC comes with a web server, which displays lots of useful
22
-
information on the currently running and already completed ABC tasks.
23
24
You can launch it from the command line with
24
25
25
26
.. code-block:: bash
26
27
27
-
abc-server<databasename>
28
+
abc-server-dash
28
29
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>
29
88
30
89
It opens per default a web server on port 5000.
31
90
32
91
You should see something similar to the following:
33
92
34
93
.. image:: server_screenshots/main.png
35
94
36
-
37
95
Via "Go to ABC Run List", you can see all running and finished ABC runs, which you can then inspect in more detail.
38
96
39
97
You can get overviews over the models:
@@ -44,17 +102,14 @@ Information about individual model parameters for each model and time point is a
44
102
45
103
.. image:: server_screenshots/model_detail.png
46
104
47
-
48
-
49
105
Type in the command line
50
106
51
107
.. code-block:: bash
52
108
53
-
abc-server --help
109
+
abc-server-flask --help
54
110
55
111
To get more information on available options, such as selecting another port:
0 commit comments