-
Notifications
You must be signed in to change notification settings - Fork 0
/
setparam.cpp
7960 lines (7166 loc) · 239 KB
/
setparam.cpp
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Routinen fuer die Erstellung und Veraenderung der
* Paramterdatei
*/
#include "setparam.h"
#include <string.h>
#include <math.h>
#include <fstream>
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Parameter-Klassen-Konstruktoren
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// The following values are set in a way that parameter
// files from previous versions remain compatible and
// can still be used. Default parameter values have to
// be set such that the program can still run as before
// the introduction of the new parameters if they are not
// specified.
// ########################################################
////§§§ Philippe 21-03-2017
const double hyphasmaParameter::N_A = 6.02205e+23; // mol^-1
// increases the numeric text tmp by +1
void addchar(suffix &tmp) {
// suffix declared in setparam.h
int i = 3;
char weiter = 1;
while (i >= 0 && weiter == 1) {
if (tmp[i] != '9') {
++tmp[i];
weiter = 0;
} else {
tmp[i] = '0';
--i;
}
}
if (weiter == 1) {
cout << "Too large number in addchar(..) !\n";
}
}
// initializes the default parameter values that are common between 2D and 3D simulations
void Werte::inialld() {
// Set System to Unix
system = 0;
// Safety-checks (0=less, 1=more, 2=a lot)
safety_checks = 1;
// Keine Vorarbeit des Zufallsgenerators
ini_random = 0;
late_ini_random = 0;
// Schreibe alles raus
outputfiles = 0;
// Modus of space representation
show_mode = GC;
// Hebe Ki67 hervor?
show_Ki67 = 0;
// Lese Zeiten nicht Raten
timevalues = 1;
// Initial dimensions of arrays
CB_Narray = 20000;
CC_Narray = 20000;
TC_Narray = 2000;
FDC_Narray = 300;
OUT_Narray = 100;
STROMA_Narray = 400;
BETA_Narray = 0;
prefixSigFiles = "";
// Signals:
D_differ2CC = 200; // microm^2/h
D_CXCL12 = 1000; // microm^2/h
D_CXCL13 = 1000; // microm^2/h
D_antibody = 2000; // microm^2/h
D_antigen = 2000; // micron^2/h
D_SEMA4D = 1000;
signal_mode = 2; // QUANTA
bound_differ2CC = 0.0;
bound_CXCL12 = 0.0;
bound_CXCL13 = 0.0;
bound_ab = 0.0;
bound_ag = 0.0;
bound_SEMA4D = 0.0;
CXCL12crit = -1;
CXCL13crit = -1;
CXCL12recrit = -1;
CXCL13recrit = -1;
objects_transparent = 1;
// Dimension of Shapespace
DimShapeSpace = 4;
// Metrik ist nicht euklidisch
metrik = 1;
// Number of B-Cell states in SS
SSStates = 10000;
// Resulting Range per dimension
SSRangePerDim = long (pow(SSStates, (1. / DimShapeSpace)));
// A shapespace initialization
totalA = 1000;
APeakNumber = 1;
ag_fraction.reserve(100);
ag_fraction.clear();
for (int i = 0; i < 100; i++) {
ag_fraction[i] = -1;
}
// Width of gaussian affinity weight function:
GammaGauss = 2.8;
amplitudeGauss = 1.0;
use_arup_space = 0;
arup_length_sequences = 46;
arup_N_conserved = 18;
arup_N_mutates = 22;
arup_N_shielded = 6;
arup_nb_ini_antigens = 1;
// arup_ini_antigens.push_back(string("1111111111111111111111111111111111111111111111"));
// arup_ag_fraction.push_back(1.0);
arup_nb_mutations_gen_strains = 11;
arup_threshold_activation = 10.8;
arup_h_min = -0.18;
arup_h_max = 0.9;
// arup_ini_bcrs.push_back();
arup_mutation = 0.003;
arup_proba_lethal_mut = 0.3;
arup_proba_affecting_mut = 0.2;
arup_proba_silent_mut = 0.5;
/*arup_law_mut_Xs.push_back(-6.4);
* arup_law_mut_Xs.push_back(-6.2);
* arup_law_mut_Densities.push_back(0.019047619);
* arup_law_mut_Densities.push_back(0.003809524);*/
arup_alpha = 2;
arup_hprime_min = -1.5;
arup_hprime_max = 1.5;
arup_hmut_min = -1.5;
arup_hmut_max = 1e6;
// No Restriction:
for (int i = 0; i < MAXDIM; i++) {
file_output[i] = -1;
takeA[i] = -1;
takeB[i] = -1;
posCB[i] = -1;
pos_blast2[i] = -1;
BETA_pos[i] = -1;
initAntigenSeqs[i] = string("-1");
initBCRSeqs[i] = string("-1");
initTCRSeqs[i] = string("-1");
// the vectors for arup space are started empty, and are filled depending on the output -> not
// allocated before, but can access their size by .size()
}
for (int i = 0; i < MAXDIMSMALL; i++) {
fix_signals[i] = false;
}
//// Philippe 2017-10-12
use_predefined_tc_dynamics = false;
TCdynT.clear();
TCdynNb.clear();
proba_TC_CC_interaction = 1.0;
// Sequence space:
type_affinity_function = 0; // 0: saham's model, 1: sahams renormalized by a cluster size. 2:
// sliding window
use_sequence_space = 0;
size_sequences = 50;
sequence_mut_per_base = 0.003; // from chakraborty's paper
init_antigen_sequences = 10;
max_hamming_antigens = 25;
min_hamming_antigens = 1;
max_hamming_BCRs = 25;
min_initial_affinity_BCRs = 0.1;
max_initial_affinity_BCRs = 0.9;
max_hamming_TCRs = 25;
min_initial_affinity_TCRs = 0.1;
max_initial_affinity_TCRs = 0.8;
R_affinity = 2.0;
max_affinity_cluster
= 10; // depending of type_affinity_function : 1/ useless 2/ norm size 3/ size of the
// sliding window
// For lattice GCx
vol_shape = 0;
obstacles = 0;
wall_level = 0.3;
wall_width = 2;
slit_number = 5;
slit_width = 1;
collagen_density = 0.3;
collagen_cluster = 0.00333;
// Timescales in h
tmin = 0.;
tmax = 504.;
// Start Mutation
Start_Mutation = 72.;
Start_Differentiation = 72.;
newBCinflux_stop = 72.;
// Start Output
StartOutput = 120.;
// Adhesion
adhesion_time = 0.166667; // 10 seconds
CB_max_adhesion = 0.0;
// Chemotaxis
chemo_max = 10.; // Faktor
chemo_steep = 1.e+10; // l/mol
chemo_half = 2.e-10; // mol/l
/// Philippe 2017-10-22
use_specific_tc_chemotaxis = false;
chemo_max_tc = 10.; // Faktor
chemo_steep_tc = 1.e+10; // l/mol
chemo_half_tc = 2.e-10; // mol/l
// Motility
allow_exchange = false;
use_specific_turning_angles = 0;
// Photoactivation
photoactivation = 0;
photoactivation_t0 = 96.;
photoactivation_x0 = 110.;
photoactivation_y0 = 150.;
photoactivation_z0 = 150.;
photoactivation_delta_x = 100.;
photoactivation_delta_y = 20.;
photoactivation_delta_z = 20.;
def_DEC205 = false;
def_DEC205_t0 = 96.;
p_DEC205 = 0.15;
inject_antiDEC205OVA = false;
inject_antiDEC205OVA_t0 = 96.;
antiDEC205OVA_tend = -1.; // default is that antiDEC205OVA acts for one round of selection
TC_dec205ova_time = 0.0; // unchanged TC-BC contact times
TC_factor_dec205ova = 1.0; // factor of TC number increase upon dec205ova stimulation
DEC205_p_factor = 1.0; // factor of prolongation of the CB state
DEC205_induce_CBdifferentiation = false;
DEC205_forces_output = 0.0;
retain_DEC205_ag = false;
// CB
// totall number of initial B-Cells
totalB = 3;
totalBss = totalB;
newBCinflux_rate = 0.0; // per hour
smooth_stopBCinflux = -1; // time [hr] of
min_seeder_dist = -1;
max_seeder_dist = -1;
// Diffusionkonstanten berechnet aus Stokes und Blut-Viskositaet
D_CB = 5.; // microm^2/h
v_CB = 2.; // i.e. standard is to use diffusion for definition of movement
v_CB_width = -1; // fixed v_CB value
CB_v_modi = 1; // i.e. random velocity state changes
CB_n_v_states = 1; // i.e. only one velocity state
v_CB_switch_deltat = -1.0; // only one v_state
v_CB_factor = 1.0; // one velocity state only, i.e. velocity factor = 1.0
v_CB_cytosol = -1.0; // use CB_D_cytosol for surface tension
distance_tolerance = 0.3;
half_tolerance_deformation = 0.01; // always minimum tolerance
mutation = 0.5;
mutation_after_tc = -1.0;
mutation_after_dec_tc = -1.0;
mutation_affinity_exponent = 0.0;
CBreceptor_use = 0;
CBreceptor_dissociation = 1.0;
CBreceptor_binding = 1.0;
CBreceptor_activation = 0.5;
CBreceptor_total = 1;
CB_D_cytosol = D_CB;
CB_elongation = 1.;
CB_K_elongation = 2.;
CB_smoothmove = 1.;
CB_persistence = 2.; // no persistence
CB_maxvolume4differ2CC = 1.0; // no restriction for proliferation from volume
CB_fixed_times_of_divisions = -1.; // # of cell cycle times before susceptible to
// differentiation
fixed_time_of_divisions_mode = 0; // calculate according duration of monoclonal expansion
CB_fixed_times_of_divisions_in_expansion = 12.0;
CB_dt_G0 = 0.0;
CB_dt_G1 = 0.0;
CB_dt_G2 = 0.0;
CB_dt_S = 0.0;
CB_dt_M = 0.0;
CB_dtphase_width = 0.0;
transmit_CC_delay_to_CB_cycle = false;
t_inject_BrdU = -1;
deltat_inject_BrdU = -1;
n_inject_BrdU = 0;
BrdU_detection_threshold = 0.05;
CB2OUT_prob = -1.;
exit2tz = 0; // random walk of output cells
retain_ag = false;
divide_ag_asymmetric = 0.;
asymmetric_polarity_index = 1.0;
smooth_PI = 0.0;
ag_deleted_in_fresh_CC = true;
ag_loaded_CB_diff2output = false;
ag_loaded_CC_directly2TFH = false;
ag_loaded_CB_stop_mutation = false;
BC_ag_preloaded = -1;
// blast2:
total_blast2 = 0;
D_blast2 = 30; // microns^2/h
blast2_radius = 5; // microns
dx_blast2 = 1; // microns (1 means only on next neighbors)
blast2_proliferate = 10; // hours
blast2_grow = 1; // hours
blast2_distance_tolerance = 0.3;
blast2_half_tolerance_deformation = 0.01;
// CCs
D_CC = -15.; // microm^2/h
CXCR4down = -1.; // no time based down regulation of CXCL13 sensitivity
CXCR5down = -1.; // no time based down regulation of CXCL13 sensitivity
CC_FDC_selection = 1; // CC have to see FDC!
collectFDCsignals = false;
collectFDCperiod = 0.;
prob2kill_noFDCcontactBCs = -1.0;
present_specific_ag2TC = 0; // provide 0=total, 1=max-value, 2=TC-specific-value to TC
v_CC = 5.;
v_CC_width = -1;
v_OUT = 5.;
v_OUT_width = -1;
CC_v_modi = 1;
CC_n_v_states = 1;
v_CC_factor = 1.;
v_CC_switch_deltat = -1.;
CC_persistence = 2.; // no persistence
OUT_persistence = 2.; // no persistence
use_ab_dynamics = 0; // compatible to versions before hyphasma7.06.4
initial_ab_affinity = -1.; // use average seeder cell affinity
CC_ICAM_delay = -1.;
multipleTFHcontacts = false;
negativeTCselection = true;
ignore_apoptotic_CC = false;
CC_apoptotic_motility_mode = 1;
p_apo_randomwalk = 0.;
reset_antigen_after_collection = -1;
ignore_affinity = -1.;
do_TC_division = 0; // boolean
TC_doubling = 24.0; // time [hours] to be converted in a rate
TC_meancycle = 10.0; // hours
TC_cyclewidth = 0.5; // fraction [%]
TC_Ndivisions = 1; // number
dx_TC = 0.; // distance in microns
tc_search_duration_mode = 0;
tc_search_duration_fixed = 3.0;
tc_search_duration_per_FDCcontact = 0.75;
mode_of_setting_TC_time = 0; // fixed TC_time
TC_time = 2.1; // hours
TC_time_width = 0.5; // hours
TC_rescue_time = 2.0; // hours
BCstaysonTCbyTCtime = 0;
///§§§ Philippe
time_tc_selection_block = 24; // (hours) -> no blocking 382
factor_tc_selection_block = 1.0; // -> no blocking 383
time_DND_block = 24; // 384
factor_DND_block = 1.0; // -> no blocking 385
factor_founder_div_block = 1.0; // 388
///§§§
mode_tc_selection_block = 0; // -> no blocking 389
pMHC_dependent_division = false;
signal_dependent_number_of_divisions = false;
pMHC_dependent_P_standard = 2.0;
pMHC_dependent_P_max = 6.0;
pMHC_dependent_P_min = 1.0;
pMHC_dependent_K = 8.0;
TFHsignal_dependent_K = 1.5;
pMHC_dependent_nHill = 1.0;
pMHC_dependent_pMHC_of_2divisions = 2.0;
TFHsignal_of_P0divisions = 0.75;
ICOSL_dependent_Tfh_signals = false;
ICOSL_memory = false;
ICOSL_upregulation_mode = 0;
ICOSL_upregulation_time = 0.;
// 2017-01-05 New version from git
dT_FoxO = 1.0; // FoxO down at zero is getting back to 1=100% in this time
nFoxO = 1.0;
KFoxO = 3.0;
dT_mTORC1 = 12.0; // mTORC1 reaches 1.0 in this time
// class switch
do_switch_classes = 0;
// the following generates a switch matrix with 0 everywhere and 1 in the diagonal
int switch_counter = 0;
for (int i = 0; i < switch_dimension; i++) {
switch_matrix[i] = 0;
if (switch_counter == 0) {
switch_matrix[i] = 1;
switch_counter = int (nIg_classes) + 1;
}
--switch_counter;
}
IgE_BCRlevel = 0.3;
///§§§ Philippe 26/03/2017
IgG_BCRlevel = 1.0;
IgG_factor_cellcycle = 1.0; // 374
IgG_factor_divisions = 1.0; // 375
for(int i = 1; i < nIg_classes; ++i){
Founder_IgX[i] = 0;
}
Founder_IgX[IgM] = 1.0; // 376
decay_proba_switch = 0; // 377 for all probabilities of switching
IgG_factor_leaving = 1.0; // 378
Affinity_threshold_IgG = 0.0; // 379
Int_Antigen_threshold_IgG = 0.0;// 380
tc_help_IgG = 1.0; // 381
stddev_initial_divisions = 0; // 386 if != 0, then apply it
stddev_DND = 0; // 387 if != 0, then apply it
CC_IgE_prob_CXCR5down = 0.;
IgE_factor_cellcycle = 1.0;
IgE_factor_divisions = 1.0;
// output
output = 0.2;
output_DEC = output;
TCell = 1.;
FDCsignalling = 1.;
// T cells
TC_radius = 3.; // microns
v_TC = 8.; // microns/min
v_TC_width = -1;
v_TC_CC = 0.; // microns/min
TC_persistence = 2.; // min
TC_CC_selection = 0; // no active selection by TC
north_weight = 0.; // TC do not tend to go north in the reaction volume
// FDCs
for (int i = 0; i < 100; i++) {
posFDC[i] = -1;
}
FDClength = 10; // microm
ag_per_FDC = -260.;
ag_saturation_FDC = 20.;
ag_distribution_mode = 0;
ag_detection_mode = 0;
// antibodies
ag_threshold = 1.e-08; // Mol
ic_k_on = 1.e06; // /(Mol s)
ic_k_off = 1.e-03; // /s
antibodies_resolution = 0; // 209;
antibodies_production = 1.e-17; // 210; in mol per hour and cell
antibodies_degradation = 30; // 214; days
k_ic_exp_min = 5.5; // 211; exponent of value in 1/Mol
k_ic_exp_max = 10.5; // 212; exponent of value in 1/Mol
pm_differentiation_time = 24.; // 213; hours
N_GC = 1000; // 215;
V_blood = 0.01; // 216; liter
inject_antibody = 0.;
injected_antibody_affinity = 8.5;
inject_antibody_ASindex = -1;
inject_antibody_time = 96.;
mk_SEMA4D = -1.0e-08; // Mol/h FDC
// Nutrients
use_glucose = -95.e-18; // mol/sec
use_oxygen = -20.e-18; // mol/sec
use_glucose_pro = -95.e-18;
use_oxygen_pro = -20.e-18;
bound_glucose = 0.;
bound_oxygen = 0.;
D_glucose_H2O = 4.146e+04; // microns^2/min
D_oxygen_H2O = 1.464e+05; // microns^2/min
D_glucose = 6.3e+03; // microns^2/min
D_oxygen = 1.05e+05; // microns^2/min
critical_nutrient = 2.5e-08; // Mol^2
fix_glucose_gradient = false;
fix_glucose_gradient_min = 2.0; // mM
fix_glucose_gradient_max = 12.0; // mM
const_dynamic_glucose_field = 10.0; // in glucose resting value
// Cell tracking:
tALL = 0;
tCB = 0;
tCC = 0;
tOUT = 0;
tTC = 0;
tBETA = 0;
trackfrom = 0.0;
trackuntil = 1.0; // hours
track_delta_t = 1. / 60.; // hours (1 minute)
v_resolution = 100;
delta_v = 2.; // micron/min
alpha_resolution = 36;
delta_alpha = 5.; // grad
s_resolution = 100;
delta_s = 0.1; // micron/min
// BETA-cells
BETA_Nini = 0;
BETA_radius = 5; // microns
BETA_proliferate = -1; // hours (-1: no proliferation)
BETA_max_pro = 1; // microns (1=next neighbours)
BETA_grow = 1; // hours
BETA_shrink = 1; // hours
BETA_max_adhesion = 0; // maximum adhesion force in % of full stickness
BETA_persistence = 0.1; // min
BETA_v = 0.1; // micron/min
BETA_v_modi = 1; // random velocity mode
BETA_n_v_states = 1; // one state only
BETA_v_factor = 1;
BETA_v_switch_deltat = -1; // min
BETA_v_cytosol = 0.1; // micron/min
BETA_elongation = 1;
BETA_K_elongation = 2;
BETA_distance_tolerance = 0.2;
BETA_half_tolerance_deformation = 0.2;
BETA_smoothmove = 1;
}
void Werte::ini2d() {
// Achtung!!! Die Standardwerte sind von res0x29a!
// Mit "### statt xxx" sind Verbesserungsvorschlaege gemacht.
// Standardwerte unabhaengig von der Dimension festlegen:
inialld();
// time steps
deltat = 0.01;
ToFileStep = 2400;
// Antigene:
takeA[0] = 3333;
// Biological parameters
proliferate = 9.; // h
grow = 3.; // h; (2 0.9 proliferate dx^2) / pi r_CB^2 = 3h
shrink = 2.; // h
tolight = 2.8; // ln(2)/6 h
smooth_differentiation = false;
smooth_differentiation_time = 3.; // hours
smooth_dif2out = false;
smooth_dif2out_time = 3.; // hours
apoptosis = 10.; // h
apoptosis4FDCselected = -1.; // infinite
p_macrophage = 96.3; // for necrotic CB (in h) (value from Gernot's model 138, *ln(2)=96 ???
// mit ihm checken #####)
macrophage = 0.01; // h
selection = 2.; // h
ccdiff = 7.; // h
ccdiff_delay = -1.; // h
ccdiff_delay_DEC = -1.; // h
final_differentiation_rate = -1.; // hr
CC_test_delay = 0.1; // h
mksignal = 8.5; // /h FDC
totalTC = 10; // 50
// FDC:
FDCnumber = 20;
FDCvesicle = 0;
// Take 2/3 of GC volume for FDC network
FDCnetwork = 0.6667;
FDCtransparent = 1;
// Position von FDCs in den oberen 70% der Flaeche (2D)
posFDC[0] = 150;
posFDC[1] = 200;
posFDC[2] = 298;
posFDC[3] = 324;
posFDC[4] = 394;
posFDC[5] = 511;
posFDC[6] = 650;
posFDC[7] = 692;
posFDC[8] = 703;
posFDC[9] = 751;
posFDC[10] = 806;
posFDC[11] = 842;
posFDC[12] = 950;
posFDC[13] = 969;
posFDC[14] = 1030;
posFDC[15] = 1050;
posFDC[16] = 1093;
posFDC[17] = 1150;
posFDC[18] = 1219;
posFDC[19] = 1250;
mkCXCL12 = 0.0; // Mol/(h FDC)
mkCXCL13 = 0.0; // Mol/(h FDC)
// CBs:
CB_radius = 4.5; // microm
// maximal CB-proliferation distance in microm
// dx_CB=8.*CB_radius;
dx_CB = 0.;
// Position der seeder CBs passend zu obigen FDCs
// posCB[0]=385;
// posCB[1]=892;
// posCB[2]=1190;
// OUT
mk_ab = -3.0e-08; // number per hour
// For lattice GCx
DimSpace = 2;
// Radius of GC in microm
GC_radius = 220.;
// Separately in each dimension:
gridsize[0] = 220.;
gridsize[1] = 220.;
gridsize[2] = 0.;
// lattice constant in microm
dx = 10.;
// lattice constant for signal grid in microm (<0. : =dx)
dx_signal = -1.;
}
void Werte::ini3d() {
inialld();
// Timescales in h
deltat = 0.05;
ToFileStep = 480;
// Biological parameters
proliferate = 6.; // h
grow = 0.666667; // h // #### insert: 2 pi r_CB^3 p(incl ln(2)) / (3 0.9 dx^3)
shrink = 0.666667; // h
tolight = 3.; // h
apoptosis = 6.; // h
apoptosis4FDCselected = -1.;
macrophage = 0.01; // h
selection = 3.; // h
ccdiff = 3.5; // h
ccdiff_delay = -1; // h
ccdiff_delay_DEC = -1; // h
CC_test_delay = 2.; // h
mksignal = 27.4; // /h FDC
totalTC = 0; // 500
// FDC:
FDCnumber = 172;
FDCvesicle = 1;
// Position von FDCs in den oberen 50% der Flaeche (3D)
FDCnetwork = 0.5;
FDCtransparent = 1;
// Antigene:
takeA[0] = 1170;
// CBs
CB_radius = 7.5; // microm
// maximal CB-proliferation distance in microm
dx_CB = 8. * CB_radius;
// OUT
mk_ab = 0.; // Mol per hour
// For lattice GCx
DimSpace = 3;
// Radius of GC in microm
GC_radius = 160.;
// Separately in each dimension:
gridsize[0] = 160.;
gridsize[1] = 160.;
gridsize[2] = 160.;
// lattice constant in microm
dx = 10.;
// lattice constant for signal grid in microm (<0. : =dx)
dx_signal = -1.;
}
Werte::Werte()
: file_output(MAXDIM, 0),
takeA(MAXDIM, 0, 1),
initAntigenSeqs(MAXDIM, string("-1")),
initBCRSeqs(MAXDIM, string("-1")),
initTCRSeqs(MAXDIM, string("-1")),
fix_signals(MAXDIMSMALL, 0, 1),
takeB(MAXDIM, 0, 1),
posCB(MAXDIM, 0, 1),
pos_blast2(MAXDIM, 0, 1),
posFDC(100, 0, 1),
BETA_pos(MAXDIM, 0, 1) {
// Initialisiere standardmaessig fuer 2d Rechnungen
ini2d();
}
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Parameter File-Formate:
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
const char* Werte::kenntext(int nummer) {
switch (nummer) {
// free: 402+
/// Philippe
// General
case 390: {
return "Use signal files with following prefix ('none' if none)";
}
case 1: {
return "System: 0=Unix; 1=Windows";
}
break;
case 2: {
return "Zufallsgenerator initialisieren";
}
break;
case 3: {
return "Extra Zufallsgenerator am Anfang";
}
break;
case 4: {
return "File-Output-Restrictions";
}
break;
case 5: {
return "Zufallsgenerator post-proliferation initialisieren";
}
break;
case 6: {
return "Angabe von Zeiten =1 (nicht Raten =0)";
}
break;
case 7: {
return "Was wird rausgeschrieben (0=alles; 1=wenig)";
}
break;
case 8: {
return "Hebe Ki67 hervor? (0=nein; 1=ja)";
}
break;
case 9: {
return "Do checks? (0=no; 1=few; 2=yes)";
}
break;
case 124: {
return "Mode of spatial output (0=GC 1=tumour ...)";
}
break;
case 172: {
return "Initial array dimension of CB";
}
break;
case 173: {
return "Initial array dimension of CC";
}
break;
case 174: {
return "Initial array dimension of TC";
}
break;
case 175: {
return "Initial array dimension of OUT";
}
break;
case 176: {
return "Initial array dimension of FDC";
}
break;
case 177: {
return "Initial array dimension of STROMA";
}
break;
case 178: {
return "Initial array dimension of BETA";
}
break;
// shape space and antigen
case 10: {
return "Use metric (1:N_mutation; 2:euclidian)";
}
break;
case 11: {
return "Dimension of Shapespace (<11)";
}
break;
case 12: {
return "Number of antibody types";
}
break;
case 13: {
return "Number per Dimension (Fixed,int-type)";
}
break;
case 14: {
return "Total initial Number of presented Antigen Epitops (int-type)";
}
break;
case 15: {
return "Number of initial Anitgen Peaks in its Shapespace (int-type)";
}
break;
case 16: {
return "Fix Epitop presentation (max 10 values)";
}
break;
case 323: {
return "Fraction of Ags (non-fixed Ag enter with same fraction)";
}
break;
case 18: {
return "Width of gaussian affinity weight function";
}
break;
case 121: {
return "Amplitude of Gauss affinity weight function (0<a<=1)";
}
break;
// Sequence shape
case 349: {
return "Use logarithmic affinity";
}
break;
case 307: {
return "Number of Initial Antigen sequences (int-type)";
}
break;
case 308: {
return "Maximum Hamming distance between antigens";
}
break;
case 309: {
return "Minimum Hamming distance between antigens";
}
break;
case 310: {
return "Fix Antigen Sequence presentation (max 1000 values)";
}
break;
case 311: {
return "Fix initial Repertoire distribution (max 1000 values)";
}
break;
case 312: {
return "Maximum Initial Hamming distance between BCRs";
}
break;
case 313: {
return "Minimum affinity of initial BCRs to Antigens";
}
break;
case 314: {
return "Maximum affinity of initial BCRs to Antigens";
}
break;
case 315: {
return "Length of sequences";
}
break;
case 348: {
return "Mutation proba per base per division (sequence space only)";
}
break;
case 316: {
return "Specifity of sequences affinity (double R)";
}
break;
case 317: {
return "Fix initial Repertoire distribution for T cells";
}
break;
case 318: {
return "Maximum Initial Hamming distance between TCRs";
}
break;
case 319: {
return "Minimum affinity of initial TCRs to Antigens";
}
break;
case 320: {
return "Maximum affinity of initial TCRs to Antigens";
}
break;
case 321: {
return "Use sequence space (1/0)";
}
break;
case 326: {
return "Optimum affinity cluster size (affinity doesn't increase beyond it)";
}
break;
case 327: {
return
"Type of affinity function : 0= standard (saham's) 1= normalized to max_affinity_cluster 2= "
"sliding windows of size max_affinity_cluster";
}
break;
// space lattice in general
case 20: {
return "Dimension of lattice";
}
break;
case 21: {
return "Lattice constant of space grid";
}
break;
case 123: {
return "Lattice constant of signal grid (-1. for =space grid) (in microm)";
}
break;
case 22: {
return "Radius of GC (microm)";
}
break;
case 23: {
return "Shape of reaction volume (0=sphere; 1=cube)";
}
break;
case 110: {
return "Obstacles: 0=no; 1=wall; 2=wall+slits; 3=random";
}
break;
case 111: {
return "Position of wall (% of volume height)";
}
break;
case 112: {
return "Width of wall (in points)";
}
break;
case 113: {
return "Number of slits";
}
break;
case 114: {
return "Width of slits (in points)";
}
break;
case 115: {
return "Density of random obstacles (% of reaction volume)";
}