-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<set prefix="20240730"> | ||
Check failure on line 1 in setup/setupInvertOneStemDaughterStemDaughterBasal.xml GitHub Actions / checkstyle[checkstyle] setup/setupInvertOneStemDaughterStemDaughterBasal.xml#L1 <com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck>
Raw output
|
||
<series name="testing" start="0" end="0" | ||
ds="1" margin="0" height="1" length="100" width="100" | ||
dt="1" ticks="200" interval="50"> | ||
<potts> | ||
<potts.term id="volume" /> | ||
<potts.term id="adhesion" /> | ||
<potts.parameter term="adhesion" id="ADHESION" value="150" target="invert" /> | ||
</potts> | ||
<agents> | ||
<populations> | ||
<population id="invert" class="flystem-invert-onestemdaughter-stemdaughterbasal" init="1" > | ||
<population.parameter id="CRITICAL_VOLUME_MEAN" value="30" units="um^3" conversion="DS^-3" /> | ||
<population.parameter id="CRITICAL_VOLUME_STDEV" value="5" units="um^3" conversion="DS^-3" /> | ||
</population> | ||
<population id="neuron" init="0"> | ||
</population> | ||
</populations> | ||
</agents> | ||
</series> | ||
</set> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<set prefix="20240730"> | ||
Check failure on line 1 in setup/setupInvertTwoStemDaughtersStemDaughterBasalOrBoth.xml GitHub Actions / checkstyle[checkstyle] setup/setupInvertTwoStemDaughtersStemDaughterBasalOrBoth.xml#L1 <com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck>
Raw output
|
||
<series name="testing" start="0" end="0" | ||
ds="1" margin="0" height="1" length="100" width="100" | ||
dt="1" ticks="200" interval="50"> | ||
<potts> | ||
<potts.term id="volume" /> | ||
<potts.term id="adhesion" /> | ||
<potts.parameter term="adhesion" id="ADHESION" value="150" target="invert2" /> | ||
</potts> | ||
<agents> | ||
<populations> | ||
<population id="invert2" class="flystem-invert-twostemdaughters-stemdaughterbasalorboth" init="1" > | ||
<population.parameter id="CRITICAL_VOLUME_MEAN" value="30" units="um^3" conversion="DS^-3" /> | ||
<population.parameter id="CRITICAL_VOLUME_STDEV" value="5" units="um^3" conversion="DS^-3" /> | ||
</population> | ||
<population id="neuron" init="0"> | ||
</population> | ||
<population id="wt" class="flystem-wt" init="1" > | ||
<population.parameter id="CRITICAL_VOLUME_MEAN" value="30" units="um^3" conversion="DS^-3" /> | ||
<population.parameter id="CRITICAL_VOLUME_STDEV" value="5" units="um^3" conversion="DS^-3" /> | ||
</population> | ||
</populations> | ||
</agents> | ||
</series> | ||
</set> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package arcade.potts.agent.cell; | ||
|
||
import java.util.EnumMap; | ||
import arcade.core.agent.cell.CellState; | ||
import arcade.core.env.location.Location; | ||
import arcade.core.util.MiniBox; | ||
import arcade.potts.agent.module.PottsModuleApoptosisSimple; | ||
import arcade.potts.agent.module.PottsModuleAutosis; | ||
import arcade.potts.agent.module.PottsModuleNecrosis; | ||
import arcade.potts.agent.module.PottsModuleProliferationFlyStemOneThirdSplitBasalReturn; | ||
import arcade.potts.agent.module.PottsModuleQuiescence; | ||
import arcade.potts.util.PottsEnums.Region; | ||
import arcade.potts.util.PottsEnums.State; | ||
import ec.util.MersenneTwisterFast; | ||
Check failure on line 14 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L14 <com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck>
Raw output
|
||
|
||
public final class PottsCellFlyStemInvert1StemBasal extends PottsCell{ | ||
Check failure on line 16 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L16 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck>
Raw output
Check failure on line 16 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L16 <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck>
Raw output
|
||
|
||
public static final int POTTS_CELL_FLY_NEURON_WT_POP = 2; | ||
Check failure on line 18 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L18 <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck>
Raw output
|
||
|
||
public PottsCellFlyStemInvert1StemBasal(int id, int parent, int pop, CellState state, int age, int divisions, | ||
Check failure on line 20 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L20 <LineLength>
Raw output
Check failure on line 20 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L20 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck>
Raw output
|
||
Location location, boolean hasRegions, MiniBox parameters, | ||
double criticalVolume, double criticalHeight, | ||
EnumMap<Region, Double> criticalRegionVolumes, | ||
EnumMap<Region, Double> criticalRegionHeights) { | ||
super(id, parent, pop, state, age, divisions, location, hasRegions, parameters, | ||
criticalVolume, criticalHeight, criticalRegionVolumes, criticalRegionHeights); | ||
} | ||
|
||
@Override | ||
public PottsCell make(int newID, CellState newState, Location newLocation, | ||
MersenneTwisterFast random) { | ||
divisions++; | ||
MiniBox newParameters = new MiniBox(); | ||
for (String key : this.getParameters().getKeys()) { | ||
newParameters.put(key, this.getParameters().get(key)); | ||
} | ||
newParameters.put("proliferation/CELL_GROWTH_RATE", "0"); | ||
return new PottsCellFlyNeuronWT(newID, id, POTTS_CELL_FLY_NEURON_WT_POP, newState, age, divisions, newLocation, | ||
Check failure on line 38 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert1StemBasal.java#L38 <LineLength>
Raw output
|
||
hasRegions, newParameters, criticalVolume, criticalHeight, | ||
criticalRegionVolumes, criticalRegionHeights); | ||
} | ||
|
||
@Override | ||
void setStateModule(CellState newState) { | ||
switch ((State) newState) { | ||
case QUIESCENT: | ||
module = new PottsModuleQuiescence(this); | ||
break; | ||
case PROLIFERATIVE: | ||
module = new PottsModuleProliferationFlyStemOneThirdSplitBasalReturn(this); | ||
break; | ||
case APOPTOTIC: | ||
module = new PottsModuleApoptosisSimple(this); | ||
break; | ||
case NECROTIC: | ||
module = new PottsModuleNecrosis(this); | ||
break; | ||
case AUTOTIC: | ||
module = new PottsModuleAutosis(this); | ||
break; | ||
default: | ||
// State must be one of the above cases. | ||
module = null; | ||
break; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package arcade.potts.agent.cell; | ||
|
||
import java.util.EnumMap; | ||
import arcade.core.agent.cell.CellState; | ||
import arcade.core.env.location.Location; | ||
import arcade.core.util.MiniBox; | ||
import arcade.potts.agent.module.PottsModuleApoptosisSimple; | ||
import arcade.potts.agent.module.PottsModuleAutosis; | ||
import arcade.potts.agent.module.PottsModuleNecrosis; | ||
import arcade.potts.agent.module.PottsModuleProliferationFlyStemOneThirdSplitBasalReturn; | ||
import arcade.potts.agent.module.PottsModuleQuiescence; | ||
import arcade.potts.util.PottsEnums.Region; | ||
import arcade.potts.util.PottsEnums.State; | ||
import ec.util.MersenneTwisterFast; | ||
Check failure on line 14 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L14 <com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck>
Raw output
|
||
|
||
public final class PottsCellFlyStemInvert2StemBasalOrBoth extends PottsCell{ | ||
Check failure on line 16 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L16 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck>
Raw output
Check failure on line 16 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L16 <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck>
Raw output
|
||
|
||
public static final int POTTS_STEM_INVERT_2_POP = 1; | ||
Check failure on line 18 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L18 <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck>
Raw output
|
||
public static final int POTTS_CELL_FLY_NEURON_WT_POP = 2; | ||
Check failure on line 19 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L19 <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck>
Raw output
Check failure on line 19 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L19 <com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck>
Raw output
|
||
public static final int POTTS_STEM_WT_POP = 3; | ||
Check failure on line 20 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L20 <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck>
Raw output
Check failure on line 20 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L20 <com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck>
Raw output
|
||
|
||
public PottsCellFlyStemInvert2StemBasalOrBoth(int id, int parent, int pop, CellState state, int age, int divisions, | ||
Check failure on line 22 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L22 <LineLength>
Raw output
Check failure on line 22 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L22 <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck>
Raw output
|
||
Location location, boolean hasRegions, MiniBox parameters, | ||
double criticalVolume, double criticalHeight, | ||
EnumMap<Region, Double> criticalRegionVolumes, | ||
EnumMap<Region, Double> criticalRegionHeights) { | ||
super(id, parent, pop, state, age, divisions, location, hasRegions, parameters, | ||
criticalVolume, criticalHeight, criticalRegionVolumes, criticalRegionHeights); | ||
} | ||
|
||
@Override | ||
public PottsCell make(int newID, CellState newState, Location newLocation, | ||
MersenneTwisterFast random) { | ||
divisions++; | ||
// 25% chance of making PottsCellFlyStemWT, 25% chance of making PottsCellFlyStemInvert2StemRandom 50% chance of making FlyNeuronWT | ||
Check failure on line 35 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L35 <LineLength>
Raw output
Check failure on line 35 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L35 <LineLengthTest>
Raw output
|
||
if (random.nextDouble() < 0.25) { | ||
System.out.println("Making new PottsCellFlyStemWT"); | ||
System.out.println("Inside make method, growth rate is " + this.getParameters().get("proliferation/CELL_GROWTH_RATE")); | ||
Check failure on line 38 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L38 <LineLength>
Raw output
Check failure on line 38 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L38 <LineLengthTest>
Raw output
|
||
return new PottsCellFlyStemWT(newID, id, POTTS_STEM_WT_POP, newState, age, divisions, newLocation, | ||
Check failure on line 39 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L39 <LineLength>
Raw output
|
||
hasRegions, this.getParameters(), criticalVolume, criticalHeight, | ||
criticalRegionVolumes, criticalRegionHeights); | ||
} else if (random.nextDouble() < 0.5) { | ||
System.out.println("Making new PottsCellFlyStemInvert2StemRandom"); | ||
System.out.println("Inside make method, growth rate is " + this.getParameters().get("proliferation/CELL_GROWTH_RATE")); | ||
Check failure on line 44 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L44 <LineLength>
Raw output
Check failure on line 44 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L44 <LineLengthTest>
Raw output
|
||
return new PottsCellFlyStemInvert2StemBasalOrBoth(newID, id, POTTS_STEM_INVERT_2_POP, newState, age, divisions, newLocation, | ||
Check failure on line 45 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L45 <LineLength>
Raw output
Check failure on line 45 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L45 <LineLengthTest>
Raw output
|
||
hasRegions, this.getParameters(), criticalVolume, criticalHeight, | ||
criticalRegionVolumes, criticalRegionHeights); | ||
} else { | ||
System.out.println("Making new FlyNeuronWT"); | ||
MiniBox newParameters = new MiniBox(); | ||
for (String key : this.getParameters().getKeys()) { | ||
newParameters.put(key, this.getParameters().get(key)); | ||
} | ||
newParameters.put("proliferation/CELL_GROWTH_RATE", "0"); | ||
return new PottsCellFlyNeuronWT(newID, id, POTTS_CELL_FLY_NEURON_WT_POP, newState, age, divisions, newLocation, | ||
Check failure on line 55 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L55 <LineLength>
Raw output
Check failure on line 55 in src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java GitHub Actions / checkstyle[checkstyle] src/arcade/potts/agent/cell/PottsCellFlyStemInvert2StemBasalOrBoth.java#L55 <LineLengthTest>
Raw output
|
||
hasRegions, newParameters, criticalVolume, criticalHeight, | ||
criticalRegionVolumes, criticalRegionHeights); | ||
} | ||
} | ||
|
||
@Override | ||
void setStateModule(CellState newState) { | ||
switch ((State) newState) { | ||
case QUIESCENT: | ||
module = new PottsModuleQuiescence(this); | ||
break; | ||
case PROLIFERATIVE: | ||
module = new PottsModuleProliferationFlyStemOneThirdSplitBasalReturn(this); | ||
break; | ||
case APOPTOTIC: | ||
module = new PottsModuleApoptosisSimple(this); | ||
break; | ||
case NECROTIC: | ||
module = new PottsModuleNecrosis(this); | ||
break; | ||
case AUTOTIC: | ||
module = new PottsModuleAutosis(this); | ||
break; | ||
default: | ||
// State must be one of the above cases. | ||
module = null; | ||
break; | ||
} | ||
} | ||
} |