Development and testing
Editable installation
Clone the repository and install the test dependencies:
python -m pip install -e ".[test]"
Run the test suite:
python -m pytest
Pyteomics is intentionally an optional test dependency. The tests use it as an independent reference for peptide fragment masses and elemental-composition masses, but the installed IsoGen runtime does not import or require it.
Model development
Install the optional dependencies used by model and training modules:
python -m pip install -e ".[training]"
This extra installs Torch, pandas, and molmass. They are not required by the
top-level native isodist API.
Documentation
Install the documentation tools:
python -m pip install -e ".[docs]"
Preview changes:
python -m mkdocs serve
Validate the production site:
python -m mkdocs build --strict
Enable GitHub Pages
Before the documentation workflow can deploy for the first time, a repository
owner must open Settings → Pages and set Build and deployment → Source
to GitHub Actions. GitHub does not allow the workflow's built-in
GITHUB_TOKEN to enable Pages automatically.
After that one-time setting is saved, pushes to main that change the
documentation or its workflow build and deploy the site automatically. Pull
requests perform the strict documentation build without attempting a Pages
deployment.
Native libraries
The Python wrapper loads the platform library from the repository-level bin
directory during source development and from isogen/bin in an installed
wheel. A direct CMake install defaults to isogen/bin, avoiding the
administrator-only Program Files location; pass -DCMAKE_INSTALL_PREFIX=...
to use a different destination. Linux development environments must provide
the FFTW 3 runtime.
The native library uses the portable scalar neural-network implementation by
default on every architecture. isogendep.c retains a compiler-guarded
AVX2/FMA implementation for custom builds whose compiler flags explicitly
enable those instruction sets.
Pretrained neural-network artifacts are stored in isogen/models. The shared
model loader uses that directory by default, and model training saves new
.pth and .bin artifacts there unless an explicit working_dir is supplied.
The native build also creates isogen_test.exe on Windows and isogen_test
on Linux. These are source-development test executables in the repository's
bin directory; they are not installed by the Python wheel. Installed users
should use the isogen console command or python -m isogen.