-
Notifications
You must be signed in to change notification settings - Fork 3
Adding new abstract potts proliferation module that does not progress through cell cycle #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Jannetty
wants to merge
16
commits into
main
Choose a base branch
from
feature/add-phaseless-prolifmode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3c5f0f9
change vector getters to use getters, helpful for mocking in tests
Jannetty cb4815b
changing GMC differentiation module to not be a proliferation module …
Jannetty d15c8d3
remove shadowing in tests
Jannetty 564525b
fixing imports
Jannetty 0899a19
formatting
Jannetty 651aef5
formatting again
Jannetty 2fbcf15
removed print statements
Jannetty 3f0f860
formatting
Jannetty 27b07de
changing names of current potts proliferation modules
Jannetty 99af986
Merge branch 'jannetty/update-flygmc-module' into feature/add-phasele…
Jannetty f200c6f
adding new proliferation module type and changing nomenclature
Jannetty 0ecb30e
changed test filenames appropriately
Jannetty e1d70a8
formatting
Jannetty d754aa4
adding period
Jannetty c1b645b
added PottsModuleProliferation level of abstraction that specifies ad…
Jannetty 6695b29
adding missing javadocs
Jannetty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/arcade/potts/agent/module/PottsModuleProliferationVolumeBasedDivision.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| package arcade.potts.agent.module; | ||
|
|
||
| import ec.util.MersenneTwisterFast; | ||
| import arcade.core.sim.Simulation; | ||
| import arcade.core.util.Parameters; | ||
| import arcade.potts.agent.cell.PottsCell; | ||
| import arcade.potts.util.PottsEnums.Phase; | ||
|
|
||
| /** | ||
| * Implementation of {@link PottsModule} for fly GMC agents. These cells divide into two {@link | ||
| * PottsCellFlyNeuron} cells. The links must be set in the setup file so that 100% of the daughter | ||
| * cells are Neurons. | ||
| */ | ||
| public abstract class PottsModuleProliferationVolumeBasedDivision extends PottsModule { | ||
|
|
||
| /** Overall growth rate for cell (voxels/tick). */ | ||
| final double cellGrowthRate; | ||
|
|
||
| /** | ||
| * Target ratio of critical volume for division size checkpoint (cell must reach CRITICAL_VOLUME | ||
| * * SIZE_TARGET * SIZE_CHECKPOINT to divide). | ||
| */ | ||
| final double sizeTarget; | ||
|
|
||
| /** | ||
| * Creates a proliferation module in which division is solely dependent on cell volume. | ||
| * | ||
| * @param cell the cell to which this module is attached | ||
| */ | ||
| public PottsModuleProliferationVolumeBasedDivision(PottsCell cell) { | ||
| super(cell); | ||
| Parameters parameters = cell.getParameters(); | ||
| sizeTarget = parameters.getDouble("proliferation/SIZE_TARGET"); | ||
| cellGrowthRate = parameters.getDouble("proliferation/CELL_GROWTH_RATE"); | ||
| setPhase(Phase.UNDEFINED); | ||
| } | ||
|
|
||
| @Override | ||
| public void step(MersenneTwisterFast random, Simulation sim) { | ||
| cell.updateTarget(cellGrowthRate, sizeTarget); | ||
| boolean sizeCheck = cell.getVolume() >= sizeTarget * cell.getCriticalVolume(); | ||
| if (sizeCheck) { | ||
| addCell(random, sim); | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Adds a cell to the simulation. | ||
| * | ||
| * @param random the random number generator | ||
| * @param sim the simulation instance | ||
| */ | ||
| abstract void addCell(MersenneTwisterFast random, Simulation sim); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.