Repository navigation
Expand file tree
/
Copy pathconfig.toml
More file actions
94 lines (76 loc) · 2.99 KB
/
Copy pathconfig.toml
File metadata and controls
94 lines (76 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# ============================================================
# Global project paths and settings
# ============================================================
# Update these directory names for the different commmands to write data and results
# for each mode to separate folders.
# Otherwise, results may be overwritten when running different modes.
# Example, for running let's say kinopt in local mode:
# Command - python phoskintime kinopt --mode local
# Directories can be named accordingly, e.g., results_kinopt_local
# Updating both, results_dir and logs_dir is recommended.
[paths]
data_dir = "data"
results_dir = "results_test"
logs_dir = "results_test/logs"
ode_data_dir = "data"
# ============================================================
# KINASE OPTIMIZATION (Kinase → Phosphosite)
# Used by:
# - kinopt.local.config.constants
# ============================================================
[kinopt]
# --------------------
# Input files (relative to data_dir)
# --------------------
input1 = "input1.csv" # kinase / protein abundance
input2 = "input2.csv" # phosphosite data
# --------------------
# Output
# --------------------
out_file = "kinopt_results.xlsx"
# --------------------
# Time grid (minutes)
# --------------------
time_points = [
0.0, 0.5, 0.75, 1.0,
2.0, 4.0, 8.0, 16.0,
30.0, 60.0, 120.0,
240.0, 480.0, 960.0
]
# --------------------
# Default optimization parameters
# --------------------
lower_bound = -4.0
upper_bound = 4.0
# Loss types (string, matches kinopt code)
# base | weighted | softl1 | cauchy | arctan
loss_type = "weighted"
# Estimate missing kinase–psite pairs?
estimate_missing_kinases = true
# Scaling options:
# min_max | log | temporal | segmented | slope | cumulative | none
scaling_method = "none"
# Used for temporal scaling
split_point = 9
# Used for segmented scaling
segment_points = [0, 3, 6, 9, 14]
# Optimization method (local)
# scipy-slsqp (default): SciPy SLSQP; the sum-to-one constraints and bounds are hard constraints.
# Approximate options (JAXopt; the sum-to-one constraints are a quadratic penalty, so they hold only
# approximately): projected-gradient | lbfgsb | slsqp (mapped to LBFGSB + penalty)
# | non-negative | unconstrained
method = "scipy-slsqp"
# Transform of the summed prediction, in the objective and in Estimated (issue #4):
# none (default from 0.11.0; negative predictions are flagged per site in the sheet "Prediction Check")
# | clip (max(0, x), the default up to 0.10.0) | softplus (log(1 + exp(x)), smooth and positive)
prediction_transform = "none"
# Seed for the starting values (alpha, beta) drawn before the multistart
start_seed = 20260115
# Multistart: number of starts and jitter of the starting values (fraction of each bound's span).
# 64 / 0.10 are the validated settings (release 0.10.0); one start takes several minutes with
# scipy-slsqp, and starts run in parallel on all cores.
n_starts = 64
jitter_scale = 0.10
[kinopt.modes.local]
# Trust the defaults; override if needed
method = "scipy-slsqp"