Skip to contents

Builds the tables shown in the "How These Numbers Were Produced" section of the processing report from the provenance that gDR records in each experiment (see get_SE_provenance): one row per fit, with the function, its version, its settings and the model, and one row per processing step, described in a sentence.

Usage

get_provenance_tables(x)

Arguments

x

MultiAssayExperiment or SummarizedExperiment.

Value

A list with two data.tables:

  • fits: one row per fit, with columns assay, fit_source, fn, settings and model.

  • steps: one row per processing step, with columns step and description.

For a MultiAssayExperiment, both tables start with an experiment column naming the experiment of each row; a SummarizedExperiment is a single experiment, so it has no such column.

Both tables are empty for objects without provenance.

Author

Bartosz Czech czech.bartosz@external.gene.com

Examples

mae <- gDRutils::get_synthetic_data("small")
tables <- get_provenance_tables(mae)
tables$fits
#>      experiment   assay fit_source
#>          <char>  <char>     <char>
#> 1: single-agent Metrics        gDR
#>                                               fn
#>                                           <char>
#> 1: gDRutils::fit_drug_response_metrics (1.11.27)
#>                                                                                                        settings
#>                                                                                                          <char>
#> 1: capping_fold = 5, range_conc = c(0.005, 5), pcutoff = 0.05, n_point_cutoff = 4, force_fit = FALSE, cap = 0.1
#>                                                                                                 model
#>                                                                                                <char>
#> 1: 3-parameter log-logistic Hill, upper asymptote fixed at 1 (drc::LL.3u with the default solver_drc)