Required setup
Get the project and open the correct folder
Use the complete project ZIP supplied with the guide, or open the project repository and choose Code → Download ZIP. Extract it before working.
In VS Code choose File → Open Folder and select the folder containing _quarto.yml, requirements.txt, scripts/, data/ and examples/. Open Terminal → New Terminal there. If extraction produced an extra outer folder, open the inner project folder.
Run every guide command from this main project folder. On macOS/Linux, check with:
pwd
lsCreate a Python environment
Use Python 3.10 or later. The package resolver selects compatible dependency releases for your Python version; the reference run records the versions actually used.
On macOS/Linux:
python3 -m venv .venv
source .venv/bin/activateOn Windows PowerShell:
py -m venv .venv
.\.venv\Scripts\Activate.ps1If PowerShell blocks activation, use Command Prompt and .venv\Scripts\activate.bat, or invoke .venv\Scripts\python.exe directly.
With the environment active:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip check
python -c "import numpy, pandas, scipy, matplotlib, seaborn; print('Analysis packages loaded.')"Matplotlib and Seaborn create the current static figures. Other listed packages support future data handling and exploration; installing them does not implement new methods. requirements-optional.txt is optional. See TOOLING.md for details.
Confirm the synthetic example works
python scripts/python/run_workflow.py --data-dir data/synthetic --output-dir results/synthetic --check-only
python scripts/python/run_workflow.py --data-dir data/synthetic --output-dir results/synthetic
python scripts/python/verify_variant.py data/synthetic results/synthetic SYN000001The bundled input retains 15,760 of 22,000 rows. Each comparison printed by the verifier should agree. Reference variant beta is 0.12, SE is 0.02 and z is 6.
Synthetic inputs are already supplied. Run the following only if you intend to replace them with a regenerated version:
python scripts/python/prepare_synthetic.pyKeep input hashes and package versions; a seed alone does not guarantee identical files across all environments.
Render or preview the guide
Install Quarto separately from Python. Then:
quarto render
quarto previewOpen the preview address printed in the terminal. Press Ctrl+C to stop. Rendering displays saved images and commands; it does not execute the analysis.
If a plot in the guide differs from the one in results/, confirm you are in the correct repository, rerun the analysis, render again, then refresh the browser. _quarto.yml copies the figure resources into docs/.
Troubleshooting
| Symptom | Next check |
|---|---|
| File not found | Confirm the project root and exact filename |
| Missing package | Activate the environment and reinstall requirements |
| Literal p-value zero | Obtain a valid source value or source log-p; do not invent a replacement |
| Very small positive p such as 1e-769 | Keep it as text; the workflow computes its log without flooring |
| Missing INFO | Declare verified absence in metadata; no quality scores are fabricated |
| Large real-study run takes longer | The workflow reads all prepared variants and writes full compressed audit tables; allow it to finish |