Compound class for OSP snapshot compounds
Compound.RdAn R6 class that represents a compound in an OSP snapshot. This class provides methods to access different properties of a compound and display a summary of its information.
Compound processes are exposed via $processes, a flat named list of
Process objects. The per-category tibble accessors
($protein_binding_partners, $metabolizing_enzymes,
$hepatic_clearance, $transporter_proteins, $renal_clearance,
$biliary_clearance, $inhibition, $induction) are
lifecycle::deprecate_soft()-warned in favour of $processes and the
long-form processes tibble returned by get_compounds_dfs().
Active bindings
dataThe raw data of the compound (read-only). Refreshed from the embedded CalculationMethods and the cached Process objects so that mutations flow back to the export payload.
nameThe name of the compound. Writable: must be a non-empty scalar string.
is_small_moleculeWhether the compound is a small molecule. Writable: a single logical value, or
NULLto leave it unset (PK-Sim then defaults toTRUE).plasma_protein_binding_partnerThe plasma protein binding partner of the compound. Writable: one of
"Unknown","Albumin","Glycoprotein", orNULLto clear.molecular_weightThe molecular weight of the compound
molecular_weight_unitThe unit of the molecular weight
lipophilicityThe lipophilicity data of the compound. Writable: assign a
lipophilicity()object, a list of such objects to define several named alternatives (mark exactly one withdefault = TRUEto designate the group default; when none is marked, the first element is the default), a raw alternative list to set the array verbatim (the escape hatch for species-specific alternatives), orNULLto clear the property. A bare numeric scalar is rejected; uselipophilicity()instead.fraction_unboundThe fraction unbound data of the compound. Writable: assign a
fraction_unbound()object, a list of such objects to define several named alternatives (mark exactly one withdefault = TRUEto designate the group default; when none is marked, the first element is the default), a raw alternative list to set the array verbatim, orNULLto clear the property. A bare numeric scalar is rejected; usefraction_unbound()instead.solubilityThe solubility data of the compound. Writable: assign a
solubility()object to express reference pH, gain per charge, or a pH/value table, a list of such objects to define several named alternatives (mark exactly one withdefault = TRUEto designate the group default; when none is marked, the first element is the default), a raw alternative list to set the array verbatim, orNULLto clear the property. A bare numeric scalar is rejected; usesolubility()instead.intestinal_permeabilityThe intestinal permeability data of the compound. Writable: assign an
intestinal_permeability()object, a list of such objects to define several named alternatives (mark exactly one withdefault = TRUEto designate the group default; when none is marked, the first element is the default), a raw alternative list to set the array verbatim, orNULLto clear the property. A bare numeric scalar is rejected; useintestinal_permeability()instead.permeabilityThe permeability data of the compound. Writable: assign a
permeability()object, a list of such objects to define several named alternatives (mark exactly one withdefault = TRUEto designate the group default; when none is marked, the first element is the default), a raw alternative list to set the array verbatim, orNULLto clear the property. A bare numeric scalar is rejected; usepermeability()instead.pka_typesThe pKa types of the compound. Writable: assign a list of
list(type =, value =)entries (thecreate_compound()pKashape, converted tolist(Type =, Pka =)), a rawPkaType[]list (entries carryingType/Pka, set verbatim), orNULL/list()to clear the pKa types.processesA flat named list of Process objects, one per entry in the compound's
Processesarray. Duplicate names are disambiguated with a numeric suffix (_1,_2, ...). The list is built once at construction so that state changes made on a Process persist across accesses. Writable: assign a list of Process objects and/or raw process lists to rebuild the processes (duplicate names are disambiguated as at construction), orNULL/list()to clear them.calculation_methodsA CalculationMethods object holding the compound's calculation methods.
parametersThe additional parameters of the compound (excluding molecular weight)
protein_binding_partnersDeprecated. Filter
get_compounds_dfs()$processesoncategory == "protein_binding_partners", or iterateself$processesand checkprocess$category.metabolizing_enzymesDeprecated. See
$protein_binding_partners.hepatic_clearanceDeprecated. See
$protein_binding_partners.transporter_proteinsDeprecated. See
$protein_binding_partners.renal_clearanceDeprecated. See
$protein_binding_partners.biliary_clearanceDeprecated. See
$protein_binding_partners.inhibitionDeprecated. See
$protein_binding_partners.inductionDeprecated. See
$protein_binding_partners.
Methods
Compound$to_df()
Convert this compound's physicochemical properties and process parameters to a single long-form tibble (legacy shape).
Used by get_compounds_dfs() to assemble the compound-wide
properties tibble. The process-derived rows produced here are
lifecycle::deprecate_soft()-warned at the
get_compounds_dfs() entry point; prefer the long-form
processes tibble returned alongside.