Metadata-Version: 2.4
Name: qpictures
Version: 1.2.0
Summary: Interactive plots and analyses for qPCR data exported from Thermo QuantStudio Design & Analysis or Bio-Rad CFX Maestro.
Author-email: "SemiQuant (Jason Limberis)" <JasonLimberis@ucsf.edu>
Maintainer-email: "SemiQuant (Jason Limberis)" <JasonLimberis@ucsf.edu>
License-Expression: MIT
Project-URL: Homepage, https://github.com/SemiQuant/qPiCtuRes
Project-URL: Source, https://github.com/SemiQuant/qPiCtuRes
Project-URL: Issues, https://github.com/SemiQuant/qPiCtuRes/issues
Project-URL: Changelog, https://github.com/SemiQuant/qPiCtuRes/blob/main/CHANGELOG.md
Keywords: qpcr,rt-qpcr,plotly,bioinformatics,thermo,quantstudio,bio-rad,cfx,relative-quantification,standard-curve,absolute-quantification
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=2.0
Requires-Dist: numpy>=1.24
Requires-Dist: scipy>=1.10
Requires-Dist: plotly>=5.20
Requires-Dist: click>=8.1
Requires-Dist: rich>=13.0
Provides-Extra: export
Requires-Dist: kaleido>=0.2.1; extra == "export"
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: kaleido>=0.2.1; extra == "dev"
Dynamic: license-file

# qPiCtuRes

