Skip to content

Commit

Permalink
Added CQ_TQ_params_vivax to exported objects. Added some text to the …
Browse files Browse the repository at this point in the history
…vignette to reference drug impacts and prophylaxis.
  • Loading branch information
RJSheppard committed Nov 1, 2024
1 parent 8ebc04e commit 9ad598f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

export(AL_params)
export(CQ_PQ_params_vivax)
export(CQ_TQ_params_vivax)
export(CQ_params_vivax)
export(DHA_PQP_params)
export(SP_AQ_params)
Expand Down
1 change: 1 addition & 0 deletions R/drug_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ CQ_PQ_params_vivax <- c(0.948, 0.5, 5, 20, 0.713, 10, 5.5)
#' @details Use a vector of preset parameters for the CQ-TQ drug (chloroquine and tafenoquine) acting on P. vivax
#' @details Default parameters, from L to R, are: drug_efficacy: 1, drug_rel_c: 0.5, drug_prophylaxis_shape: 5, drug_prophylaxis_scale: 20,
#' drug_hypnozoite_efficacy: 0.713, drug_hypnozoite_prophylaxis_shape: 5.5, drug_hypnozoite_prophylaxis_scale: 30
#' @export
CQ_TQ_params_vivax <- c(1, 0.5, 5, 20, 0.713, 5, 30)

#' @title Parameterise drugs to use in the model
Expand Down
2 changes: 1 addition & 1 deletion R/human_infection.R
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ ls_treatment_prophylaxis_efficacy <- function(
)
}
}

ls_prophylaxis
}

#' @title Calculate light microscopy detectable infections (p.v only)
#' @description
#' Sample light microscopy detectable infections from all infections
Expand Down
2 changes: 1 addition & 1 deletion R/processes.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ create_processes <- function(
immunity_process = create_exponential_decay_process(variables$ica,
parameters$rc)
)

if(parameters$parasite == "falciparum"){
processes <- c(
processes,
Expand Down
4 changes: 4 additions & 0 deletions vignettes/Plasmodium_vivax.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ The *P. vivax* model tracks the number of hypnozoite batches of each individual

Successful liver-stage drug treatment results in the clearing of all hypnozoite batches of an individual.

### Drug treatment

While *P. falciparum* drugs have four parameters (efficacy, relative reduction in onwards infectivity, and two prophylaxis parameters: shape and scale), the *P. vivax* drug parameters may have four (if the drug only targets the blood stage infection) or seven parameters (if the drug also targets hypnozoites). These three additional parameters are drug efficacy on hypnozoite clearance and two hypnozoite prophylaxis parameters: shape and scale. The hypnozoite prophylaxis functions the same way as standard prophlylaxis to infection, but reduced the probability that a bite infection results in the formation of a new hypnozoite batch.

### Equilibrium

The malariaEquilibriumVivax package has been designed to calculate the equilibrium solution for the *P. vivax* model. This equilibrium is calculated by assigning an initial EIR value via the `set_equilibrium` function, as in the *P. falciparum* model. Based on the age and heterogeneity group of an individual, it assigns a human disease state, clinical and anti-parasite immunities and number of hypnozoite batches.
Expand Down

0 comments on commit 9ad598f

Please sign in to comment.