Python client for Pepkio Standard Curve & Concentration Calculator via the Tools REST API
Project description
Pepkio Standard Curve & Concentration Calculator
Call the Pepkio absorbance-curve-calculator REST API from Python to fit standard curves and return dilution-corrected sample concentrations with QC flags.
What It Does
Plate-reader exports for BCA, Bradford, or ELISA assays need blank subtraction, curve model selection, interpolation, and dilution correction before concentrations can be reported. Rebuilding that workflow in a spreadsheet for each plate is slow and error-prone.
This package submits 96-well absorbance data, well layout, standard concentrations, and dilution factors to the same Pepkio Tools engine as the hosted web calculator. It returns fitted model parameters, side-by-side R² comparisons, per-sample concentrations with formula paths, and QC flags for high replicate CV or out-of-range ODs.
Programmatic runs require a network connection and a Pepkio API key. Calculations are not bundled for offline use.
Features
- Assay types: BCA, Bradford, sandwich ELISA, competitive ELISA
- Blank subtraction and assay-aware default models (linear for protein assays, 4PL for ELISA)
- Model comparison: linear, quadratic, 4PL, inverted 4PL with R²
- Optional
model_overrideandexcluded_wells - Dilution correction with formula path in output
- QC flags: replicate CV > 20%, out-of-range ODs, R² thresholds
- Manifest examples:
bca_linear,sandwich_elisa_4pl,competitive_elisa_4pl,blocking_few_standards - CLI:
pepkio-absorbance-curve-calculator manifestandrun - Configuration via
PEPKIO_API_KEYandPEPKIO_API_BASE_URL
Installation
pip install pepkio-absorbance-curve-calculator
Set an API key with tools:run scope before calling run():
export PEPKIO_API_KEY="your-key"
Create a key in your Pepkio account API keys settings.
Quick Example
from pepkio_absorbance_curve_calculator import PepkioClient
with PepkioClient() as client:
inp = client.get_example_input("bca_linear")
result = client.run(inp)
for sample in result.result["samples"]:
print(sample["sample_id"], sample["corrected_conc"], sample.get("formula_path"))
CLI:
pepkio-absorbance-curve-calculator run --example bca_linear
Manifest inspection does not require an API key.
Typical Use Cases
- BCA protein assay standard curve from 96-well absorbance data
- ELISA sample concentration back-calculation with dilution factors
- Comparing linear vs 4PL fit for Bradford or ELISA data
- Automated reanalysis of plate-reader exports in notebooks or CI
- QC screening for R², replicate CV, and out-of-range samples before reporting
Scientific Background
Blank wells are averaged and subtracted before fitting. BCA and Bradford default to linear regression; ELISA defaults to 4PL (sandwich) or inverted 4PL (competitive). Corrected concentration = interpolated concentration × dilution factor. The engine flags R² below 0.98 (linear) or 0.995 (4PL), replicate CV above 20%, and ODs outside the standard range.
Web Application
For researchers who prefer a graphical interface, an interactive Standard Curve Calculator is available in the browser.
The web interface adds paste-from-Excel grid entry, one-click well exclusion with audit logging, CSV/PDF export with curve plots, and reload of recent runs.
Documentation and Resources
Source code and issue tracking: github.com/pepkio/pepkio-absorbance-curve-calculator
Web application: https://www.pepkio.com/tools/absorbance-curve-calculator
About Pepkio
Pepkio develops software tools and provides bioinformatics analysis services for life science research. See https://www.pepkio.com for additional tools and services.
Keywords
standard curve, absorbance calculator, ELISA 4PL, BCA assay, Bradford assay, concentration back-calculation, plate reader analysis, 96-well absorbance, dilution factor, blank subtraction, optical density interpolation, model comparison R squared, replicate CV QC, pepkio-absorbance-curve-calculator, Python ELISA API, immunoassay quantification, protein assay calculator, REST API standard curve, how to fit BCA standard curve from Python, back-calculate ELISA concentration with dilution factor, compare linear and 4PL fit programmatically, automate plate reader absorbance analysis, flag out of range ELISA samples API, standard curve QC before reporting results, Python client absorbance to concentration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pepkio_absorbance_curve_calculator-0.1.0.tar.gz.
File metadata
- Download URL: pepkio_absorbance_curve_calculator-0.1.0.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76a1785b54f58ca99d4d4ceb94724728046c04d5e358bc5cc43692571249003f
|
|
| MD5 |
6d4fb9d89abdb476ab0dd6d76f9b5cf1
|
|
| BLAKE2b-256 |
07e23672e1211d26fb5d218628dc189e112fb54557e8bc6a34d3f978af6f5e64
|
File details
Details for the file pepkio_absorbance_curve_calculator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pepkio_absorbance_curve_calculator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32bdf710b94ed3f1e7e8fa717465471de1bf5a839f81e8f2869e93379400cec0
|
|
| MD5 |
fbaa48a0a27b0650b3e13a7c30cb1f86
|
|
| BLAKE2b-256 |
78d874a6b015e4a2220ea3dcb59df5b215dbdf24db7d4bb0155232f0599777c1
|