Skip to contents

The fit functions known to this session, with the description each one carries, for presenting a choice.

Usage

get_fit_fns(data_type = NULL)

Arguments

data_type

character vector; keep only functions written for these profiles. NULL keeps all.

Value

data.frame, one row per registered function, with columns name, package, fn_name, data_type (comma separated), model, description, reference and available. Zero rows when nothing matches.

Details

A function is listed as unavailable when its package is not installed, or when its available predicate returns FALSE — a fit needing Python is registered but not offered on a machine without it.

model, description and reference are read from the attributes set_fit_fn_info attaches, and are NA for a function that does not carry them.

Providers register when they load

An entry exists only once the package registering it has been loaded, so a fit function from another package is missing from this table until then. Call requireNamespace() on the packages you care about first if you need the full catalogue.

Examples

get_fit_fns()
#>                            name  package                       fn_name
#> 1     fit_drug_response_metrics gDRutils     fit_drug_response_metrics
#> 2  fit_drug_response_metrics_4p gDRutils  fit_drug_response_metrics_4p
#> 3 fit_drug_response_metrics_xcx gDRutils fit_drug_response_metrics_xcx
#> 4               gompertz_fit_fn gDRutils               gompertz_fit_fn
#> 5               hormesis_fit_fn gDRutils               hormesis_fit_fn
#> 6                    ll3_fit_fn gDRutils                    ll3_fit_fn
#> 7                    ll5_fit_fn gDRutils                    ll5_fit_fn
#> 8               weibull1_fit_fn gDRutils               weibull1_fit_fn
#> 9               weibull2_fit_fn gDRutils               weibull2_fit_fn
#>      data_type
#> 1 single-agent
#> 2 single-agent
#> 3 single-agent
#> 4 single-agent
#> 5 single-agent
#> 6 single-agent
#> 7 single-agent
#> 8 single-agent
#> 9 single-agent
#>                                                                                                model
#> 1 3-parameter log-logistic Hill, upper asymptote fixed at 1 (drc::LL.3u with the default solver_drc)
#> 2      4-parameter log-logistic Hill, upper asymptote fitted (drc::LL.4 with the default solver_drc)
#> 3                                              3-parameter Hill, inverted at further response levels
#> 4                                                                                                G.4
#> 5                                                                                               BC.4
#> 6                                                                                               LL.3
#> 7                                                                                               LL.5
#> 8                                                                                               W1.4
#> 9                                                                                               W2.4
#>                                                                                                                                                                                                                                           description
#> 1 Hill curve of the response against concentration, fitted per normalization type. Falls back to a constant fit when fewer than n_point_cutoff concentrations are available or, unless force_fit = TRUE, when the F-test p-value is at least pcutoff.
#> 2                                                                         Hill curve of the response against concentration with a free upper asymptote, fitted per normalization type. Falls back to a constant fit like fit_drug_response_metrics().
#> 3                                                                       The pipeline's own fit, plus the concentration at each requested inhibition level (xc90 = IC90, the concentration at which the response reaches 0.1). The curve is unchanged.
#> 4                                                                                                                                                                                                                    4-parameter Gompertz, asymmetric
#> 5                                                                                                                                                                           Brain-Cousens, for a low-dose stimulation a log-logistic cannot represent
#> 6                                                                                                                                                                                                3-parameter log-logistic, lower asymptote fixed at 0
#> 7                                                                                                                                                                                                                5-parameter log-logistic, asymmetric
#> 8                                                                                                                                                                                                              4-parameter Weibull type 1, asymmetric
#> 9                                                                                                                                                                                                              4-parameter Weibull type 2, asymmetric
#>                                                                      reference
#> 1                 Ritz et al. 2015, PLOS ONE, doi:10.1371/journal.pone.0146021
#> 2                 Ritz et al. 2015, PLOS ONE, doi:10.1371/journal.pone.0146021
#> 3        Hafner et al. 2016, Nat Methods 13(6):521-527, doi:10.1038/nmeth.3853
#> 4 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 5 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 6 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 7 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 8 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 9 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#>   available
#> 1      TRUE
#> 2      TRUE
#> 3      TRUE
#> 4      TRUE
#> 5      TRUE
#> 6      TRUE
#> 7      TRUE
#> 8      TRUE
#> 9      TRUE
get_fit_fns(data_type = "single-agent")
#>                            name  package                       fn_name
#> 1     fit_drug_response_metrics gDRutils     fit_drug_response_metrics
#> 2  fit_drug_response_metrics_4p gDRutils  fit_drug_response_metrics_4p
#> 3 fit_drug_response_metrics_xcx gDRutils fit_drug_response_metrics_xcx
#> 4               gompertz_fit_fn gDRutils               gompertz_fit_fn
#> 5               hormesis_fit_fn gDRutils               hormesis_fit_fn
#> 6                    ll3_fit_fn gDRutils                    ll3_fit_fn
#> 7                    ll5_fit_fn gDRutils                    ll5_fit_fn
#> 8               weibull1_fit_fn gDRutils               weibull1_fit_fn
#> 9               weibull2_fit_fn gDRutils               weibull2_fit_fn
#>      data_type
#> 1 single-agent
#> 2 single-agent
#> 3 single-agent
#> 4 single-agent
#> 5 single-agent
#> 6 single-agent
#> 7 single-agent
#> 8 single-agent
#> 9 single-agent
#>                                                                                                model
#> 1 3-parameter log-logistic Hill, upper asymptote fixed at 1 (drc::LL.3u with the default solver_drc)
#> 2      4-parameter log-logistic Hill, upper asymptote fitted (drc::LL.4 with the default solver_drc)
#> 3                                              3-parameter Hill, inverted at further response levels
#> 4                                                                                                G.4
#> 5                                                                                               BC.4
#> 6                                                                                               LL.3
#> 7                                                                                               LL.5
#> 8                                                                                               W1.4
#> 9                                                                                               W2.4
#>                                                                                                                                                                                                                                           description
#> 1 Hill curve of the response against concentration, fitted per normalization type. Falls back to a constant fit when fewer than n_point_cutoff concentrations are available or, unless force_fit = TRUE, when the F-test p-value is at least pcutoff.
#> 2                                                                         Hill curve of the response against concentration with a free upper asymptote, fitted per normalization type. Falls back to a constant fit like fit_drug_response_metrics().
#> 3                                                                       The pipeline's own fit, plus the concentration at each requested inhibition level (xc90 = IC90, the concentration at which the response reaches 0.1). The curve is unchanged.
#> 4                                                                                                                                                                                                                    4-parameter Gompertz, asymmetric
#> 5                                                                                                                                                                           Brain-Cousens, for a low-dose stimulation a log-logistic cannot represent
#> 6                                                                                                                                                                                                3-parameter log-logistic, lower asymptote fixed at 0
#> 7                                                                                                                                                                                                                5-parameter log-logistic, asymmetric
#> 8                                                                                                                                                                                                              4-parameter Weibull type 1, asymmetric
#> 9                                                                                                                                                                                                              4-parameter Weibull type 2, asymmetric
#>                                                                      reference
#> 1                 Ritz et al. 2015, PLOS ONE, doi:10.1371/journal.pone.0146021
#> 2                 Ritz et al. 2015, PLOS ONE, doi:10.1371/journal.pone.0146021
#> 3        Hafner et al. 2016, Nat Methods 13(6):521-527, doi:10.1038/nmeth.3853
#> 4 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 5 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 6 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 7 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 8 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#> 9 Ritz et al. 2015, PLoS ONE 10(12):e0146021, doi:10.1371/journal.pone.0146021
#>   available
#> 1      TRUE
#> 2      TRUE
#> 3      TRUE
#> 4      TRUE
#> 5      TRUE
#> 6      TRUE
#> 7      TRUE
#> 8      TRUE
#> 9      TRUE