Installationο
The IntelliCage Analysis Toolkit is intended for scientific Python environments and requires Python 3.12 or newer. The package is tested with Python 3.12.
Create an environmentο
We recommend creating a fresh conda environment first:
conda create -n ic_analysis python=3.12 -y
conda activate ic_analysis
Install from PyPIο
After the package has been released, it can be installed from PyPI:
pip install ic-analysis
Development installationο
From a local checkout:
git clone https://github.com/FabrizioMusacchio/ic-analysis.git
cd ic-analysis
pip install -e .
For development and documentation work:
pip install -e ".[dev]"
Verify installationο
After installation, verify that the package imports correctly and reports its version:
python -c "import ic_analysis; print(f'ic_analysis {ic_analysis.__version__} imported successfully')"
This one-liner should print the installed version. If it fails, check that the active terminal session uses the environment in which the package was installed.
Run the testsο
From the repository root:
pytest
The test suite builds and analyzes a synthetic IntelliCage dataset and checks the loader, metric, and plotting functions. The project currently enforces a minimum test coverage of 75%.
Build the documentation locallyο
Install the development dependencies, then build the HTML documentation:
pip install -e ".[dev]"
sphinx-build -b html docs/source docs/build/html
Open docs/build/html/index.html in a browser to inspect the rendered pages.
Core dependenciesο
The toolkit depends on:
pandasfor tabular data handling,numpyfor numerical operations,scipyandstatsmodelsfor statistical summaries,matplotlibfor figures,pytestandpytest-covfor the test suite when installed with thedevextra.