Skip to content

Commit 197185e

Browse files
fixes for examples
1 parent c5c3e0b commit 197185e

File tree

3 files changed

+45
-17
lines changed

3 files changed

+45
-17
lines changed

src/sbmlsim/sensitivity/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
2323
"""
2424
from .analysis import (
25+
SensitivityAnalysis,
2526
SensitivitySimulation,
2627
SensitivityOutput,
2728
AnalysisGroup,
@@ -36,6 +37,7 @@
3637

3738
__all__ = [
3839
"SensitivityParameter",
40+
"SensitivityAnalysis",
3941
"SensitivitySimulation",
4042
"SensitivityOutput",
4143
"AnalysisGroup",

src/sbmlsim/sensitivity/sensitivity_fast.py

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
11
"""
2-
Global sensitivity analysis using FAST - Fourier Amplitude Sensitivity Test.
3-
4-
Cukier, R.I., Fortuin, C.M., Shuler, K.E., Petschek, A.G., Schaibly,
5-
J.H., 1973. Study of the sensitivity of coupled reaction systems to uncertainties
6-
in rate coefficients. I theory. Journal of Chemical Physics 59, 3873-3878. https://doi.org/10.1063/1.1680571
7-
Saltelli, A., S. Tarantola, and K. P.-S. Chan (1999). A Quantitative
8-
Model-Independent Method for Global Sensitivity Analysis of Model Output.
9-
Technometrics, 41(1):39-56, doi:10.1080/00401706.1999.10485594.
10-
2+
Global sensitivity analysis using FAST (Fourier Amplitude Sensitivity Test).
3+
4+
This module implements variance-based global sensitivity analysis using the
5+
Fourier Amplitude Sensitivity Test (FAST). FAST quantifies the contribution of
6+
individual model parameters to the variance of model outputs by mapping
7+
parameter variations onto periodic functions and analyzing the resulting
8+
output spectrum in the frequency domain.
9+
10+
The method provides efficient estimation of first-order (main-effect)
11+
sensitivity indices and, in extended variants (eFAST), total-effect indices.
12+
Compared to Monte Carlo–based Sobol methods, FAST offers favorable scaling with
13+
the number of parameters and is well suited for medium- to large-scale
14+
deterministic models.
15+
16+
The implementation is intended for use in computational modeling workflows,
17+
including systems biology, pharmacokinetics/pharmacodynamics, and digital twin
18+
applications, where robust global assessment of parameter influence is required.
19+
20+
References
21+
----------
22+
Cukier, R. I., Fortuin, C. M., Shuler, K. E., Petschek, A. G., & Schaibly, J. H. (1973).
23+
Study of the sensitivity of coupled reaction systems to uncertainties in rate
24+
coefficients. I. Theory.
25+
Journal of Chemical Physics, 59, 3873–3878.
26+
https://doi.org/10.1063/1.1680571
27+
28+
Saltelli, A., Tarantola, S., & Chan, K. P.-S. (1999).
29+
A quantitative model-independent method for global sensitivity analysis of
30+
model output.
31+
Technometrics, 41(1), 39–56.
32+
https://doi.org/10.1080/00401706.1999.10485594
1133
"""
1234

1335
from pathlib import Path
@@ -19,12 +41,14 @@
1941
from SALib import ProblemSpec
2042
from SALib.analyze import fast
2143
from SALib.sample import fast_sampler
22-
from matplotlib import pyplot as plt
2344
from pymetadata.console import console
2445

25-
from sbmlsim.sensitivity.analysis import SensitivityAnalysis, SensitivitySimulation, \
26-
AnalysisGroup
27-
from sbmlsim.sensitivity.parameters import SensitivityParameter
46+
from sbmlsim.sensitivity import (
47+
SensitivityAnalysis,
48+
SensitivitySimulation,
49+
SensitivityParameter,
50+
AnalysisGroup,
51+
)
2852
from sbmlsim.sensitivity.plots import plot_S1_ST_indices
2953

3054

src/sbmlsim/sensitivity/sensitivity_sobol.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@
5555
from SALib import ProblemSpec
5656
from SALib.analyze import sobol
5757
from SALib.sample import saltelli
58-
from matplotlib import pyplot as plt
5958
from pymetadata.console import console
6059

61-
from sbmlsim.sensitivity.analysis import SensitivityAnalysis, SensitivitySimulation, \
62-
AnalysisGroup
63-
from sbmlsim.sensitivity.parameters import SensitivityParameter
60+
from sbmlsim.sensitivity import (
61+
SensitivityAnalysis,
62+
SensitivitySimulation,
63+
SensitivityParameter,
64+
AnalysisGroup,
65+
)
6466
from sbmlsim.sensitivity.plots import plot_S1_ST_indices
6567

6668

0 commit comments

Comments
 (0)