Core

Core functionality for PhysiCellModelManager.jl.

Public API

PhysiCellModelManager.getMonadIDsMethod
getMonadIDs()

Return a vector of all monad IDs in the database.

Alternate forms take a monad, sampling, or trial object (or an array of any combination of them) and return the corresponding monad IDs.

Examples

getMonadIDs() # all monad IDs in the database
getMonadIDs(monad) # just a vector with the monad ID, i.e. [monad.id]
getMonadIDs(sampling) # all monad IDs in a sampling
getMonadIDs(trial) # all monad IDs in a trial
getMonadIDs([trial1, trial2]) # all monad IDs between trial1 and trial2
source
PhysiCellModelManager.initializeModelManagerMethod
initializeModelManager()
initializeModelManager(path_to_project_dir::AbstractString)
initializeModelManager(path_to_physicell::AbstractString, path_to_data::AbstractString)

Initialize the PhysiCellModelManager.jl project model manager, identifying the data folder, PhysiCell folder, and loading the central database.

If no arguments are provided, it assumes that the PhysiCell and data directories are in the current working directory.

Arguments

  • path_to_project_dir::AbstractString: Path to the project directory as either an absolute or relative path. This folder must contain the PhysiCell and data directories.
  • path_to_physicell::AbstractString: Path to the PhysiCell directory as either an absolute or relative path.
  • path_to_data::AbstractString: Path to the data directory as either an absolute or relative path.
source
PhysiCellModelManager.simulationIDsMethod
simulationIDs()

Return a vector of all simulation IDs in the database.

Alternate forms take a simulation, monad, sampling, or trial object (or an array of any combination of them) and return the corresponding simulation IDs.

Examples

simulationIDs() # all simulation IDs in the database
simulationIDs(simulation) # just a vector with the simulation ID, i.e. [simulation.id]
simulationIDs(monad) # all simulation IDs in a monad
simulationIDs(sampling) # all simulation IDs in a sampling
simulationIDs(trial) # all simulation IDs in a trial
simulationIDs([trial1, trial2]) # all simulation IDs between trial1 and trial2
source

Private API

PhysiCellModelManager.lowerClassStringMethod
lowerClassString(T::AbstractTrial)
lowerClassString(T::Type{<:AbstractTrial})

Return the lowercase string representation of the type of T, excluding the module name. Without this, it may return, e.g., Main.PhysiCellModelManager.Sampling.

Examples

lowerClassString(Simulation) # "simulation"
lowerClassString(Simulation(1)) # "simulation"
source
PhysiCellModelManager.readConstituentIDsMethod
readConstituentIDs(T::AbstractTrial)

Read a CSV file containing constituent IDs from T and return them as a vector of integers.

For a trial, this is the sampling IDs. For a sampling, this is the monad IDs. For a monad, this is the simulation IDs.

Examples

ids = readConstituentIDs(Sampling(1)) # read the IDs of the monads in sampling 1
ids = readConstituentIDs(Sampling, 1) # identical to above but does not need to create the Sampling object

ids = readConstituentIDs(Monad, 1) # read the IDs of the simulations in monad 1
ids = readConstituentIDs(Trial, 1) # read the IDs of the samplings in trial 1
source