Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
df71cb9
Allow for xml specification of rules
drbergman Mar 10, 2024
afc3826
Make names attributes rather than nodes
drbergman Apr 2, 2024
3c7c2c2
min/max_value --> max_response
drbergman Apr 2, 2024
b281782
make sample work with now decreasing signal
drbergman Apr 2, 2024
d75651d
Relax min value constraint
drbergman Apr 4, 2024
9aa8b52
Merge branch 'development' into feature-xml-rules
drbergman Jun 4, 2024
e1ea33f
begin adding type attribute to signals
drbergman Jun 10, 2024
7162a68
Merge branch 'development' into feature-xml-rules
drbergman Jun 10, 2024
e2e7a3a
Merge branch 'feature-xml-rules' into xml-linear-response
drbergman Jun 10, 2024
a7853ed
trying out a way to combine signals
drbergman Jun 11, 2024
08f342b
got them compiling with the template project
drbergman Jun 11, 2024
7418477
continuing to modify extended rules
drbergman Jun 14, 2024
7765047
got it compiling (but not integrated)
drbergman Jun 14, 2024
3c31677
renaming
drbergman Sep 21, 2024
bbc2984
reference points and overall better usage of rules extension
drbergman Sep 22, 2024
b2e44b8
Merge branch 'development' into rules-upgrade
drbergman Nov 27, 2024
4173f5a
working prototype of extended rules!
drbergman Nov 28, 2024
95efc93
ability to select mediator in xml
drbergman Dec 2, 2024
ad910d6
cleaned up rules_extended and improved example
drbergman Dec 4, 2024
fa04040
add BehaviorAccumulator and BehaviorAttenuator
drbergman Dec 4, 2024
074acb3
light edits for formating/console output
drbergman Jan 23, 2025
5fd855f
clean up extended rules
drbergman Mar 20, 2025
ee42083
support csv with extended rules
drbergman Apr 1, 2025
5c40582
fix
drbergman Apr 1, 2025
7740592
fix
drbergman Apr 9, 2025
5519103
identify transform, docstrings, better coding
drbergman Apr 15, 2025
355e058
easier setting of custom agg and mediators
drbergman Apr 15, 2025
38e6fb3
readme
drbergman Apr 16, 2025
7dfd452
expose the behavior_base in XML
drbergman Apr 16, 2025
06c726e
display/export to csv
drbergman Apr 17, 2025
061a40d
better warnings/error messages
drbergman Aug 22, 2025
dabfe55
standardize aggregator type stored
drbergman Aug 22, 2025
53b1f1b
default to names with _
drbergman Aug 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ BioFVM_utilities.o BioFVM_basic_agent.o BioFVM_MultiCellDS.o BioFVM_agent_contai

PhysiCell_core_OBJECTS := PhysiCell_phenotype.o PhysiCell_cell_container.o PhysiCell_standard_models.o \
PhysiCell_cell.o PhysiCell_custom.o PhysiCell_utilities.o PhysiCell_constants.o PhysiCell_basic_signaling.o \
PhysiCell_signal_behavior.o PhysiCell_rules.o
PhysiCell_signal_behavior.o PhysiCell_rules_extended.o

PhysiCell_module_OBJECTS := PhysiCell_SVG.o PhysiCell_pathology.o PhysiCell_MultiCellDS.o PhysiCell_various_outputs.o \
PhysiCell_pugixml.o PhysiCell_settings.o PhysiCell_geometry.o
Expand Down Expand Up @@ -74,7 +74,7 @@ list-projects:
@echo "Sample projects: template biorobots-sample cancer-biorobots-sample cancer-immune-sample"
@echo " celltypes3-sample heterogeneity-sample pred-prey-farmer virus-macrophage-sample"
@echo " worm-sample interaction-sample mechano-sample rules-sample physimess-sample custom-division-sample"
@echo " asymmetric-division-sample"
@echo " asymmetric-division-sample template-xml-rules template-xml-rules-extended"
@echo ""
@echo "Sample intracellular projects: template_BM ode-energy-sample physiboss-cell-lines-sample"
@echo " cancer-metabolism-sample physiboss-tutorial physiboss-tutorial-invasion"
Expand All @@ -87,7 +87,25 @@ template:
cp Makefile Makefile-backup
cp ./sample_projects/template/Makefile .
cp -r ./sample_projects/template/config/* ./config


template-xml-rules:
cp -r ./sample_projects/template_xml_rules/custom_modules/* ./custom_modules/
touch main.cpp && cp main.cpp main-backup.cpp
cp ./sample_projects/template_xml_rules/main.cpp ./main.cpp
cp Makefile Makefile-backup
cp ./sample_projects/template_xml_rules/Makefile .
cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
cp -r ./sample_projects/template_xml_rules/config/* ./config/

template-xml-rules-extended:
cp -r ./sample_projects/template_xml_rules_extended/custom_modules/* ./custom_modules/
touch main.cpp && cp main.cpp main-backup.cpp
cp ./sample_projects/template_xml_rules_extended/main.cpp ./main.cpp
cp Makefile Makefile-backup
cp ./sample_projects/template_xml_rules_extended/Makefile .
cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
cp -r ./sample_projects/template_xml_rules_extended/config/* ./config/

# sample projects

# ---- non-intracellular projects
Expand Down Expand Up @@ -339,8 +357,8 @@ PhysiCell_constants.o: ./core/PhysiCell_constants.cpp
PhysiCell_signal_behavior.o: ./core/PhysiCell_signal_behavior.cpp
$(COMPILE_COMMAND) -c ./core/PhysiCell_signal_behavior.cpp

PhysiCell_rules.o: ./core/PhysiCell_rules.cpp
$(COMPILE_COMMAND) -c ./core/PhysiCell_rules.cpp
PhysiCell_rules_extended.o: ./core/PhysiCell_rules_extended.cpp
$(COMPILE_COMMAND) -c ./core/PhysiCell_rules_extended.cpp

# BioFVM core components (needed by PhysiCell)

Expand Down
2 changes: 1 addition & 1 deletion core/PhysiCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ static std::string PhysiCell_DOI = "10.1371/journal.pcbi.1005991";
#include "PhysiCell_utilities.h"
#include "PhysiCell_constants.h"

#include "PhysiCell_rules.h"
#include "PhysiCell_rules_extended.h"

#endif
4 changes: 2 additions & 2 deletions core/PhysiCell_cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void Cell::advance_bundled_phenotype_functions( double dt_ )
// New March 2023 in Version 1.12.0
// call the rules-based code to update the phenotype
if( PhysiCell_settings.rules_enabled )
{ apply_ruleset( this ); }
{ apply_behavior_ruleset( this ); }
if( get_single_signal(this,"necrotic") > 0.5 )
{
double rupture = this->phenotype.volume.rupture_volume;
Expand Down Expand Up @@ -1697,7 +1697,7 @@ void prebuild_cell_definition_index_maps( void )
node = node.next_sibling( "cell_definition" );
n++;
}

return;
}

Expand Down
2 changes: 1 addition & 1 deletion core/PhysiCell_cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#include "../modules/PhysiCell_settings.h"

#include "./PhysiCell_standard_models.h"
#include "./PhysiCell_rules.h"
#include "./PhysiCell_rules_extended.h"

using namespace BioFVM;

Expand Down
Loading