Fetch NCBI data efficiently
Project description
NCBI DAtaREtrival
Retrives your NCBI search results and through Entrez in a user friendly way.
Installation
Run the following to install:
pip install ncbiget
Usage
# retrives results from NCBI and writes it to a csv file (Accession ID and Definition)
# query: search details count: number of items filename: output file name
from ncbiget import get_genbank
get_genbank(query="Klebsiella pneumoniae", count=1, filename="results.csv") # default
#to get list of unique strains from the csv file
#MAKE SURE THE FORMAT OF THE CSV FILE IS SIMILAR TO THE RESULT FILE FROM get_genbank() i.e. Descriptions should be in column 3
# filename: input file name
from ncbiget import get_strains
get_strains(filename="results.csv") # default
#to get fasta file of each strain
#MAKE SURE THE FORMAT OF THE CSV FILE IS SIMILAR TO THE RESULT FILE FROM get_genbank() i.e. Descriptions should be in column 3
# filename: input file name
from ncbiget import get_fasta
get_fasta(filename="results.csv") # default
Developing ncbidare
To install ncbidare along with the tools you need to develop and run tests, run the following in your virtualenv:
pip install -e .[dev]
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
ncbidare-1.0.0.tar.gz
(82.1 kB
view details)
Built Distribution
ncbidare-1.0.0-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file ncbidare-1.0.0.tar.gz
.
File metadata
- Download URL: ncbidare-1.0.0.tar.gz
- Upload date:
- Size: 82.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
076b028391069ad36a7af373f4c86adc9dd984ac0763b24deaf7518ddea2967a
|
|
MD5 |
01f37b8904fb05736f335a066b41a217
|
|
BLAKE2b-256 |
f3120da725fa40b75867b53b970eed9218ad8aa326e97c89b39b054c1d15fe31
|
File details
Details for the file ncbidare-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ncbidare-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7a1e2bf75609f6b1d635d2700620dd5df1673d45e4a10e8639372bc8b59d072f
|
|
MD5 |
c40b078a65aba2bd7c6c6a84b4ce7f3d
|
|
BLAKE2b-256 |
e6f8addafda6a9c80af51c90824dd98a93754c43526fada78e405a3143975daf
|