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.7.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.7-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gisflu-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 f402cc1a7bc77427979118bab9657d32ab8547d7f00218bca326097ed05179c4
MD5 398858b18638b39fcee155b833adecd9
BLAKE2b-256 ac127c1e7a4e806406203fb7d1f285f483de5f9c866fe26f60c04179a98c50be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gisflu-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8ce5bd02f77889b7902e360fa9a3879343ea3c7cacb4eea63e057333343e93
MD5 2abf284d7b68233529aa2f43db9ae81a
BLAKE2b-256 58e5d6dcebd88262b678f9da607bd0dee346aaa8db058c51c95b09d56a5d9bf5

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