NCA.jl

NCA.jl performs Non-Compartmental Analysis (NCA) of pharmacokinetic and pharmacodynamic data. It supports both plasma and urine analyses, single-dose and steady-state profiles, and provides a comprehensive set of NCA endpoints.

Workflow

A typical NCA workflow consists of these steps:

  1. Read data with read_nca or read_nca_pumas
  2. Transform (optional) with transform_nca for BLQ handling, sparse sampling, or LLQ truncation
  3. Run analysis with run_nca to compute NCA endpoints
  4. Summarize with summarize to compute summary statistics across subjects

Additional analyses:

Quick Start

using NCA, PharmaDatasets, DataFrames

df = dataset("ncakeppra")
rename!(df, :conc => :concentration)
df.route .= "ev"

nca_data = read_nca(df)
results = run_nca(nca_data)
summary = summarize(results)
41×10 DataFrame
RowparametersnumsamplesnonmissingminimummaximummeanstdgeomeangeostdgeomeanCV
StringInt64Int64Float64Float64Float64Float64Float64Float64Float64
1auc_extrap_percent_obs3003000.0070654515.72272.385152.370851.305323.65251208.695
2auc_extrap_percent_pred3003000.0056720715.63222.312652.328561.267773.62928206.586
3aucinf_dn_obs3003000.424271.308890.7103680.1308840.6990891.194317.8967
4aucinf_dn_pred3003000.4249351.307320.7097920.1306030.6985621.1938617.8596
5aucinf_obs300300115.721880.963358.642171.121317.5821.6605354.1558
6aucinf_pred300300115.772876.162358.316170.887317.3431.6599554.1134
7auclast300300113.1851.251349.096164.126309.9131.6525753.5749
8auclast_dn3003000.4138851.158370.6918450.1185520.6822081.1813316.7809
9aumc_extrap_percent_obs3003000.075390647.645210.42988.436566.808042.93837148.175
10aumc_extrap_percent_pred3003000.060530947.474410.13578.280266.630162.92152146.844
11aumcinf_obs300300412.1718404.792218.651430.181823.11.8907870.7412
12aumcinf_pred300300412.5168861.82208.71424.381816.781.8871270.48
13aumclast300300410.3885951.21914.451094.041625.081.7965563.9931
14cl_f_obs3003000.7640032.356991.452690.2533331.430431.194317.8967
15cl_f_pred3003000.7649212.35331.453680.2528921.431511.1938617.8596
16clast3003000.016.971.2941.332910.7241173.41382187.503
17clast_pred3003000.008027788.042861.244151.289580.7027573.37959184.548
18cmax30030018.91196.5269.143634.132960.62211.7005257.0646
19cmax_dn3003000.073840.2620270.1374830.03494630.1334471.2732224.5112
20cmin3003000.016.971.287131.323430.7221813.40547186.781
21cmin_dn3003001.33333e-50.011120.002495040.002102690.001589733.03703156.049
22half_life3003001.708079.840214.157021.304763.968171.3560331.1759
23lambdaz3003000.07044030.4058070.1828710.0561190.1746771.3560331.1759
24lambdazadjr23003000.9135440.9999980.9865380.0143830.9864311.014941.48313
25lambdazintercept3003001.599235.681884.036150.6478653.980421.1869517.2649
26lambdaznpoints3003003.015.07.676673.699246.744661.6951756.6761
27lambdazr23003000.9207490.9999990.9888010.01269190.9887181.013131.30429
28lambdaztimefirst3003000.2516.06.2455.649793.612243.25265173.766
29lambdaztimelast30030024.024.024.00.024.01.01.33449e-13
30mrtinf_obs3003002.4801712.60475.971191.675445.740551.3279828.9463
31mrtinf_pred3003002.4798412.57725.953251.666485.724991.3263528.8157
32mrtlast3003002.478487.830285.36421.106465.243671.2438922.0866
33n_samples30030016.016.016.00.016.01.00.0
34span3003000.85260213.61194.697812.126384.183781.6674154.6575
35tfinal30030024.024.024.00.024.01.01.33449e-13
36tlag3003000.00.00.00.00.0NaNNaN
37tlast30030024.024.024.00.024.01.01.33449e-13
38tmax3003000.02.00.3641670.3902120.0NaNNaN
39tmin30030020.024.023.93330.51293223.92721.023662.33828
40vz_f_obs3003003.933918.46138.48982.391288.189031.3042427.0373
41vz_f_pred3003003.9334718.44178.496432.392818.19521.3044427.054