Skip to main content

Python client for the OpenGWAS genotype-phenotype map API

Project description

gpmappy

Python client for the OpenGWAS genotype-phenotype map API.

Install

Base install:

pip install gpmappy

Install with DataFrame support:

pip install "gpmappy[dataframe]"

Quick start

from gpmappy import GpmapClient

client = GpmapClient()

health = client.health_api()
print(health)

results = client.search_gpmap("haemoglobin")
print(results.head() if hasattr(results, "head") else results[:5])

Output behavior

  • Table-like outputs return pandas DataFrames when pandas is installed.
  • Without pandas, table-like outputs return list[dict].
  • Use as_dataframe=True to require DataFrame output, or as_dataframe=False to force list output.

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpmappy-0.1.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpmappy-0.1.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file gpmappy-0.1.1.tar.gz.

File metadata

  • Download URL: gpmappy-0.1.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gpmappy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 184519678f26e396eff2850a59202c2aba50f7271adf3b08266fd79c94531d21
MD5 dd31c077d4001d2bf74688b86fd1b571
BLAKE2b-256 e1903af41d90dc458e2ac0b9642cf0640d674f4f22f1997b5099efcae3c64a55

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpmappy-0.1.1.tar.gz:

Publisher: release.yml on MRCIEU/gpmappy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gpmappy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gpmappy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gpmappy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4eeaed2b2b3651f83e1a31ff80a634f3df9e69c493b3beb88c4c0d419bf19d1a
MD5 4b36ae876fda45859b7b97de60d987fb
BLAKE2b-256 98ac15537f9e68117a6a9edd51abca3a038830a28564a6670882b692f936ec28

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpmappy-0.1.1-py3-none-any.whl:

Publisher: release.yml on MRCIEU/gpmappy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page