Skip to content

Commit 529efb8

Browse files
authored
Merge pull request #6 from heberlr/development
Development
2 parents ae28fe8 + a7fc3cf commit 529efb8

18 files changed

+480
-919
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"

beta/model_scheme.png

479 KB
Loading

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

custom_modules/DC_history.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ extern LymphNode lympNode;
1111

1212
void DC_history_model_setup( void )
1313
{
14-
// set version
14+
// set version
1515
DC_history_info.name = "DC history";
1616
DC_history_info.version = DC_history_version;
17-
// set functions
17+
// set functions
1818
DC_history_info.main_function = DC_history_main_model;
1919
DC_history_info.phenotype_function = NULL; // pushed into the "main" model
2020
DC_history_info.mechanics_function = NULL;
21-
// what microenvironment variables do you need
21+
// what microenvironment variables do you need
2222

23-
// what cell variables and parameters do you need?
23+
// what cell variables and parameters do you need?
2424

2525
// submodel_registry.register_model( receptor_dynamics_info );
2626
DC_history_info.register_model();
@@ -31,12 +31,11 @@ void DC_history_model_setup( void )
3131
void DC_history_model( Cell* pCell, Phenotype& phenotype, double dt )
3232
{
3333
static int DC_type = get_cell_definition( "DC" ).type;
34-
3534
// bookkeeping -- find microenvironment variables we need
3635

3736
// bookkeeping -- find custom data we need
3837
static double DCprob = parameters.doubles( "DC_leave_prob" );
39-
// extern double DCAMOUNT; //declare existance of counter
38+
4039
// do nothing if dead
4140
if( phenotype.death.dead == true )
4241
{ return; }
@@ -62,7 +61,6 @@ void DC_history_model( Cell* pCell, Phenotype& phenotype, double dt )
6261

6362
void DC_history_main_model( double dt )
6463
{
65-
// extern double DCAMOUNT;
6664
extern std::vector<int>history;
6765
lympNode.DCAMOUNT=0;
6866

@@ -76,8 +74,5 @@ void DC_history_main_model( double dt )
7674
std::rotate(history.rbegin(),history.rbegin()+1,history.rend());
7775
history.front() = lympNode.DCAMOUNT;
7876

79-
/* std::copy(history.begin(), history.end(), std::ostream_iterator<int>(std::cout, " "));
80-
std::cout << std::endl;
81-
*/
8277
return;
8378
}

custom_modules/DC_history.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ using namespace PhysiCell;
1313
extern Submodel_Information DC_history_info;
1414

1515
void DC_history_model_setup( void );
16-
1716
// don't put into individual cell models
1817
void DC_history_model( Cell* pCell, Phenotype& phenotype, double dt );
19-
2018
// this needs to be done on faster time scale;
2119
void DC_history_main_model( double dt );
2220

0 commit comments

Comments
 (0)