Guides

Development docs · 996102e0
View source

Guides

The guides explain how to design, govern, interpret, troubleshoot, review, revise, respond, finalize, and report GazeAudit analyses. For copy-paste runnable demonstrations, use the examples.

Choose by task

Set up the research record

Separate source data, researcher-owned decisions, analysis code, generated evidence, and exact software identity before the project becomes difficult to audit.

Project starter →

Govern researcher decisions

Use a before/during/after checklist and a copy-ready decision log so thresholds, exclusions, specifications, deviations, and reporting boundaries stay visible.

Researcher checklist →

Interpret the completed audit

Check execution completeness first, then separate direction stability, magnitude sensitivity, descriptive factor alignment, and unresolved uncertainty before choosing manuscript wording.

Interpret an audit result →

Check manuscript readiness

Verify that the endpoint, denominator, failures, decision trail, manuscript wording, limitations, archive manifest, and software identity can be reconstructed by someone outside the analysis team.

Manuscript readiness →

Handle reviewer amendments

Keep the submitted audit recoverable when peer review requests new exclusions, thresholds, endpoints, measurement assumptions, or sensitivity analyses.

Peer-review revision checklist →

Write the reviewer response

Link each reviewer item to its response category, timing, execution denominator, manuscript changes, and archived revision evidence.

Response-letter guide →

Finalize the resubmission

Bind reviewer responses to stable version changes, final manuscript locations, temporal evidence layers, software identity, and an editor-facing evidence map.

Resubmission readiness →

Prepare publication evidence

Bind the complete audit bundle, provenance, fingerprints, methods wording, results wording, revision evidence, and unresolved limitations into a durable record.

Publication audits →

Find the right documentation fast

Use grouped search, type filters, keyboard controls, and the Guide / Example / Reference / Evidence distinction without treating navigation as scientific advice.

Find information fast →

Read signatures and source links correctly

Interpret generated callable signatures, defaults, annotations, source locations, import snippets, and pathway backlinks without turning software metadata into scientific defaults.

Source-level API guide →

Reproduce the software environment

Separate release/source identity, Python, optional extras, resolved dependencies, and environment records from the scientific decision log.

Environment setup →

Author documentation consistently

Choose a dominant reader intent, structure headings and code examples predictably, preserve scientific boundaries, and wire important new routes into governance.

Documentation authoring standard →

Move from example to real study

Reuse workflow structure while rebuilding teaching values, endpoints, AOIs, QC rules, specification levels, and evidence claims as study-owned decisions.

Adapt examples to your study →

Map your table into the canonical data contract

Bind participant, trial, timestamp, x, and y to the real source columns, record units, distinguish hard schema errors from review conditions, and preserve mapping provenance.

Map your table →

Preserve data-mapping provenance

Record source identity, semantic mappings, units, coordinate convention, pre-mapping transformations, and the consequences of later mapping changes.

Data mapping provenance →

Triage structural-QC review flags

Move from issue code to row/group diagnostics, source inspection, researcher-owned decisions, representation repair, rerun scope, endpoint dependence, and bounded reporting.

Structural-QC triage →

Design a sensitivity protocol

Choose a baseline, perturbation dimension, justified range, fixed endpoint, reproducibility policy, and interpretation boundary before inspecting the curve.

Sensitivity-analysis design →

Environment setup

Environment setup & reproducibility

Create an isolated environment, choose release versus source identity deliberately, install only the needed optional capability, record both declared and resolved software identity, and keep environment evidence separate from scientific decisions.

The companion Install → verify → first import is a software-only smoke check for a fresh environment.

API reference literacy

Read the source-level API reference

Use the generated source metadata safely: distinguish Python defaults from scientific decisions, interpret positional/keyword-only markers, follow revision-pinned source links for implementation questions, and use pathway backlinks to recover research context.

The companion Source-level API inspection traces three public symbols from signature to source and governed evidence boundary.

Documentation navigation

Find information fast

Use the site search deliberately: start with the smallest distinctive phrase, read the grouped Guide / Example / Reference / Evidence results, filter only when your information need is already clear, and stop searching once the authoritative contract has been found. The guide also documents keyboard behavior and the boundary between navigation support and scientific judgement.

For a worked navigation exercise, use the Search → contract walkthrough.

Start with your own data

Start a reproducible GazeAudit project

Set up a compact study directory that separates the canonical input table, analysis code, researcher decisions, software record, and generated evidence. Use this when you want a clean project scaffold before adapting the practical first-audit example.

Researcher audit checklist

