Skip to main content

Access the GISAID Flu database using Python

Project description

gisflu

Access the GISAID Flu database using Python. Inspired by GISAIDR, which is an R package for accessing the EpiCoV, EpiRSV and EpiPox database of GISAID.

install

# use pip
pip install gisflu
# use pdm
pdm add gisflu

login

import gisflu

# Log in with provided username and password
gisflu.login("myusername", "mypassword")

# Log in using environment variables
gisflu.login()

If use environment variables to login, you should export GISFLU_USERNAME and GISFLU_PASSWORD in your environment, or save them as a .env file in the current working directory.

search

cred = gisflu.login()
gisflu.search(cred, type=["A"], HA=["3"], NA=["2"],
    collectDateFrom="2020-01-01", recordLimit=10)

download

cred = gisflu.login()
isolateIds = ["EPI_ISL_19185107", "EPI_ISL_19151100"]
gisflu.download(cred, isolateIds, downloadType="protein", segments=["HA", "NA"],
    filename="records.fasta")

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

gisflu-0.1.8.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

gisflu-0.1.8-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file gisflu-0.1.8.tar.gz.

File metadata

  • Download URL: gisflu-0.1.8.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.4 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for gisflu-0.1.8.tar.gz
Algorithm Hash digest
SHA256 84ec71f0093e207adf5d8ab10b878c7a9f3f14c4b2ea892b0efc6a3655521672
MD5 11a5c402d3c30ae7b1ef7e68bd0ccc4b
BLAKE2b-256 81bfc3ff7c634ae389810ebf0aad0b4c1b541ea1a39c37ca18855488b2768ebd

See more details on using hashes here.

File details

Details for the file gisflu-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: gisflu-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.15.4 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for gisflu-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ebdab2f1a7bc071f0835ca4bb86a0c86e14f2e8a833631749f515e190a47e60c
MD5 6fa9ea6b8fba47135acdf195387340fa
BLAKE2b-256 44e0a5bff19c42e7de4995f87dfdc4e5a6435fe274400043132a7c9f3a11e6a2

See more details on using hashes here.

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