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.6.tar.gz (8.6 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.6-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gisflu-0.1.6.tar.gz
  • Upload date:
  • Size: 8.6 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.6.tar.gz
Algorithm Hash digest
SHA256 9bc0bd965ee01cc7e5ac6a8422c5c61e294ef103673ac53daa4ed0d421b6b130
MD5 b1bee89f59740bc7accd1128b92e9f0e
BLAKE2b-256 657d4df35b1e099bf322b9fc5d655e0b30e969a6bd319940c631f24c6cb59b4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gisflu-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb19d1e08a305dcdfe4abb2180754066c3c7b4c0f7f3a38eaf43ce6e44478dc
MD5 43e4d9ef8f67c084d6a5188fed23b408
BLAKE2b-256 cbda98ad16a145860ace0094869ea12e19271cf4e86c71a7081d5e9efd2595a4

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