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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8264b9ee5d583103561df60cf1c9c615975525fa3193e34c5469b0022cc8f5ad
|
|
| MD5 |
f41208348d1e408666e19e3a7568d1e2
|
|
| BLAKE2b-256 |
93f319f09d67236be9dbfabfc37e891fb31578cddda7c4faaace5c4498c142ca
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df9341932eda2c0285654fe1500abbb99f39127c96f13ecf357f34258335b4d
|
|
| MD5 |
e765fde4b175740a82017ca5d02f7ab0
|
|
| BLAKE2b-256 |
455a60dbc60250747fb504e4bb4c9df7e95c54b61a7dffe7b5e5251d32dc846a
|