Use a before/during/after checklist for source binding, endpoint declaration, QC policy, exclusions, specification design, failure handling, robustness interpretation, reporting language, and archive handoff. This is the practical governance layer between reproducible code and defensible scientific judgement.

Audit decision log template

Copy a structured Markdown record into the project repository to preserve source identity, endpoints, QC decisions, exclusions, declared specification factors, perturbations, deviations, software identity, generated evidence, and reporting boundaries.

First real audit with your own data

Take one canonical eye-tracking CSV through GazeStudy, structural preflight, researcher-owned decisions, a declared specification space, robustness summaries, and saved evidence. This is the recommended practical entry point when you have a study file and want to understand how the package pieces connect.

Audit record map

Follow the research record from source data and researcher-owned decisions through structural QC, declared specification execution, robustness and sensitivity summaries, provenance, fingerprints, and publication claims. Use this when you need to understand how one artifact supports the next stage of the audit rather than only what each file contains.

Understanding the audit output bundle

Read the files produced by the practical workflow as one evidence bundle: structural QC and fingerprints, every declared specification, the specification curve, effect-stability summaries, and marginal and pairwise sensitivity outputs. The guide separates what each artifact describes from conclusions it cannot establish.

Data onboarding

Map your table into GazeStudy

Translate an existing CSV or pandas table into the vendor-neutral canonical representation without renaming source columns, guessing units, or turning structural observations into silent exclusions. The guide separates constructor failures from preflight review conditions and records the mapping itself as provenance.

For the compact contract and local snippet builder, use the Data Contract & Schema Mapping Center. For synthetic success/failure cases, use Valid, invalid, and reviewable tables.

Record data-mapping provenance

Preserve source identity, semantic column mappings, coordinate/timestamp units, coordinate convention, and pre-mapping transformations in a versioned documentation record. The guide separates representation provenance from structural-QC decisions and explains when a mapping change requires renewed construction, preflight, or downstream analysis.

The companion Mapping change audit compares harmless source-label changes with substantive source, unit, coordinate, grouping, and exclusion changes.

Data onboarding and structural preflight

Map vendor or analysis tables into GazeStudy, inspect structural QC, and separate import/ordering problems from scientific quality decisions before running uncertainty or robustness analyses.

Structural-QC triage

Use row/group diagnostics to trace each structural flag to source and mapping provenance, classify the condition before deciding, preserve researcher-owned actions, rebuild evidence after a representation repair, and report counts without collapsing row/group denominators.

For exact issue/detail-code lookup, use the Structural QC Issue Clinic. For a complete synthetic exercise, use All structural-QC issues in one table.

Design and audit readiness policies

Declare study-owned readiness thresholds without hidden defaults, separate trial and participant consequences, preserve timing and rationale sources, preview cohort impact before filtering, compare defensible alternatives, and report policy-relative readiness without turning it into a universal quality score.

Use the Readiness Policy Design Center to generate a policy draft interactively, then the Readiness policy design example to practise denominator and reporting interpretation.

Analysis-readiness governance

Declare structural-QC policies, preview cohort impact, separate repairable structural conditions from scientific exclusions, and bind the resulting readiness record to provenance.

Measurement uncertainty

AOI uncertainty

Fit global or grouped gaze-error models, propagate spatial uncertainty into AOI membership, compare hard and probabilistic assignments, and identify boundary-sensitive observations.

Analytical robustness

Execution ledger and recovery

Preserve branch identity separately from attempt identity, keep valid technical failures/non-finite/not-run states in the correct denominator, link causal repairs to same-branch reruns, reconcile current branch state without deleting historical failures, and report recovery without inflating or shrinking the specification denominator.

Use the Execution Ledger & Recovery Center for the governed state reference and attempt-record builder, then work through Failure → repair → reconciliation.

Specification-space declaration and validity

Declare the robustness question, endpoint reference, factor set, typed levels, rationale, timing, pre-execution validity rule, reference branch, failure policy, and interpretation boundary before estimates are visible.

Use the Specification Space Declaration Center to build the declaration interactively, then the Declared → valid → successful example to practise denominator accounting.

Endpoint definition and invariance

Define the one scalar scientific quantity that every valid specification must estimate, including its unit, contrast direction, analysis unit, denominator, missing/non-finite behavior, transformations, required inputs, and interpretation boundary.

Use the Endpoint Definition & Handoff Center to build a documentation-side declaration, then practise compatibility decisions in the Endpoint drift audit.

Specification spaces

Turn defensible analytical decisions into an explicit PipelineSpace, reject invalid combinations before execution, and summarise endpoint stability without selecting a preferred specification after the fact.

