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]
Release files for ncbidare 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ncbidare-1.0.0.tar.gz | 82.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ncbidare-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.5 kB
Release files / ncbidare-1.0.0.tar.gz
| Download URL | ncbidare-1.0.0.tar.gz |
|---|---|
| Size | 82.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
076b028391069ad36a7af373f4c86adc9dd984ac0763b24deaf7518ddea2967a
|
|
BLAKE2b-256 checksum How to use checksums |
f3120da725fa40b75867b53b970eed9218ad8aa326e97c89b39b054c1d15fe31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ncbidare-1.0.0-py3-none-any.whl
| Download URL | ncbidare-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a1e2bf75609f6b1d635d2700620dd5df1673d45e4a10e8639372bc8b59d072f
|
|
BLAKE2b-256 checksum How to use checksums |
e6f8addafda6a9c80af51c90824dd98a93754c43526fada78e405a3143975daf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|