A package for accessing and analysing MalariaGEN data.
Project description
malariagen_data - analyse MalariaGEN data from Python
This Python package provides methods for accessing and analysing data from MalariaGEN.
Installation
The malariagen_data Python package is available from the Python
package index (PyPI) and can be installed via pip, e.g.:
pip install malariagen-data
Documentation
Documentation of classes and methods in the public API are available from the following locations:
Release notes (change log)
See GitHub releases for release notes.
Developer setup
To get setup for development, see this video if you prefer VS Code, or this older video if you prefer PyCharm, and the instructions below.
Fork and clone this repo:
git clone git@github.com:[username]/malariagen-data-python.git
Install Python, e.g.:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10 python3.10-venv
Install pipx, e.g.:
python3.10 -m pip install --user pipx
python3.10 -m pipx ensurepath
Install poetry, e.g.:
pipx install poetry
Create development environment:
cd malariagen-data-python
poetry use 3.10
poetry install
Activate development environment:
poetry shell
Install pre-commit and pre-commit hooks:
pipx install pre-commit
pre-commit install
Run pre-commit checks (isort, black, blackdoc, flake8, ...) manually:
pre-commit run --all-files
Run fast unit tests using simulated data:
poetry run pytest -v tests/anoph
To run legacy tests which read data from GCS, you'll need to request access to MalariaGEN data on GCS.
Once access has been granted, install the Google Cloud CLI. E.g., if on Linux:
./install_gcloud.sh
You'll then need to obtain application-default credentials, e.g.:
./google-cloud-sdk/bin/gcloud auth application-default login
Once this is done, you can run legacy tests:
poetry run pytest --ignore=tests/anoph -v tests
Tests will run slowly the first time, as data required for testing will be read from GCS. Subsequent runs will be faster as data will be cached locally in the "gcs_cache" folder.
Release process
Create a new GitHub release. That's it. This will automatically trigger publishing of a new release to PyPI and a new version of the documentation via GitHub Actions.
The version switcher for the documentation can then be updated by
modifying the docs/source/_static/switcher.json file accordingly.
Citation
If you use the malariagen_data package in a publication
or include any of its functions or code in other materials (e.g. training resources),
please cite: doi.org/10.5281/zenodo.11173411
Some functions may require additional citations to acknowledge specific contributions. These are indicated in the description for each relevant function.
For any questions, please feel free to contact us at: support@malariagen.net
Sponsorship
This project is currently supported by the following grants:
This project was previously supported by the following grants:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file malariagen_data-15.6.0.tar.gz.
File metadata
- Download URL: malariagen_data-15.6.0.tar.gz
- Upload date:
- Size: 179.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a8ab53e9e90b16570f6e6f6032f2f2677aeca0c55a3990838a77b2c1aa58f94
|
|
| MD5 |
677eb923c93a5e4effe4189bc6b6a348
|
|
| BLAKE2b-256 |
57dac90f0728ca8509e13fa250beddf3e1033e93575172272f4cb1bf6e3edc00
|
File details
Details for the file malariagen_data-15.6.0-py3-none-any.whl.
File metadata
- Download URL: malariagen_data-15.6.0-py3-none-any.whl
- Upload date:
- Size: 215.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e1e27d3be01600551dfc37d598f85541dc90488b484cf1654ac05d3d6f33d6
|
|
| MD5 |
83ed27fd6410cb92aadfaa6fd434c2bd
|
|
| BLAKE2b-256 |
e034aace0cb582a9892032c88e2c0662ff995de8667198aae5c44810a1785329
|