Documentation

11.4 Your first qc-data run

Open a terminal in the project folder and run:

nlmx qc-data data/pk.csv

qc is an alias, but qc-data is clearer in scripts and reports. The positional dataset is the same input as --data data/pk.csv.

What happens

nlmx reads the file, applies configured row/observation filters, constructs its event-aware representation, executes applicable checks, builds tables and figures, writes outputs, and prints a summary. By default the output directory is beside the dataset and named <dataset-stem>_qc_data. For important work, choose it explicitly:

nlmx qc-data data/pk.csv -o results/pk-qc-r01

Use a fresh directory. If it already contains results, nlmx refuses unless --overwrite is supplied; overwrite can leave stale files and is not the preferred final-workflow pattern.

First three things to read

  1. Read the terminal verdict and counts.
  2. Open qc_summary.txt or report.html.
  3. In qc_checklist.csv, sort mentally or programmatically as FAIL, WARN, COMMENT, PASS, N/A; then open qc_findings.csv for line-level evidence.

Do not begin by correcting the first red row. First determine whether column mappings, units and thresholds are correct. A wrong --dv-col or adult range applied to children can create many misleading findings.

Reproducing the book example

nlmx qc-data -c documents/ch11/input/clean.qcd `
  -o documents/ch11/results/clean

The frozen run used nlmx 4.3.0 and evaluated 99 checks: 83 PASS, seven COMMENT and nine N/A, with no warning/failure findings. Counts can change in later versions as the catalogue evolves.

Common mistakes

  • Running from an unexpected working directory and misreading relative paths.
  • Reusing an old output folder.
  • Correcting findings before checking column mappings.
  • Assuming terminal success means the verdict is READY.

Checklist

  • Confirm the input path and hash.
  • Use a new, named output directory.
  • Record the nlmx version and command.
  • Read summary, checklist and findings in that order.

Further reading

See output-directory safety, the .qcd settings file and report anatomy.