Set up the project
1. Open the complete project
Download the ai-assisted-proteomics-analysis.zip supplied with this guide and extract it. In VS Code choose File → Open Folder and open ai-assisted-proteomics-analysis. The folder should contain _quarto.yml, requirements.txt, data/, scripts/ and examples/. Choose Terminal → New Terminal.
Run every guide command from this main project folder. The commands below operate on the bundled tables; you do not need raw mass spectrometry files or an R installation.
2. Create a Python environment
Use Python 3.11 or newer. Check the selected interpreter:
python --version
python -m venv .venvOn macOS or Linux activate it:
source .venv/bin/activateOn Windows PowerShell:
.venv\Scripts\Activate.ps1If macOS provides python3 rather than python, use python3 to create the environment; use python after activation. In VS Code choose Python: Select Interpreter and select .venv.
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip checkA successful dependency check reports no broken requirements. For the exact versions used to build these examples, use requirements-tested.txt instead of requirements.txt. The tested versions were exercised on Linux with Python 3.12; other platforms may resolve different versions.
3. Confirm the analysis tools load
python -c "import numpy, pandas, scipy, statsmodels, sklearn, matplotlib, seaborn; print('Analysis tools loaded')"NumPy and pandas handle tables, SciPy supplies probability distributions, statsmodels adjusts p-values, scikit-learn performs PCA, and Matplotlib/seaborn draw the figures. pyreadr is used only to recreate the published inputs from the DEP data snapshot; it does not require R.
4. Run a first check
python scripts/python/check_inputs.py data/syntheticExpected: 1,200 proteins, 16 samples, eight Control and eight Treatment samples. If this fails, stop and resolve the file path or input problem before running an analysis.
5. Preview the guide
Install Quarto, then run:
quarto previewTo build the website into docs/:
quarto renderThe guide displays saved results. Rendering does not rerun Python; run the workflow first whenever you change inputs or analysis code. Re-render afterward to update the copies published under docs/.
If the terminal cannot find data/synthetic, check the current folder. If imports fail, check that the terminal and VS Code use the same .venv interpreter.