Biolearn enables easy and versatile analyses of biomarkers of aging data. It provides statistics and machine-learning tools, with instructive documentation and an open science approach.
- Python 3.10+
Setup your vitual environment at the expected location. Ensure you are using a version of python that is 3.10 or higher as lower versions are not supported.
python3 -m venv .venv
Then install all the dependencies using make
make install
Dependencies are defined in the pyproject.toml and new ones can be added. Ensure you run make install
again after adding any new dependencies.
We use Black for code formatting. Run it before committing to ensure your code follows our formatting guidelines:
make format
make test
Make sure your code passes all the tests before pushing or creating a Pull Request.
Biolearn uses web based documentation which is deployed here.
To build the doc site locally follow these steps from the repo root:
source .venv/bin/activate
cd doc
make html
You can then navigate to the html pages locally starting at doc/_build/html/index.html
To update the deployed docs copy the contents of doc/_build/html
into the doc repo at https://github.com/bio-learn/bio-learn.github.io
To provide example code for user to view and run add your scripts as a .py
file in the examples
folder. Subfolders of the examples
folder are used to group examples into collections.
If you want the example to show on the homepage add it to doc/index.rst
following the other examples in that file
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please ensure your PR title is descriptive, and in the PR description, explain your changes, why you made them, and link any relevant issues.
This library is packaged with examples that can be downloaded via the doc website as Jupyter notebooks. In order to run these notebooks with all the expected dependencies in the vitrual environment simply:
make jupyter