Skip to content

Commit a7fc3cf

Browse files
committed
- update generateLHS.py and configFile.xml
1 parent c428d07 commit a7fc3cf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

beta/generate_LHS.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ def ResamplingWithConstrain(samples1, samples2, b1, h1, b2, h2):
4040
#Write file with samples
4141
for sample_id in range(Samples_number):
4242
for replica_id in range(Replicas_number):
43+
path = '/N/slate/hlimadar/melanoma_v3/'
4344
folder = 'output_S'+str("%06d"%sample_id)+'_R'+str("%02d"%replica_id)
44-
file.write("folder"+" "+folder+"\n")
45+
file.write("folder"+" "+path+folder+"\n")
4546
# Set of parameters
4647
for id_par in range(0, len(parameters)):
4748
file.write(parameters[id_par]+" "+str(samples[sample_id,id_par])+"\n")
@@ -112,7 +113,7 @@ def plot_samples(filename, label1, label2, default_value1, default_value2):
112113

113114
if __name__ == '__main__':
114115
parameters = np.array(["macrophage_max_recruitment_rate","macrophage_recruitment_min_signal","macrophage_recruitment_saturation_signal","DC_max_recruitment_rate","DC_recruitment_min_signal","DC_recruitment_saturation_signal","DC_leave_prob","TC_death_rate","T_Cell_Recruitment","DM_decay"])
115-
default_value = np.array([4e-9, 0.1, 0.3, 2e-9, 0.1, 0.3, 3.3e-9, 1.4e-6, 1.1e-4, 3.5e-4])
116+
default_value = np.array([4e-9, 0.1, 0.3, 2e-9, 0.1, 0.3, 2e-3, 1.4e-6, 1.1e-4, 3.5e-4])
116117
variation = 1.0
117118
constrain = ([1,2],[4,5]) # parameters[1] < parameters[2] and parameters[4] < parameters[5]
118119
file = "ParameterSamples.txt"

config/PhysiCell_settings.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,21 +914,21 @@
914914
<DC_recruitment_min_signal type="double" units="substrate/micron^3" description="min concentration to attract DC">0.1</DC_recruitment_min_signal> <!--0.1 debug -->
915915
<DC_recruitment_saturation_signal type="double" units="substrate/micron^3" description="saturating concentration to attract DC">0.3</DC_recruitment_saturation_signal> <!-- 0.3 debug -->
916916

917-
<TC_death_rate description="TC death rate" type="double" units="cells/min">0.0000014</TC_death_rate>
917+
<TC_death_rate description="TC death rate" type="double" units="cells/min">1.4e-6</TC_death_rate>
918918
<max_activation_TC description="max activation TC" type="double" units="cells/min">0.003</max_activation_TC>
919919
<half_max_activation_TC description="half max activation TC" type="double" units="cells">2000</half_max_activation_TC>
920920
<max_clearance_TC description="max clearance TC" type="double" units="cells/min">0.0007</max_clearance_TC>
921921
<half_max_clearance_TC description="half max clearance TC" type="double" units="cells">200</half_max_clearance_TC>
922922
<TC_population_threshold description="TC population threshold" type="double" units="cells">10</TC_population_threshold>
923-
<DM_decay description="DM decay rate" type="double" units="cells/min">0.00035</DM_decay>
923+
<DM_decay description="DM decay rate" type="double" units="cells/min">3.5e-4</DM_decay>
924924
<Th1_max_activation type="double" units="cells/min" description="Th1 max activation speed">0.0007</Th1_max_activation>
925925
<Th1_damping type="double" units="cells/min" description="Th1 damping factor">0.000015</Th1_damping>
926926
<Th1_decay type="double" units="cells/min" description="Th1 active decay rate">7e-7</Th1_decay>
927927
<Th_base_decay type="double" units="cells/min" description="Th base dacay rates">0.0000156</Th_base_decay>
928928
<Th2_self_feeback type="double" units="cells/min" description="Th2 max self feeback speed">0.000028</Th2_self_feeback>
929929
<Th2_max_conversion type="double" units="cells/min" description="Th2 max conversion speed">0.000002</Th2_max_conversion>
930930
<Th1_Th2_conversion_weight type="double" units="cells/min" description="Th1 to Th2 conversion weight">1</Th1_Th2_conversion_weight>
931-
<T_Cell_Recruitment description="T cell recruitment rate to tissue" type="double" units="cells/min">0.00011</T_Cell_Recruitment>
931+
<T_Cell_Recruitment description="T cell recruitment rate to tissue" type="double" units="cells/min">1.1e-4</T_Cell_Recruitment>
932932

933933
<div_initialization description="---Initialization Options--" type="divider" />
934934
<cell_confluence_lung_cells description="cell confluence of normal cell in tissue" type="double" units="none">0.7</cell_confluence_lung_cells>
@@ -947,7 +947,7 @@
947947
<DC_induced_CD8_proliferation description="DC induced CD8 proliferation rate" type="double" units="cells/min/micron^3">0.00208</DC_induced_CD8_proliferation>
948948
<DC_induced_CD8_attachment description="DC induced CD8 attachement rate" type="double" units="cells/min/micron^3">0.6</DC_induced_CD8_attachment>
949949

950-
<DC_leave_prob description="probability of DC leaving to lymph node" type="double" units="cells/min">3.3e-6</DC_leave_prob>
950+
<DC_leave_prob description="probability of DC leaving to lymph node" type="double" units="cells/min">2e-3</DC_leave_prob>
951951

952952
<epsilon_distance descriptions="Multiple of interaction distance for immune cells" type="double" units="dimensionless">1.75</epsilon_distance>
953953

0 commit comments

Comments
 (0)