AAFC-BICoE/pybold

Name: pybold

Owner: Biological Informatics CoE @ Agriculture and Agri-Food Canada

Owner: Biological Informatics CoE @ Agriculture and Agri-Food Canada

Description: Python bindings for Barcode of Life's Restful services

Created: 2015-11-17 02:12:46.0

Updated: 2016-03-13 02:36:25.0

Pushed: 2016-03-13 02:38:29.0

Homepage: null

Size: 434

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

pybold

Python bindings for Barcode of Life's Restful WebServices.

These python modules provide object oriented methods to query various endpoints from the Barcode of Life web services.

Install using pip

The latest release can be installed using pip as follows:

pip install pybold

Alternatively, the latest modifications in the source can be installed from github using pip

pip install -e git+https://github.com/aafc-mbb/pybold#egg=pybold

Getting Started

Generally, you will start with one of the client classes to query the web services and return a set of objects that match the search criteria.

rt pybold.specimen

ns_list = ['Achaeorhizomycetes', 'Arthoniomycetes']

 pybold.specimen.SpecimensClient()
imen_list = sc.get(taxons='|'.join(taxons_list))

specimen in specimen_list:
int specimen.process_id

Currently, there are 3 clients: SpecimensClient, SequencesClient, and TracefilesClient. Each client has a get method that will return a list of objects (Specimen, Sequence, Tracefile) corresponding to the search criteria.

As a convenience, the Specimen, Sequence, and Tracefile objects permit looking up the corresponding Specimen, Sequence, or Tracefile objects.

rt pybold.tracefile

ns_list = ['Achaeorhizomycetes', 'Arthoniomycetes']

 pybold.tracefile.TracefilesClient()
efile_list = tc.get(taxons='|'.join(taxons_list))

tracefile in tracefile_list:
int tracefile.sequence.seq

pybold

Python bindings for Barcode of Life's Restful WebServices.

These python modules provide object oriented methods to query various endpoints from the Barcode of Life web services.

Install using pip

The latest release can be installed using pip as follows:

pip install pybold

Alternatively, the latest modifications in the source can be installed from github using pip

pip install -e git+https://github.com/aafc-mbb/pybold#egg=pybold

Getting Started

Generally, you will start with one of the client classes to query the web services and return a set of objects that match the search criteria.

rt pybold.specimen

ns_list = ['Achaeorhizomycetes', 'Arthoniomycetes']

 pybold.specimen.SpecimensClient()
imen_list = sc.get(taxons='|'.join(taxons_list))

specimen in specimen_list:
int specimen.process_id

Currently, there are 3 clients: SpecimensClient, SequencesClient, and TracefilesClient. Each client has a get method that will return a list of objects (Specimen, Sequence, Tracefile) corresponding to the search criteria.

As a convenience, the Specimen, Sequence, and Tracefile objects permit looking up the corresponding Specimen, Sequence, or Tracefile objects.

rt pybold.tracefile

ns_list = ['Achaeorhizomycetes', 'Arthoniomycetes']

 pybold.tracefile.TracefilesClient()
efile_list = tc.get(taxons='|'.join(taxons_list))

tracefile in tracefile_list:
int tracefile.sequence.seq

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.