BRAID
- class synergy.combination.BRAID(drug1_model=None, drug2_model=None, mode='kappa', **kwargs)[source]
Bases:
ParametricSynergyModel2DBRAID synergy.
kappa and delta are the BRAID synergy parameters, though E3 is related to how much more effective the combination is than either drug alone. Note though that lim_{d1 -> inf, d2 -> inf}E(d1, d2) does not equal E3 in BRAID.
Interpretation of synergy parameters Parameter
Values
Synergy/Antagonism
kappa< 0
Antagonism
> 0
Synergism
delta[0, 1)
Antagonism
> 1
Synergism
- Parameters:
drug1_model (DoseResponseModel1D) – The model for the first drug.
drug2_model (DoseResponseModel1D) – The model for the second drug.
mode (str , default="kappa") – Options are “kappa”, “delta”, “both”. BRAID has model versions that fit synergy using the parameter “kappa”, the parameter “delta”, or both. The standard version only fits kappa, but the other variants are available.
- E(d1, d2)[source]
Calculate the expected effect of the combination of drugs at doses d1 and d2.
- Parameters:
d1 (ArrayLike) – Concentration of drug 1
d2 (ArrayLike) – Concentration of drug 2
- Return ArrayLike:
Expected effect of the combination of drugs at doses d1 and d2
- E_reference(d1, d2)[source]
Return the expected effect of the combination of drugs at doses d1 and d2.
- Parameters:
d1 (ArrayLike) – Concentration of drug 1
d2 (ArrayLike) – Concentration of drug 2
- Return ArrayLike:
Reference (additive) values of E at the given doses
- fit(d1, d2, E, **kwargs)
Fit the model to data.
- Parameters:
d1 (ArrayLike) – Concentration of drug 1
d2 (ArrayLike) – Concentration of drug 2
E (ArrayLike) – Effect of the combination of drugs at doses d1 and d2
kwargs (dict) –
p0: Initial parameter guesses
bootstrap_iterations: Number of bootstrap iterations to perform to estimate confidence intervals
use_jacobian: whether to use the model jacobian when fitting
Additional kwargs for
scipy.optimize.curve_fit()
- get_confidence_intervals(confidence_interval=95)
Return the lower bound and upper bound estimates for each parameter.
- get_parameters()
Return the model’s parameters as a dict keyed by parameter name.
- summarize(confidence_interval=95, tol=0.01)[source]
Print a summary table of the synergy model.
- property is_converged: bool
True if model.fit() was called and the optimization converged.
- property is_fit: bool
True if model.fit() was called.
- property is_specified: bool
True if all parameters are set.