Package: aNCA 0.1.0.9208

Valentin Legras

aNCA: (Pre-)Clinical NCA in a Dynamic Shiny App

An interactive 'shiny' application for performing non-compartmental analysis (NCA) on pre-clinical and clinical pharmacokinetic data. The package builds on 'PKNCA' for core estimators and provides interactive visualizations, CDISC outputs ('ADNCA', 'PP', 'ADPP'), configurable TLGs (tables, listings, and graphs) and draft slide decks. Typical use cases include exploratory analysis, validation, reporting or teaching/demonstration of NCA methods. Methods and core estimators are described in Denney, Duvvuri, and Buckeridge (2015) "Simple, Automatic Noncompartmental Analysis: The PKNCA R Package" <doi:10.1007/s10928-015-9432-2>.

Authors:Ercan Suekuer [aut], Gerardo Jose Rodriguez [aut], Pascal Baertschi [aut], Jana Spinner [aut], Mateusz Kolomanski [aut], Lucy Aspridis [aut], Valentin Legras [aut, cre], F. Hoffmann-La Roche AG [cph, fnd]

aNCA_0.1.0.9208.tar.gz
aNCA_0.1.0.9208.zip(r-4.7-any)aNCA_0.1.0.9208.zip(r-4.6-any)aNCA_0.1.0.9208.zip(r-4.5-any)
aNCA_0.1.0.9208.tgz(r-4.6-any)aNCA_0.1.0.9208.tgz(r-4.5-any)
aNCA_0.1.0.9208.tar.gz(r-4.7-any)aNCA_0.1.0.9208.tar.gz(r-4.6-any)
aNCA_0.1.0.9208.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
aNCA/json (API)

