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

# login with provided username and password
cred = gisflu.login("myusername", "mypassword")

# login using environment variables
cred = 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")

verbose output

gisflu.log()

This function will activate detailed console logging

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.10.tar.gz (9.8 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.10-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gisflu-0.1.10.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for gisflu-0.1.10.tar.gz
Algorithm Hash digest
SHA256 8264b9ee5d583103561df60cf1c9c615975525fa3193e34c5469b0022cc8f5ad
MD5 f41208348d1e408666e19e3a7568d1e2
BLAKE2b-256 93f319f09d67236be9dbfabfc37e891fb31578cddda7c4faaace5c4498c142ca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gisflu-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3df9341932eda2c0285654fe1500abbb99f39127c96f13ecf357f34258335b4d
MD5 e765fde4b175740a82017ca5d02f7ab0
BLAKE2b-256 455a60dbc60250747fb504e4bb4c9df7e95c54b61a7dffe7b5e5251d32dc846a

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