Dose-response records

Dose-response records#

Write the record of each cell type that a dose-response run checked, with the tables behind it, a methods paragraph and a manifest; Dose-response record files specifies the files and the keys, and Record each cell type’s analysis shows how to use them. The methods record() and methods_text() of a dose-response result give one cell type’s record and the methods paragraph.

Write the dose-response records of a run into a directory, with the tables behind them, a methods paragraph and a manifest of every file.

A regulator who receives a transcriptomic point of departure has to judge what was done to the data and be able to run it again. The OECD Omics Reporting Framework lists what a benchmark-dose analysis of omics data reports in the 31 items of its module 4.3, from the input data and the software to the models, the benchmark responses and a manifest of the files handed over, with the meaning of each table’s rows and columns (OECD 2023); US EPA’s ETAP reports carry it as an appendix (US EPA 2024, Sec. 3.7). write_dose_response_records() writes a record of each cell type in the shape of module 4.3, keyed by the items’ numbers, with what the module has no field for: the cells pooled per profile, voom’s weights, the moderation’s prior, random effects, the run time of each stage, the arguments that run the analysis again, and which of the rules of R-ODAF, the Regulatory Omics Data Analysis Framework (Verheijen et al. 2022), the genes the run selected meet. Beside the records it writes the tables of samples, gate calls, benchmark doses, rule-set verdicts, points of departure and permutation checks as tab-separated text, the methods paragraph and manifest.json. https://docs.nygen.io/CytePool/reference/dose-response-records specifies the files and keys, and https://docs.nygen.io/CytePool/statistics/potency#dose-response-records shows how to use them.

References

OECD (2023). OECD Omics Reporting Framework (OORF): Guidance on reporting elements for the regulatory use of omics data from laboratory-based toxicology studies. OECD Series on Testing and Assessment 390. OECD Publishing. doi:10.1787/6bb2e6ce-en

US EPA (2024). Standard Methods for Development of EPA Transcriptomic Assessment Products (ETAPs). EPA/600/X-23/083, US Environmental Protection Agency, Office of Research and Development. doi:10.23645/epacomptox.25365496

Verheijen MCT, Meier MJ, Asensio JO, Gant TW, Tong W, Yauk CL, Caiment F (2022). R-ODAF: omics data analysis framework for regulatory application. Regulatory Toxicology and Pharmacology 131, 105143. doi:10.1016/j.yrtph.2022.105143

cytepool.write_dose_response_records(result, directory, *, points_of_departure=None, permutation_check=None, study_conditions=None)#

Write the dose-response record of every cell type a run checked into a new directory, with the tables behind them, a methods paragraph and a manifest.

A reviewer of a transcriptomic point of departure receives one directory: the record of each cell type (DoseResponseResult.record, in the shape of OECD’s reporting module for benchmark-dose analyses of omics data), the tables they summarize as tab-separated text, the methods paragraph (DoseResponseResult.methods_text) and manifest.json, which lists each file with its description and the meaning of its rows and columns, as OECD (2023) asks of the files handed over (item 4.3.7.1), and with its row count and its SHA-256. Each test’s table, the curves and the EC50s are not written, since module 4.3 has no item for them: result.table(group, name) gives them, as does a run again from a record’s rerun. The directory appears only once it is complete: a write that fails leaves nothing at directory. https://docs.nygen.io/CytePool/reference/dose-response-records specifies the files.

Parameters:
Returns:

A table of the files other than manifest.json, as the manifest lists them: file, description, group_id (None for a file of every cell type), n_rows (NaN for a file that is not a table) and sha256.

Raises:
  • TypeError – If result is not a DoseResponseResult, or an argument has the wrong type.

  • ValueError – If directory is a URL, points_of_departure or permutation_check come from another run, or study_conditions names an unknown key.

  • FileExistsError – If directory exists.

  • FileNotFoundError – If its parent does not exist.

Used in: Dose response per cell type

Explained in: Choosing a method, Potency and points of departure, Dose-response record files