Individual class for OSP snapshot individuals
Individual.RdAn R6 class that represents an individual in an OSP snapshot. This class provides methods to access different properties of an individual and display a summary of its information.
Active bindings
dataThe raw data of the individual (read-only)
nameThe name of the individual. Writable: must be a non-empty scalar string.
seedThe simulation seed for the individual
origin_dataThe OriginData object holding species, population, gender, physiological parameters, and calculation methods.
speciesThe species of the individual
populationThe population of the individual
genderThe gender of the individual
ageThe age value of the individual. Writable: assign an
age()object; see OriginData'sagefield for the full contract (a bare numeric scalar is rejected).age_unitThe age unit of the individual
weightThe weight value of the individual. Writable: assign a
weight()object; see OriginData'sweightfield for the full contract (a bare numeric scalar is rejected).weight_unitThe weight unit of the individual
heightThe height value of the individual. Writable: assign a
height()object; see OriginData'sheightfield for the full contract (a bare numeric scalar is rejected).height_unitThe height unit of the individual
gestational_ageThe gestational age value of the individual. Writable: assign a
gestational_age()object; see OriginData'sgestational_agefield for the full contract (a bare numeric scalar is rejected).gestational_age_unitThe gestational age unit of the individual
disease_stateThe disease state of the individual
disease_state_parametersThe disease state parameters of the individual
parametersThe list of parameter objects with a custom print method. Writable: must be a list, or
NULLto clear.calculation_methodsThe calculation methods of the individual, returned as a character vector for backwards compatibility. Use
$origin_data$calculation_methodsto access the CalculationMethods object directly.expression_profilesRead/write. The expression profiles attached to the individual, as a character vector of composite names (
Molecule|Species|Category) orNULLwhen none are attached. Assigning a character vector replaces the attached profiles; assigningNULLorcharacter(0)removes them (no empty array is serialized).descriptionRead/write. Free-text description of the individual, or
NULLwhen none is set. Assigning a length-1 character sets it; assigningNULLremoves it.
Methods
Individual$to_df()
Convert individual data to tibbles