# Install 'aNCA' in R:
install.packages('aNCA', repos = c('https://pharmaverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/pharmaverse/anca/issues

Pkgdown/docs site:https://pharmaverse.github.io

Datasets:

On CRAN:

Conda:

ncaopen-sourcepharmacokinetics

7.45 score 44 stars 11 scripts 486 downloads 101 exports 87 dependencies

Last updated from:f8d921bfc8. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK396
source / vignettesOK245
linux-releaseOK413
macos-releaseOK375
macos-oldrelOK289
windows-develOK415
windows-releaseOK368
windows-oldrelOK416
wasm-releaseOK134

Exports:add_exclusion_reasonsadd_label_attributeadd_settings_versionadjust_class_and_lengthapply_filtersapply_labelsapply_mappingapply_unit_defaultscalculate_ratioscalculate_summary_statscalculate_table_ratioscdisc_validation_blocks_savechanged_unitsconvert_volume_unitscreate_metabflcreate_settings_versioncreate_start_imputedelete_settings_versiondetect_study_typesdose_profile_duplicatesexploration_individualplotexploration_meanplotexport_cdiscexport_validation_blocks_savefilter_breaksflexible_violinboxplotformat_pkncaconc_dataformat_pkncadata_intervalsformat_pkncadose_datag_lineplotg_pkcg01_ling_pkcg01_logg_pkcg01_sbsg_pkcg02_ling_pkcg02_logg_pkcg02_sbsg_pkcg03_ling_pkcg03_logg_pkcg03_sbsgenerate_pre_specsgenerate_tooltip_textget_conversion_factorget_halflife_plotsget_labelget_settings_codeinterval_add_imputeinterval_remove_imputel_pkcl01l_pkcl01_tadl_pkcl02_uril_pkpl01l_pkpl01_mpl_pkpl04_mpmultiple_matrix_ratiosp_pkcg03_lin_dosep_pkcg03_log_dosep_pkcg03_sbs_dosep_pkpg01_cump_pkpg01_perp_pkpg02_dosepropp_pkpg03_boxpp_pkpg04_boxpp_pkpg06_mpparse_annotationpivot_wider_pknca_resultspk_dose_qc_plotpk.calc.ermaxpk.calc.ertlstpk.calc.ertmaxpk.calc.volpkpkcg01pkcg02pkcg03PKNCA_build_units_tablePKNCA_calculate_ncaPKNCA_create_data_objectPKNCA_hl_rules_exclusionPKNCA_impute_method_start_c1PKNCA_impute_method_start_logslopePKNCA_update_data_objectread_pkread_settingsread_versioned_settingsremove_pp_not_requestedrun_appsettings_version_summarysimplify_unitt_pkct01t_pkct01_doset_pkct01_dose_tadt_pkct01_tadt_pkpt03_colt_pkpt03_MP_colt_pkpt07_normt_pkpt08_urit_pkpt11_gmrtranslate_termsupdate_main_intervalsvalidate_cdisc_typesvalidate_export_outputswrite_versioned_settings

Dependencies:askpassbackportsbase64encbslibcachemcheckmateclicommonmarkcpp11crosstalkcurldata.tabledigestdplyrevaluatefarverfastmapfontawesomeformattersfsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttpuvhttrisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecycleloggermagrittrmemoisemimenlmeopensslotelpillarpkgconfigPKNCAplotlypromisespurrrR6rappdirsRColorBrewerRcppreactablereactable.extrasreactRrjsonrlangrmarkdownS7sassscalesshinyshinycssloadersshinyjquishinyjsshinyWidgetssourcetoolsstringistringrsystibbletidyrtidyselecttinytexunitsutf8vctrsviridisLitewithrwritexlxfunxtableyamlzip

Readme and manuals

Help Manual

Help pageTopics
Compresses a numeric vector into the simplest possible character string that, when evaluated, will create the same numeric vector..compress_range
Helper function create text used to filter data frame.create_filter_expr
Evaluates range notation. If provided notation is invalid, returns NA..eval_range
Tooltip construction helper.handle_tooltips
Add Exclusion Reasons to PKNCAdata Objectadd_exclusion_reasons
Helper function to add "label" attribute to columns based on parameter names.add_label_attribute
Add a slide with a plot onlyadd_pptx_sl_plot
Add a slide with both a plot and a tableadd_pptx_sl_plottable
Add a slide with a table onlyadd_pptx_sl_table
Helper to create a Quarto code chunk for a plotadd_qmd_plot
Add a slide to the Quarto document with a single plotadd_qmd_sl_plot
Add a slide to the Quarto document with a plot and two tables (side by side)add_qmd_sl_plottabletable
Helper to create a Quarto code chunk for a tableadd_qmd_table
Add a new version to an existing versioned settings listadd_settings_version
Helper: adjust class and length (optional) for a data.frame based on metadata_nca_variablesadjust_class_and_length
adnca_exampleadnca_example
Apply Filters to a Datasetapply_filters
Apply Labels to a datasetapply_labels
Apply UI-Based Column Mapping to a Datasetapply_mapping
Apply default target units onto a data-derived units tableapply_unit_defaults
Links the table ratio of the App with the ratio calculations via PKNCA resultscalculate_ratio_app
Calculate Ratios from PKNCA Resultscalculate_ratios
Calculate Summary Statisticscalculate_summary_stats
Apply Ratio Calculations to PKNCAresult Objectcalculate_table_ratios
Does a set of validation findings block saving?cdisc_validation_blocks_save
Keep only units that differ from their data-derived defaultchanged_units
Convert Volume Units to Match Concentration Denominator Unitsconvert_volume_units
Create METABFL Column Based on Selected Metabolitescreate_metabfl
Create a PowerPoint presentation with dose escalation results, including main and extra figures Adds slides for summary tables, mean plots, line plots, and individual subject resultscreate_pptx_dose_slides
Create a new Quarto presentation file with YAML header and setup chunkcreate_qmd_doc
Create all slides for dose escalation results in a Quarto documentcreate_qmd_dose_slides
Create a versioned settings entrycreate_settings_version
Create C0 Impute Columncreate_start_impute
Delete a version from a versioned settings listdelete_settings_version
Detect study typesdetect_study_types
dm_exampledm_example
Create duplicates in concentration data with Pre-dose and Last Values for Dosing Cyclesdose_profile_duplicates
ex_exampleex_example
Create an Individual PK Line Plotexploration_individualplot
Create a Mean PK Line Plotexploration_meanplot
Export CDISC Dataexport_cdisc
Do export findings block saving?export_validation_blocks_save
Filter Breaks for X-Axisfilter_breaks
Flexible Violin/Box Plotflexible_violinboxplot
Create PK Concentration Datasetformat_pkncaconc_data
Create Dose Intervals Datasetformat_pkncadata_intervals
Create PK Dose Datasetformat_pkncadose_data
Formats a unit string if a unique unit existsformat_unit_string
Generate a Unified Line Plot for PK Datag_lineplot
Wrapper around aNCA::pkcg01() function. Calls the function with 'LIN' scale argument.g_pkcg01_lin
Wrapper around aNCA::pkcg01() function. Calls the function with 'LOG' scale argument.g_pkcg01_log
Wrapper around aNCA::pkcg01() function. Calls the function with 'SBS' scale argument.g_pkcg01_sbs
Wrapper around aNCA::pkcg02() function. Calls the function with 'LIN' scale argument.g_pkcg02_lin
Wrapper around aNCA::pkcg02() function. Calls the function with 'LOG' scale argument.g_pkcg02_log
Wrapper around aNCA::pkcg02() function. Calls the function with 'SBS' scale argument.g_pkcg02_sbs
Wrapper around aNCA::pkcg03() function. Calls the function with 'LIN' scale argument.g_pkcg03_lin
Wrapper around aNCA::pkcg03() function. Calls the function with 'LOG' scale argument.g_pkcg03_log
Wrapper around aNCA::pkcg03() function. Calls the function with 'SBS' scale argument.g_pkcg03_sbs
Generate Pre-Specifications for CDISC Datasetsgenerate_pre_specs
Generate HTML Tooltip Textgenerate_tooltip_text
Transform Unitsget_conversion_factor
Create a Plotly Half-life Plotget_halflife_plots
Get the Label of a Headingget_label
Generate a session script from a settings YAML fileget_settings_code
Add specified imputation methods to the intervals in a PKNCAdata or data.frame object.interval_add_impute
Remove specified imputation from the intervals in a PKNCAdata or data.frame (intervals) object.interval_remove_impute
Helper function for BLQ processingkeep_blq_timepoints
Create PK Concentration Listingl_pkcl01
Wrapper around aNCA::l_pkcl01() for TAD-based concentration listings.l_pkcl01_tad
Urine Concentration and Volume Listing (pkcl02)l_pkcl02_uri
Individual PK Parameters Listing (pkpl01)l_pkpl01 l_pkpl01_mp
Individual Treatment Comparison Listing (pkpl04)l_pkpl04_mp
metadata_nca_parametersmetadata_nca_parameters
metadata_nca_variablesmetadata_nca_variables
Calculate Matrix Ratios This function calculates the ratios for a given data set, based on the shared time points for each matrix concentration sample. The user can input multiple tissues for which ratios should be calculated.multiple_matrix_ratios
Wrapper around aNCA::pkcg03() function. Mean linear plot grouped by dose.p_pkcg03_lin_dose
Wrapper around aNCA::pkcg03() function. Mean log plot grouped by dose.p_pkcg03_log_dose
Wrapper around aNCA::pkcg03() function. Mean side-by-side plot grouped by dose.p_pkcg03_sbs_dose
Mean Urine PK Parameter Profile Plot (pkpg01)p_pkpg01_cum p_pkpg01_per
Dose-Proportionality Scatter Plot with Power-Model Regression (pkpg02)p_pkpg02_doseprop
Boxplot of Primary PK Parameters (pkpg03)p_pkpg03_boxp p_pkpg04_boxp
Boxplot of Metabolite/Parent PK Parameter Ratios (pkpg06)p_pkpg06_mp
Generate an Empty Plotly Objectparse_annotation
pc_examplepc_example
Reshape PKNCA Resultspivot_wider_pknca_results
Create a PK Dose Quality Control (QC) Plotpk_dose_qc_plot
Calculate the maximum excretion ratepk.calc.ermax
Calculate the midpoint collection time of the last measurable excretion ratepk.calc.ertlst
Calculate the midpoint collection time of the maximum excretion ratepk.calc.ertmax
Calculate the total urine volumepk.calc.volpk
Generate PK Concentration-Time Profile Plotspkcg01
Generate Combined PK Concentration-Time Profile Plot by Cohortpkcg02
Generate PK Concentration-Time Profile Plotspkcg03
Build Units Table for PKNCAPKNCA_build_units_table
Calculates results for PKNCA analysis.PKNCA_calculate_nca
Creates a 'PKNCA::PKNCAdata' object.PKNCA_create_data_object
Exclude NCA results based on user-defined rules over the half-life related parameters This function applies exclusion rules to the NCA results based on user-defined parameters.PKNCA_hl_rules_exclusion
This function imputes the start concentration using the first concentration after dosePKNCA_impute_method_start_c1
This function imputes the start concentration using the log slope method.PKNCA_impute_method_start_logslope
Create a PKNCAdata Object for NCA or Slope AnalysisPKNCA_update_data_object
Prepare Data for PK Dose QC Plottingprepare_plot_data
Reads datasets from various file formats.read_pk
Helper Logic to parse and structure settings YAMLread_settings
Read a versioned settings YAML fileread_versioned_settings
Filter Out Parameters Not Requested in PKNCA Results (Pivot Version)remove_pp_not_requested
Apply Imputation for PKNCA Datarm_impute_obs_params
Run the Shiny apprun_app
Build a summary table of version entriessettings_version_summary
Simplify compound unit expressionssimplify_unit
Summary Concentration Table (pkct01)t_pkct01 t_pkct01_dose t_pkct01_dose_tad t_pkct01_tad
Summary PK Parameters Table - statistics in columns (pkpt03)t_pkpt03_col t_pkpt03_MP_col
Mean Dose-Normalized PK Parameters Table (pkpt07)t_pkpt07_norm
Mean Urine Amount and Percent Recovered Table (pkpt08)t_pkpt08_uri
GMR Table with Confidence Intervals (pkpt11)t_pkpt11_gmr
Translate Terms from One Nomenclature to Anothertranslate_terms
Update an intervals data frame with user-selected parameters by study typeupdate_main_intervals
Apply Slope Rules to Update Dataupdate_pknca_with_rules
Validate CDISC datasets against metadata-declared data typesvalidate_cdisc_types
Validate exported outputs before savingvalidate_export_outputs
Validates data table with raw pk data.validate_pk
Write a versioned settings YAML filewrite_versioned_settings