[![PyPI - Version](https://img.shields.io/pypi/v/qpictures.svg)](https://pypi.org/project/qpictures/)
[![Python](https://img.shields.io/pypi/pyversions/qpictures.svg)](https://pypi.org/project/qpictures/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Interactive plots and analyses for qPCR data exported from Thermo Fisher
QuantStudio Design & Analysis or Bio-Rad CFX Maestro (CFX Opus, CFX96, ...).

The first module turns a *Well Results* CSV into an interactive Plotly bar plot
of **relative quantities** (RQ = 2<sup>−ΔCq</sup>) against a chosen reference
sample, with log-10 y-axis and asymmetric error bars propagated from the Cq
SDs (Livak & Schmittgen, 2008).

## Offline web app

No Python? Download [`qpictures.html`](https://github.com/SemiQuant/qPiCtuRes/releases/latest/download/qpictures.html)
from the latest release and open it in Chrome, Edge, Firefox or Safari. Drop a
QuantStudio Well Results CSV or `.eds` run file, or a Bio-Rad CFX export (the
Cq Results CSV or a zip of the export folder), on it and you get the same
relative, paired and standard-curve analyses as the CLI, with interactive charts
(PNG and SVG downloads), a plate map to leave wells out, sample renaming and
drag-to-reorder bars.

The page also has analyses the CLI does not (yet): paired comparisons from the
standard curve (RQ corrected for efficiency, or quantities), and a Grouped tab
that treats samples like z_1, z_2, z_3 as biological replicates of group z and
compares groups with n = biological replicates.

The page is a single file that runs entirely in the browser: it needs no
internet connection, and your data never leave your computer. Its calculations
shared with this package are tested against it (the same tables to 13
significant digits, the same p-values to 9). It is built as one of the DrDx.Me offline tools.

## Install

### From PyPI (end users)

```bash
pip install qpictures
# with optional static-image export (PDF / PNG / SVG via kaleido)
pip install "qpictures[export]"
```

### From source (developers)

The repo ships with an `environment.yml` (Python 3.11) for `micromamba`:

```bash
micromamba env create -f environment.yml
micromamba activate qpictures
# the env file already runs `pip install -e .`; if you skipped that:
pip install -e ".[dev]"
```

## CLI

```text
qpictures inspect    <input>                      # per-sample Cq summary
qpictures relative   <input> -r BB_PBS [-t atpE]  # RQ vs one reference sample
qpictures paired     <input> -b BB    [-t atpE]   # per-condition paired RQ
qpictures standcurve <input>          [-t atpE]   # absolute Q from a std curve
```

`<input>` is a QuantStudio *Well Results* CSV, the `.eds` run file itself
(see [Reading `.eds` files](#reading-eds-files)), or a Bio-Rad CFX export
(see [Reading Bio-Rad CFX exports](#reading-bio-rad-cfx-exports)).

### `relative` — single reference sample

```bash
qpictures relative data/ex1/WellResult-2026-06-09-144852.csv \
  --reference BB_PBS \
  --out results/ex1_relative.html \
  --csv-out results/ex1_relative.csv
```

Useful flags:

| Flag | Default | What it does |
| --- | --- | --- |
| `-r, --reference` | *required* | Reference sample (case-insensitive). |
| `-t, --target` | auto | Which assay/target to use (auto if only one). |
| `-o, --out` | `<input>.relative.html` | Output Plotly HTML. |
| `--csv-out` | *(off)* | Also write the RQ table as CSV. |
| `--pdf [PATH]` | *(off)* | Also write a PDF (auto-named from `--out` if no path). |
| `--png [PATH]` | *(off)* | Also write a PNG. |
| `--svg [PATH]` | *(off)* | Also write an SVG. |
| `--test` | `welch` | Per-sample significance test vs reference: `welch`, `student`, `mannwhitney`, `none`. |
| `--padjust` | `none` | Multiple-testing correction: `none`, `bh` (FDR), `holm`, `bonferroni`. |
| `--no-signif` | off | Hide significance stars on the plot. |
| `--no-n` | off | Hide the biological-replicate count `N` annotated under each bar. |
| `--tech-reps` | `3` | Technical replicates per biological replicate. `N = ceil(n_wells / tech_reps)`, so a replicate still counts unless *all* its technical wells were omitted. Use `1` to report raw well counts. |
| `--background-rem [NAME]` | off | Use a named control sample as the background threshold. As a bare flag it looks up a sample called `control` (case-insensitive); pass an explicit name to override, e.g. `--background-rem PBS`. Any sample whose mean Cq exceeds the control's mean Cq is flagged with a `below_background` column and rendered as a dimmed grey bar. The control is **independent of `--reference`**, so you can normalize against one sample and threshold against another. |
| `--task TEXT` (repeatable) | `Unknown` | Which `Task` values to keep. |
| `--all-tasks` | off | Keep every `Task` (NTC / standards / etc.). |
| `--no-log` | log10 on | Linear y-axis instead of log10. |
| `--no-open` | opens | Do not auto-open the resulting HTML. |

The bars show the significance star (e.g. `**`) above the RQ value when a
test is run. See **Significance testing** below for the star thresholds and
caveats — the same rules apply in both `relative` and `paired` modes.

### `paired` — per-condition paired comparisons

For sample names of the form `<base><sep><condition>` (e.g. `BB_pbs`,
`TL_culture_swab`), normalize every base within each condition against a
**reference base** (e.g. `BB`). Each condition gets a group on the x-axis,
bars within a group are colored by base, and the reference base sits at
RQ = 1 (with its own SD propagated).

```bash
qpictures paired data/ex1/WellResult-2026-06-09-144852.csv \
  --reference-base BB \
  --out results/ex1_paired.html \
  --csv-out results/ex1_paired.csv
```

| Flag | Default | What it does |
| --- | --- | --- |
| `-b, --reference-base` | *required* | Reference base (case-insensitive), e.g. `BB`. |
| `-s, --separator` | `_` | Split `base<sep>condition` on this. |
| `-t, --target` | auto | Which assay/target to use. |
| `-o, --out` | `<input>.paired.html` | Output Plotly HTML. |
| `--csv-out` | *(off)* | Also write the paired RQ table as CSV. |
| `--pdf [PATH]` | *(off)* | Also write a PDF (auto-named from `--out` if no path). |
| `--png [PATH]` | *(off)* | Also write a PNG. |
| `--svg [PATH]` | *(off)* | Also write an SVG. |
| `--test` | `welch` | Per-pair significance test: `welch`, `student`, `mannwhitney`, `none`. |
| `--padjust` | `none` | Multiple-testing correction: `none`, `bh` (FDR), `holm`, `bonferroni`. |
| `--no-signif` | off | Hide significance stars on the plot. |
| `--no-n` | off | Hide the biological-replicate count `N` annotated on each bar. |
| `--tech-reps` | `3` | Technical replicates per biological replicate. `N = ceil(n_wells / tech_reps)`. Use `1` to report raw well counts. |
| `--background-rem [NAME]` | off | Use a named control sample as a single global background threshold. Bare flag defaults to a sample called `control`; pass an explicit name (e.g. `--background-rem PBS`) to override. Lookup happens *before* the separator split, so a control sample without `_` (e.g. `Control`) is still found. Any (base, condition) row with a mean Cq above the control's mean Cq is flagged in `below_background` and dimmed in the plot. |
| `--no-split` | off | Suppress splitting on `--separator`. Every sample is treated as its own base under one synthetic condition (`all`), and `--reference-base` must match a *full* sample name (e.g. `BB_pbs`). Equivalent to a single-reference comparison rendered through the paired layout. |
| `--base-order TEXT` (repeatable) | auto | Explicit base ordering for bars / legend. Comma-separated and/or repeat the flag. Default: reference base first, then alphabetical. With `--no-split`, each full sample name is a base — use this to order samples left-to-right. |
| `--condition-order TEXT` (repeatable) | auto | Explicit condition ordering on the x-axis. Comma-separated and/or repeat the flag. Default: alphabetical. Only applies when sample names are split into `base<sep>condition`; ignored for ordering in `--no-split` mode (there is only one synthetic condition, `all`). |
| `--task TEXT` (repeatable) | `Unknown` | Which `Task` values to keep. |
| `--all-tasks` | off | Keep every `Task`. |
| `--no-log` | log10 on | Linear y-axis. |
| `--no-open` | opens | Don't auto-open the HTML. |

Samples lacking the separator (`Input`, etc.) are skipped with a notice,
as are any conditions where the reference base is missing.

The paired plot adds three visual cues so the comparisons inside each group
are unambiguous:

- **Alternating background bands** behind each condition box each comparison
  unit as a single visual group.
- **Diagonal hatching** on the reference-base bars marks the baseline within
  every group at a glance.
- A small **`vs <ref_sample>` label under each x-tick** (e.g. `vs BB_pbs`)
  spells out the specific reference sample that group is being compared
  against.

The Python API exposes these as `group_shading`, `mark_reference_pattern`
and `show_per_group_reference` on `paired_relative_quantity_barplot` (all
default `True`).

#### Example: `--background-rem` and `--no-split`

```bash
# Bare flag: look up a sample called "control" and use its mean Cq as the threshold
qpictures paired data/ex1/WellResult-2026-06-09-14570.csv \
  --reference-base BB --background-rem

# Explicit control sample (case-insensitive)
qpictures paired data/ex1/WellResult-2026-06-09-14570.csv \
  --reference-base BB --background-rem PBS

# Don't split: use BB_pbs as a single reference, every other sample compared to it
qpictures paired data/ex1/WellResult-2026-06-09-14570.csv \
  --reference-base BB_pbs --no-split --background-rem Control
```

#### Example: `--base-order` and `--condition-order`

By default, conditions are sorted alphabetically on the x-axis and bases are
reference-first then A–Z within each group. Override with comma-separated lists
(names are matched case-insensitively):

```bash
# Sample names like BB_medium, turboLysis2001_medium, Nothing_low, ...
qpictures paired data/WellResult-2026-07-10-112050.csv \
  --reference-base BB \
  --base-order BB,turboLysis2001,Nothing \
  --condition-order medium,low \
  --png \
  --out results/TL_plusLife.html
```

With `--no-split`, every sample is its own base under a single synthetic
condition (`all`). Use `--base-order` to set the left-to-right sample order
(not `--condition-order`):

```bash
qpictures paired data/WellResult.csv \
  --reference-base BB_PBS \
  --no-split \
  --base-order Control,BB_PBS,TL_PBS,BB_artificialSputumMild,TL_artificialSputumMild \
  --png \
  --out results/plot.html
```

The Python API accepts the same ordering via `base_order=` and
`condition_order=` on `paired_relative_quantity_barplot`.

#### Significance testing

For each non-reference (base, condition) pair we run a two-sided test on the
**raw `Cq` values** (Cq is already log-scaled, so a t-test on Cq is the
conventional choice). Multiple-testing correction across all non-reference
pairs is **off by default**; opt in with `--padjust bh` (FDR), `holm`, or
`bonferroni`:

| Threshold (adjusted p) | Star |
| --- | --- |
| p < 1e-4 | `****` |
| p < 1e-3 | `***`  |
| p < 1e-2 | `**`   |
| p < 0.05 | `*`    |
| else     | `ns`   |

Output table columns: `p_value`, `p_adj`, `signif`. The star is drawn above
the RQ value inside each non-reference bar.

**Caveat:** typical qPCR designs have very few replicates (often `n = 3–4`),
so these p-values have low statistical power. Treat them as a guide, not a
verdict. With `n=2`, no test can run and `p_value` will be `NaN`.

### `standcurve` — absolute quantification from a standard curve

For runs that include a serial dilution of a known quantity (e.g. `DNASD_4`,
`DNASD_6`, … with `Task == Standard` and a `Quantity` column), fit

```text
Cq = slope · log10(Quantity) + intercept
```

and back-calculate the **absolute Quantity** for every `Unknown` sample.

```bash
qpictures standcurve data/sc_well_table_results-2026-06-10-092019.csv \
  --out results/std.html \
  --csv-out results/std.csv \
  --curve-csv results/std_curve.csv \
  --unit "copies/µL"
```

The output HTML stacks two interactive panels:

1. **Standard curve**: scatter of the standard replicates plus the OLS fit,
   a ± 1 residual-SD band, and an annotation box summarising
   `slope`, `intercept`, `R²`, `efficiency = 10^(-1/slope) - 1`,
   `slope SE`, `residual SD`, `n` and number of levels. Unknown samples are
   overlaid at their `(log10 Q_hat, Cq_mean)` so you can see whether each one
   falls inside the calibrated range.
2. **Absolute-quantity bar plot**: one bar per sample, sorted by quantity,
   with asymmetric error bars from `SD(Cq) / |slope|` propagated through the
   curve. Bars whose mean Cq lies *outside* the standard range are recolored
   (`extrapolated == True`); dotted horizontal guide lines mark the
   calibrated min/max.

| Flag | Default | What it does |
| --- | --- | --- |
| `-t, --target` | auto | Which assay/target to fit (auto if only one is present). |
| `-o, --out` | `<input>.standcurve.html` | Combined interactive HTML (curve + bars). |
| `--curve-html FILE` | *(off)* | Also write a standalone HTML containing only the standard curve. |
| `--bars-html FILE` | *(off)* | Also write a standalone HTML containing only the bar plot. |
| `--csv-out FILE` | *(off)* | Per-sample absolute-quantity table as CSV. |
| `--curve-csv FILE` | *(off)* | Per-replicate standard wells used for the fit. |
| `--pdf [PATH]` | *(off)* | Also write the combined figure to PDF. |
| `--png [PATH]` | *(off)* | Also write PNG. |
| `--svg [PATH]` | *(off)* | Also write SVG. |
| `--unit TEXT` | *(none)* | Unit string appended to the y-axis title (e.g. `copies/µL`). |
| `--standard-task TEXT` | `Standard` | `Task` value identifying the standards. |
| `--unknown-task TEXT` | `Unknown` | `Task` value identifying the samples. |
| `--background-rem [NAME]` | *(off)* | Use a named control sample (e.g. `Water`) as the background threshold; samples with mean Cq above it are flagged in `below_background` and dimmed. |
| `--no-n` | *(off)* | Hide the biological-replicate count `N` annotated under each bar. |
| `--tech-reps` | `3` | Technical replicates per biological replicate. `N = ceil(n_wells / tech_reps)`. Use `1` to report raw well counts. |
| `--task TEXT` (repeatable) | *(none)* | Extra `Task` values to keep when reading the CSV (in addition to the standard and unknown tasks, which are always kept). |
| `--no-log` | log10 on | Linear y-axis for the bar plot. |
| `--no-open` | opens | Do not auto-open the HTML. |

**Output table columns** (`--csv-out`):

`Target, Sample, n, Cq_mean, Cq_sd, log10_Q, log10_Q_sd, Quantity,
Quantity_low, Quantity_high, Q_err_minus, Q_err_plus, extrapolated,
Background_control, below_background`.

**Quality cues to watch for**:

- `Efficiency` should sit around 90–110 % (slope ≈ −3.32 for 100 %). The
  reported value reflects the *slope*, not the absolute accuracy of any
  single quantity.
- `R²` should be ≥ 0.98 for a well-behaved dilution series.
- Any row with `extrapolated == True` had a mean Cq outside the calibrated
  log10-Quantity range — its back-calculated Quantity is an extrapolation
  and should be interpreted with care (the bar is recolored).

### Filtering defaults

`read_thermo_well_results()` (and every CLI command) by default keeps **only
`Omit == false`** wells and **only `Task == "Unknown"`** rows, so NTC /
standard / endogenous-control wells are excluded automatically. Override
with `--all-tasks` or `--task <value>` (repeatable) on the CLI, or
`tasks=None` / `tasks=("Unknown", "Standard")` from Python.

`qpictures standcurve` automatically keeps both `Standard` and `Unknown`
wells (configurable via `--standard-task` / `--unknown-task`); use
`--task <value>` to also keep additional task categories.

## Python API

```python
from qpictures import (
    read_thermo_well_results,
    relative_quantification,
    relative_quantity_barplot,
    paired_relative_quantification,
    paired_relative_quantity_barplot,
    fit_standard_curve,
    absolute_quantification,
    standard_curve_plot,
    absolute_quantity_barplot,
    standard_curve_with_quantities_figure,
)

df = read_thermo_well_results("data/ex1/WellResult-2026-06-09-144852.csv")

# 1) Single reference sample
rq, ref = relative_quantification(df, reference="BB_PBS")  # case-insensitive
relative_quantity_barplot(rq, log_y=True).write_html("rq.html")

# 2) Per-condition paired (e.g. TL_pbs vs BB_pbs, TL_sputum vs BB_sputum, ...)
#    Welch's t-test on Cq by default; multiple-testing correction is off
#    by default — pass padjust="bh" for Benjamini–Hochberg FDR.
pairs, summary = paired_relative_quantification(
    df, reference_base="BB", test="welch", padjust="none"
)
paired_relative_quantity_barplot(
    pairs,
    reference_base=summary.reference_base_resolved,
    base_order=["BB", "turboLysis2001", "Nothing"],
    condition_order=["medium", "low"],
    log_y=True,
).write_html("paired.html")

# 3) Absolute quantification from a standard curve. The CSV here includes
#    Task == Standard wells (DNASD_*) with known Quantity values plus the
#    usual Unknown wells; we must read both tasks to fit a curve.
df_sc = read_thermo_well_results(
    "data/sc_well_table_results-2026-06-10-092019.csv",
    tasks=("Unknown", "Standard"),
)
curve = fit_standard_curve(df_sc)                          # auto-picks target
print(f"slope={curve.slope:.3f}  R^2={curve.r_squared:.4f}"
      f"  efficiency={curve.efficiency*100:.1f}%")
abs_table, _ = absolute_quantification(df_sc, curve=curve)
standard_curve_with_quantities_figure(
    curve, abs_table, quantity_unit="copies/µL"
).write_html("standcurve.html")
```

## Math

For a single target (no endogenous control):

- `Cq_mean(sample)` and `Cq_sd(sample)` are computed across technical replicates.
- `ΔCq      = Cq_mean(sample) - Cq_mean(reference)`
- `SD(ΔCq)  = sqrt( SD(sample)^2 + SD(reference)^2 )`
- `RQ       = 2^(-ΔCq)`
- `RQ_high  = 2^( -(ΔCq - SD(ΔCq)) )`
- `RQ_low   = 2^( -(ΔCq + SD(ΔCq)) )`

The bar plot uses asymmetric error bars `[RQ - RQ_low, RQ_high - RQ]` so that
the visual error is symmetric on the log axis.

### Standard curve (absolute quantification)

For runs that include serial dilutions of a known input (`Task == Standard`,
`Quantity` known), OLS on individual replicates yields

- `Cq        = slope · log10(Q) + intercept`
- `efficiency = 10^(-1/slope) - 1` (1.0 == 100 %; slope ≈ −3.32 ideal)

For each unknown sample with mean Cq `Cq_mean` and SD `Cq_sd`:

- `log10(Q_hat)  = (Cq_mean - intercept) / slope`
- `Q_hat         = 10 ^ log10(Q_hat)`
- `SD(log10 Q)   = Cq_sd / |slope|`     (replicate scatter only)
- `Q_low         = 10 ^ (log10(Q_hat) - SD(log10 Q))`
- `Q_high        = 10 ^ (log10(Q_hat) + SD(log10 Q))`

Uncertainty in `slope` / `intercept` is *not* propagated into per-sample
bounds — they reflect technical-replicate scatter only. The curve's
`slope_se`, `intercept_se` and `residual_sd` are still surfaced as part of
the fit (and the ± 1 residual-SD band on the standard-curve plot).

## Notes on the Thermo export

The parser is tolerant of two common quirks:

1. A metadata header block above the actual table is skipped automatically.
2. Sample names containing **unquoted commas** (e.g. `beads,3mm,WS, Slow`) are
   detected (row has more fields than the header) and re-glued into the
   `Sample` column.

## Reading `.eds` files

Every command, and `read_thermo_well_results()`, also takes a Design &
Analysis `.eds` run file directly (`read_thermo_eds()` reads one explicitly):

```bash
qpictures paired run.eds -b BB --png --out results/run.html
```

The table matches the CSV export: sample names, targets, tasks and standard
quantities come from the plate setup; Cq, Cq Conf, Amp Score, Amp Status and
threshold come from the analysis stored in the file. Task labels follow the
CSV (`Unknown`, `Standard`, `Negative Control (NTC)`), so the same `--task`
filters work on both.

- The run must have been analysed and saved in Design & Analysis. A file with
  no stored analysis (never analysed, or saved by the older QuantStudio
  Real-Time PCR software) is rejected with a message saying so.
- If the plate setup changed after the last analysis (status `OBSOLETE`), a
  warning is printed: the Cq values are the stored ones and may shift slightly
  once re-analysed.
- Wells omitted in the software stay omitted (`Omit == true`).

## Reading Bio-Rad CFX exports

Runs from a CFX Opus (or any instrument run in CFX Maestro / CFX Manager) are
read from the CSV export. In CFX Maestro use **Export > Export All Data
Sheets** with CSV output, then give qpictures the export folder, a zip of it,
or the *Quantification Cq Results* CSV (`read_bio_rad_cfx()` reads one
explicitly):

```bash
qpictures standcurve "23 Nov qPCR TurboLyser.zip"
qpictures relative "23 Nov qPCR TurboLyser/" -r Z1
```

- Semicolon-separated files with decimal commas (European locale settings)
  are read as well as comma-separated ones, in UTF-8, UTF-16 or Windows-1252.
  Older CFX Manager exports with a `C(t)` column work too.
- A folder or zip must hold one run. With several, qpictures stops and lists
  them; pass the CSV you want.
- The *Quantification Summary* CSV has no sample names, so read the
  *Quantification Cq Results* CSV (qpictures warns if names are missing).
- `Content` sets the task: `Unkn` is `Unknown`, `Std` is `Standard`, `NTC` is
  `Negative Control (NTC)`, and `Pos Ctrl`, `Neg Ctrl` and `NRT` map likewise,
  so the same `--task` filters work as for QuantStudio files.
- A blank `Target` falls back to the fluorophore (e.g. `SYBR`), and a blank
  `Sample` falls back to the `Content` code (e.g. `Std-01`).
- A `Biological Set Name` is appended to the sample (`P1` in set `Day1`
  becomes `P1_Day1`), so sets stay apart and `paired` can use the set as the
  condition.
- Standard quantities come from the `Starting Quantity (SQ)` column. CFX's own
  back-calculated quantities for unknowns are ignored; qpictures fits its own
  curve, which matches CFX's slope, intercept, efficiency and R². Its per-sample
  quantity is the geometric mean of the replicates, so it can differ from
  CFX's `SQ Mean` (an arithmetic mean) by a fraction of a percent.
- Wells excluded in CFX Maestro are left out of the export, so there is
  nothing to omit.
- The `.pcrd` run file is encrypted and cannot be read; export the CSVs.