Read robustness diagnostics

Interpret execution completeness, specification curves, effect-stability summaries, marginal factor sensitivity, pairwise non-additive sensitivity, and controlled perturbation curves without turning descriptive outputs into confidence intervals, posterior probabilities, causal decompositions, or inferential interaction tests.

Use the Robustness Diagnostics & Sensitivity Interpretation Center for a compact output-by-output reference, then practise the full sequence in the Diagnostic interpretation walkthrough.

Interpret an audit result

Move from completed robustness outputs to bounded scientific interpretation. The guide starts with the declared execution denominator, then separates direction stability from magnitude sensitivity, treats marginal/pairwise summaries as descriptive rather than causal, records untested uncertainty dimensions, and maps each evidence pattern to an appropriate next action.

For a side-by-side worked comparison, use the result-pattern reporting example.

Claim-boundary reporting

Move from structural-QC, readiness, robustness, sensitivity, or frozen validation evidence to bounded manuscript language by identifying the evidence object, preserving its denominator, separating runtime status from researcher interpretation, and attaching the correct limitation.

Use the Results Interpretation & Reporting Center for searchable copy-ready contracts and the Reporting-language rewrite exercise for overclaim repairs.

Design conclusion-recovery rules

Declare an independently defined reference effect, one or two justified error tolerances, an explicit sign rule, minimum recovery fraction, timing, and interpretation boundary before using a categorical recovery classification.

Use the Conclusion Rule Design Center for a no-default declaration, then the Conclusion-rule edge cases exercise for zero-reference, dual-tolerance, sign, and threshold-equality behavior.

Reporting robustness

Translate specification curves, sign fractions, marginal sensitivity, and pairwise sensitivity into precise Methods and Results language without treating descriptive diagnostics as confidence intervals, posterior probabilities, or causal decompositions.

For a complete worked interpretation exercise, use the decision-to-report example.

Sensitivity design

Design a sensitivity analysis

Define a controlled sampling, missingness, spatial-error, or other ordered perturbation protocol without turning the exercise into a search for a reassuring setting. The guide separates baseline identity, range justification, endpoint invariance, seed/Monte Carlo policy, complete-curve reporting, and scientific interpretation boundaries.

Use the Sensitivity protocol worked example for a deterministic sampling + missingness exercise, then integrate the layer with the Sensitivity audit workflow.

Troubleshooting

Troubleshooting GazeAudit

Start here when a workflow is blocked or failing. The guide routes symptoms across installation/environment, source/schema, structural preflight, grouped measurement models, specification execution, non-finite endpoints, denominator mismatches, and revision-package validation. Each route identifies what to inspect, the smallest safe repair, and what evidence should be preserved before changing anything.

For a worked technical recovery, use the failed-audit recovery walkthrough. It keeps 8 declared → 7 valid → 6 initially successful distinct, preserves a valid technical failure, repairs the causal processor defect, reruns the same branch, and retains the original failure event.

Common audit mistakes and repairs

Use this when execution ran, but the decision trail, denominator governance, reporting boundary, or archive is difficult to defend. It covers outcome-informed specification design, silent branch deletion, endpoint drift, QC/exclusion confusion, hidden interpolation or missingness repair, inferential over-reading of robustness summaries, rewritten decision history, incomplete archives, and transfer of protocol-bound case labels to new data.

The two troubleshooting routes are deliberately different: the troubleshooting center diagnoses blocked execution; this guide repairs weaknesses in the research record without rewriting inconvenient results.

Manuscript and review readiness

Manuscript readiness checklist

Verify six pre-submission gates: endpoint reconstruction, execution-denominator accounting, researcher-decision provenance, complete-pattern Results wording, manuscript/archive consistency, and independent reviewer reconstruction. Use this after interpretation but before calling the manuscript record submission-ready.

For a worked review exercise, use the reviewer reconstruction example.

Peer-review revision checklist

Use the compact revision gate before changing files. It classifies clarifications, sensitivity/analytical amendments, endpoint changes, measurement changes, and corrections; records whether outcomes were already inspected; preserves submitted versus post-review denominators; keeps failed valid branches visible; and checks response/manuscript/archive agreement before handoff.

For the shortest real-CLI exercise, use the revision-package quickstart.

Reviewer-requested amendments

Preserve the submitted record when peer review asks for new exclusions, sensitivity checks, endpoints, thresholds, or measurement assumptions. The guide separates clarifications, corrections, sensitivity amendments, analytical amendments, endpoint amendments, and measurement amendments; it also requires outcome-inspection timing, amendment-specific execution status, and separate submitted versus post-review denominators.

