Skip to main content

Simple API for NCBI database access

Project description

Overview

Geeneus is a very simple API for accessing data from the NCBI databases. It currently supports primarily protein records (i.e. queries to the “protein” database) but has some early stage gene record functionality too. We plan to progressively add functionality

The general idea is that once a manager object has been created, all the complexity associated with parsing and networking should be totally abstracted from the user. To achieve this goal, the manager object has a set of functions which can be called and will return relevant data in Python basic data types only. For example, sequences are strings, sets are in dictionaries and lists of dictionaries, etc.

Installation

By far, the easiest way is to use pip to directly install. Running:

sudo pip install Geeneus

Will install Geeneus with the biopython dependency.

Geeneus can also be installed from source using either easy_install, pip or just the`setup.py` script. See the github page for details on this.


Usage

Once installed, general usage is as follows:

#!/usr/bin/env python

from geeneus import Proteome
manager = Proteome.ProteinManager("your.emailaddress@email.com")
manager.get_protein_name("accession number")

NCBI requires that requests are accompanied by an email address. Geeneus is built such that it is impossible to exceed the eUtils guideline queries-per-minute rate if you use a single manager object. However, there are other guideliness which may be broken. As a user, you are recommended to review NCBI’s usage guidelines and ensure you act accordingly.

For more information regarding the possible functions try:

help(geeneus)
help(geeneus.Proteome)

More information

For information on this project, including underlying design principles just click here.

Requirements

Geeneus requires biopython. Initially we’re assuming biopython version 1.6, although earlier versions haven’t been tested. To put it another way, we’ve tested on 1.6 and all’s well. Earlier versions may also work, but you’re on your own.

About

This code was developed by Alex Holehouse at Washington University in Saint Louis as part of the Naegle lab. It is licensed under the the GNU General Public License (GPL-2.0). For more information see LICENCE.

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

Geeneus-0.1.4.tar.gz (45.7 kB view details)

Uploaded Source

File details

Details for the file Geeneus-0.1.4.tar.gz.

File metadata

  • Download URL: Geeneus-0.1.4.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Geeneus-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5a245c000c2037112f12bb938fff38d05d25ec324938119870838cb25ac9e062
MD5 e83a61dcfdd10c66282d637c279b261a
BLAKE2b-256 b387201a4c711d4f0687b5ceff91ed678a204741b4ad419ed9f0e23c9e84080b

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