add_metabolite: add_metabolite

View source: R/functions_wrapper.R

add_metaboliteR Documentation

add_metabolite

Description

Adds a metabolite compartment to a model

The flow from the central compartment to the metabolite compartment will be unidirectional.

Presystemic indicate that the metabolite compartment will be directly connected to the DEPOT. If a depot compartment is not present, one will be created.

Usage

add_metabolite(model, drug_dvid = 1, presystemic = FALSE)

Arguments

model

(Model) Pharmpy model

drug_dvid

(numeric) DVID for drug (assuming all other DVIDs being for metabolites)

presystemic

(logical) Decide wether or not to add metabolite as a presystemetic fixed drug.

Value

(Model) Pharmpy model object

Examples

## Not run: 
model <- load_example_model("pheno")
model <- add_metabolite(model)

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.