For a complete revision exercise, use the reviewer-requested reanalysis example, which keeps a synthetic submitted 8 / 8 audit distinct from a reviewer-requested 4 / 4 amendment.

Reviewer response letter

Build a reviewer response around stable response units: the reviewer request, response category, outcome-inspection timing, action, submitted and post-review denominators, manuscript locations, and archive locations. The guide includes copy-ready wording for clarifications, sensitivity amendments, failed amendments, corrections, endpoint changes, and requests that do not lead to an analytical change.

For a complete response package, use the revision response package worked example.

Version-change manifest

Record the transition from submitted to revised manuscript using stable change IDs and explicit categories for editorial text, documentation clarification, correction, sensitivity/analytical amendment, endpoint amendment, measurement amendment, and reporting-boundary changes. The guide links each material revision to timing, manuscript locations, evidence, denominator effects, claim impact, and archive provenance.

Resubmission readiness and editor handoff

Run seven final-handoff gates across reviewer-item closure, temporal evidence layers, response/manuscript agreement, version-change completeness, archive reproducibility, software identity, and an editor-facing evidence map. The guide explicitly treats editorial status as separate from scientific validity.

For the complete temporal exercise, use the submission-to-accepted-record worked example.

Reproducibility

Revision reproducibility package

Use the gazeaudit-revision-package CLI to scaffold reviewer-response, change-manifest, amendment, endpoint-amendment, software-identity, and editor-facing evidence-map records, then validate deterministic package structure without conflating structural provenance with scientific validity.

Publication audits

Use a predeclared conclusion rule, deterministic manifests, methods/report generation, and scientific/bundle fingerprints to make robustness evidence auditable.

Publication and archive handoff example

See one illustrative end state that brings together decision history, complete branch accountability, manuscript Methods/Results wording, limitations, source/software provenance, fingerprints, and a reviewer-friendly archive manifest. All effect values in the worked handoff are synthetic teaching material.

Ecosystem integration

Interoperability

Understand the division of responsibility between GazeAudit and Eye-Tracking-BIDS, pymovements, pEYES, and custom study/detector adapters.

A practical sequence

  1. Project starter — create the study structure.
  2. Map your table — bind the source columns and units to the canonical data contract.
  3. Researcher audit checklist — declare and govern decisions.
  4. Decision log template — preserve those decisions and amendments.
  5. First real audit — run the practical CSV-to-evidence path.
  6. Audit output bundle — understand what each artifact establishes.
  7. Troubleshooting GazeAudit — diagnose a blocked or failed workflow without rewriting scientific choices.
  8. Failed-audit recovery — practise preserving a valid technical failure and reconciling a causal repair.
  9. Common audit mistakes — diagnose research-record failures before interpretation.
  10. Interpret an audit result — separate completeness, direction, magnitude, and unresolved uncertainty.
  11. Result-pattern example — compare four synthetic evidence patterns and bounded wording.
  12. Decision-to-report example — practise bounded interpretation on the deterministic 12-branch exercise.
  13. Manuscript readiness — test whether the claim and evidence can be reconstructed independently.
  14. Reviewer reconstruction — practise finding denominator and reporting gaps from the outside.
  15. Peer-review revision checklist — classify reviewer requests and preserve temporal provenance before changes begin.
  16. Reviewer-requested amendments — preserve the submitted audit when revision adds new evidence.
  17. Reviewer-requested reanalysis — practise a separately denominated post-review sensitivity amendment.
  18. Reviewer response letter — connect each reviewer item to the revision evidence and manuscript changes.
  19. Revision response package — reconstruct the response letter, change log, and round-specific archive together.
  20. Version-change manifest — bind material v1 → v2 changes to timing, evidence, and claim impact.
  21. Revision-package quickstart — create and structurally validate the governed package with the real CLI.
  22. Resubmission readiness — run the final editor-handoff consistency gate.
  23. Submission-to-accepted-record example — trace submitted, post-review, and final evidence layers end to end.
  24. Publication/archive handoff — assemble a reviewable end state.
  25. Publication audits — build and verify the durable research record.

What a guide is not

Guides describe GazeAudit’s scientific contracts and recommended use. They do not replace study-specific justification. Researchers remain responsible for deciding which AOIs, error models, detectors, preprocessing choices, QC thresholds, perturbations, specifications, reviewer-requested extensions, revision interpretations, and scientific endpoints are defensible for their design.

Documentation search

Find the right documentation

↑↓ navigateEnter openEsc close