malariagen_data


Namemalariagen_data JSON
Version 13.5.0 PyPI version JSON
download
home_pagehttps://github.com/malariagen/malariagen-data-python
SummaryA package for accessing and analysing MalariaGEN data.
upload_time2024-10-23 23:18:05
maintainerNone
docs_urlNone
authorAlistair Miles
requires_python<3.13,>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `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.:

```bash
pip install malariagen-data
```

## Documentation

Documentation of classes and methods in the public API are available
from the following locations:

-   [Ag3 API
    docs](https://malariagen.github.io/malariagen-data-python/latest/Ag3.html)

-   [Amin1 API
    docs](https://malariagen.github.io/malariagen-data-python/latest/Amin1.html)

-   [Pf7 API
    docs](https://malariagen.github.io/parasite-data/pf7/api.html)

-   [Pv4 API
    docs](https://malariagen.github.io/parasite-data/pv4/api.html)

## Release notes (change log)

See [GitHub releases](https://github.com/malariagen/malariagen-data-python/releases)
for release notes.

## Developer setup

To get setup for development, see [this
video](https://youtu.be/QniQi-Hoo9A) and the instructions below.

Fork and clone this repo:

```bash
git clone git@github.com:[username]/malariagen-data-python.git
```

Install Python, e.g.:

```bash
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9 python3.9-venv
```

Install pipx, e.g.:

```bash
python3.9 -m pip install --user pipx
python3.9 -m pipx ensurepath
```

Install [poetry](https://python-poetry.org/docs/#installation), e.g.:

```bash
pipx install poetry==1.8.2 --python=/usr/bin/python3.9
```

Create development environment:

```bash
cd malariagen-data-python
poetry use 3.9
poetry install
```

Activate development environment:

```bash
poetry shell
```

Install pre-commit and pre-commit hooks:

```bash
pipx install pre-commit --python=/usr/bin/python3.9
pre-commit install
```

Run pre-commit checks (isort, black, blackdoc, flake8, ...) manually:

```bash
pre-commit run --all-files
```

Run fast unit tests using simulated data:

```bash
poetry run pytest -v tests/anoph
```

To run legacy tests which read data from GCS, you'll need to [install the Google Cloud CLI](https://cloud.google.com/sdk/docs/install). E.g., if on Linux:

```bash
./install_gcloud.sh
```

You'll then need to obtain application-default credentials, e.g.:

```bash
./google-cloud-sdk/bin/gcloud auth application-default login
```

Once this is done, you can run legacy tests:

```bash
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/malariagen/malariagen-data-python",
    "name": "malariagen_data",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Alistair Miles",
    "author_email": "alistair.miles@sanger.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/97/87/1b86fc56502b92b3d7e62996b73e93e54a5e067cd96b99c361929851abd9/malariagen_data-13.5.0.tar.gz",
    "platform": null,
    "description": "# `malariagen_data` - analyse MalariaGEN data from Python\n\nThis Python package provides methods for accessing and analysing data from MalariaGEN.\n\n## Installation\n\nThe `malariagen_data` Python package is available from the Python\npackage index (PyPI) and can be installed via `pip`, e.g.:\n\n```bash\npip install malariagen-data\n```\n\n## Documentation\n\nDocumentation of classes and methods in the public API are available\nfrom the following locations:\n\n-   [Ag3 API\n    docs](https://malariagen.github.io/malariagen-data-python/latest/Ag3.html)\n\n-   [Amin1 API\n    docs](https://malariagen.github.io/malariagen-data-python/latest/Amin1.html)\n\n-   [Pf7 API\n    docs](https://malariagen.github.io/parasite-data/pf7/api.html)\n\n-   [Pv4 API\n    docs](https://malariagen.github.io/parasite-data/pv4/api.html)\n\n## Release notes (change log)\n\nSee [GitHub releases](https://github.com/malariagen/malariagen-data-python/releases)\nfor release notes.\n\n## Developer setup\n\nTo get setup for development, see [this\nvideo](https://youtu.be/QniQi-Hoo9A) and the instructions below.\n\nFork and clone this repo:\n\n```bash\ngit clone git@github.com:[username]/malariagen-data-python.git\n```\n\nInstall Python, e.g.:\n\n```bash\nsudo add-apt-repository ppa:deadsnakes/ppa\nsudo apt install python3.9 python3.9-venv\n```\n\nInstall pipx, e.g.:\n\n```bash\npython3.9 -m pip install --user pipx\npython3.9 -m pipx ensurepath\n```\n\nInstall [poetry](https://python-poetry.org/docs/#installation), e.g.:\n\n```bash\npipx install poetry==1.8.2 --python=/usr/bin/python3.9\n```\n\nCreate development environment:\n\n```bash\ncd malariagen-data-python\npoetry use 3.9\npoetry install\n```\n\nActivate development environment:\n\n```bash\npoetry shell\n```\n\nInstall pre-commit and pre-commit hooks:\n\n```bash\npipx install pre-commit --python=/usr/bin/python3.9\npre-commit install\n```\n\nRun pre-commit checks (isort, black, blackdoc, flake8, ...) manually:\n\n```bash\npre-commit run --all-files\n```\n\nRun fast unit tests using simulated data:\n\n```bash\npoetry run pytest -v tests/anoph\n```\n\nTo run legacy tests which read data from GCS, you'll need to [install the Google Cloud CLI](https://cloud.google.com/sdk/docs/install). E.g., if on Linux:\n\n```bash\n./install_gcloud.sh\n```\n\nYou'll then need to obtain application-default credentials, e.g.:\n\n```bash\n./google-cloud-sdk/bin/gcloud auth application-default login\n```\n\nOnce this is done, you can run legacy tests:\n\n```bash\npoetry run pytest --ignore=tests/anoph -v tests\n```\n\nTests will run slowly the first time, as data required for testing\nwill be read from GCS. Subsequent runs will be faster as data will be\ncached locally in the \"gcs_cache\" folder.\n\n## Release process\n\nCreate a new GitHub release. That's it. This will automatically\ntrigger publishing of a new release to PyPI and a new version of\nthe documentation via GitHub Actions.\n\nThe version switcher for the documentation can then be updated by\nmodifying the `docs/source/_static/switcher.json` file accordingly.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A package for accessing and analysing MalariaGEN data.",
    "version": "13.5.0",
    "project_urls": {
        "Documentation": "https://malariagen.github.io/malariagen-data-python/latest/",
        "Homepage": "https://github.com/malariagen/malariagen-data-python",
        "Repository": "https://github.com/malariagen/malariagen-data-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c9c1577631072948e161acb6576ea09854d7af480dfc941a3e50f68f97d5d0c",
                "md5": "5173477ad23b41d5673c872813e48849",
                "sha256": "4307f559f3c7842f50bfe391b1a21d4dcd7048554a63d0b276527fb0fa3012f8"
            },
            "downloads": -1,
            "filename": "malariagen_data-13.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5173477ad23b41d5673c872813e48849",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.10",
            "size": 179361,
            "upload_time": "2024-10-23T23:18:04",
            "upload_time_iso_8601": "2024-10-23T23:18:04.323234Z",
            "url": "https://files.pythonhosted.org/packages/1c/9c/1577631072948e161acb6576ea09854d7af480dfc941a3e50f68f97d5d0c/malariagen_data-13.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97871b86fc56502b92b3d7e62996b73e93e54a5e067cd96b99c361929851abd9",
                "md5": "a89535da1a97cd3e431ba2e2c97e8ab3",
                "sha256": "3e7b7c10e91b750e2259c40b8701bbf0f0812a006f510ca6bc510f1a13328ded"
            },
            "downloads": -1,
            "filename": "malariagen_data-13.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a89535da1a97cd3e431ba2e2c97e8ab3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.10",
            "size": 150949,
            "upload_time": "2024-10-23T23:18:05",
            "upload_time_iso_8601": "2024-10-23T23:18:05.630413Z",
            "url": "https://files.pythonhosted.org/packages/97/87/1b86fc56502b92b3d7e62996b73e93e54a5e067cd96b99c361929851abd9/malariagen_data-13.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-23 23:18:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "malariagen",
    "github_project": "malariagen-data-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "malariagen_data"
}
        
Elapsed time: 0.40818s