Skip to main content

Dedicated library to query and retrieve data from Entrez databases at NCBI

Project description

Documentation Status PyPI - Python Version PyPI - License PyPI PyPI - Format PyPI - Status

Entrezpy README

Synopsis

$ pip install entrezpy --user
>>> import entrezpy.wally
>>> w = entrezpy.wally.Wally('myemail')
>>> fetch_influenza = w.new_pipeline()
>>> sid = fetch_influenza.add_search({'db' : 'nucleotide', 'term' : 'H3N2 [organism] AND HA', 'rettype':'count', 'sort' : 'Date Released', 'mindate': 2000, 'maxdate':2019, 'datetype' : 'pdat'})
>>> fid = fetch_influenza.add_fetch({'retmax' : 10, 'retmode' : 'text', 'rettype': 'fasta'}, dependency=sid)
>>> w.run(fetch_influenza)

Entrezpy is a dedicated Python library to interact with NCBI Entrez databases [Entrez2016] via the E-Utilities ([Sayers2018], E-Utilities). Entrezpy facilitates the implementation of queries to query or download data from the Entrez databases, e.g. search for specific sequences or publications or fetch your favorite genome. For more complex queries entrezpy offers the class entrezpy.wally.Wally to run query pipelines or cache results.

Installation

Entrezpy requires at least Python 3.6 and the Standars Python Library.

PyPi

Install entrezpy via PyPi and check:

$ pip install entrezpy --user

If you want to incude entrezpy as part of your pipeline, check the documentation (https://entrezpy.readthedocs.io/en/master/setup/installation.html#append-to-sys-path)

Documentation

Entrezpy is fully documented using Spinx (http://www.sphinx-doc.org/en/stable/). The manual, usage examples and module reference can be found here: http://entrezpy.readthedocs.io/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
entrezpy-1.0-py3-none-any.whl (84.6 kB) Copy SHA256 hash SHA256 Wheel py3
entrezpy-1.0.tar.gz (374.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page