Skip to main content

A simple pythonic interface to biomart.

Project description

https://travis-ci.org/jrderuiter/pybiomart.svg?branch=develop https://coveralls.io/repos/github/jrderuiter/pybiomart/badge.svg?branch=develop

A simple and pythonic biomart interface for Python.

The intent of pybiomart is to provide a simple interface to biomart, which can be used to easily query biomart databases from Python. In this sense, pybiomart aims to provide functionality similar to packages such as biomaRt (which provides access to biomart from R).

Documentation

Documentation is available at: https://jrderuiter.github.io/pybiomart.

Examples

Retrieving and querying a dataset using the server interface:

from pybiomart import Server

server = Server(host='http://www.ensembl.org')

dataset = (server.marts['ENSEMBL_MART_ENSEMBL']
                 .datasets['hsapiens_gene_ensembl'])

dataset.query(attributes=['ensembl_gene_id', 'external_gene_name'],
              filters={'chromosome_name': ['1','2']})

Retrieving a dataset directly with known dataset name:

from pybiomart import Dataset

dataset = Dataset(name='hsapiens_gene_ensembl',
                  host='http://www.ensembl.org')

dataset.query(attributes=['ensembl_gene_id', 'external_gene_name'],
              filters={'chromosome_name': ['1','2']})

License

Released under the MIT license.

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

pybiomart-0.2.0.tar.gz (195.8 kB view details)

Uploaded Source

Built Distributions

pybiomart-0.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

pybiomart-0.2.0-py2-none-any.whl (10.6 kB view details)

Uploaded Python 2

File details

Details for the file pybiomart-0.2.0.tar.gz.

File metadata

  • Download URL: pybiomart-0.2.0.tar.gz
  • Upload date:
  • Size: 195.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pybiomart-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e9eac20db921820670c646d99725b0ee279e407379e5e8c3ec7245a07425d8fe
MD5 3a6dd8ba1f3971798e34de4e4c1c610b
BLAKE2b-256 91223c7f20669238c228c2768c733377078e57b60bc58b93a7b517f56b795df0

See more details on using hashes here.

File details

Details for the file pybiomart-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pybiomart-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c88bdd97887e2144a8be44036901aa032a824c82b42c33e24515b6c786b80933
MD5 18b554310b0690f321bf682559683387
BLAKE2b-256 4a6d23cf5ae8b0a549a60164c49836c8e8eb393747b5fd00a7b5d9445886e0d8

See more details on using hashes here.

File details

Details for the file pybiomart-0.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for pybiomart-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 a5f6b74341784d848db23cc755707dc26b03afe6be3513bc8bd97a1d080daa8f
MD5 62d1c3ca26b86be1b123a96773fecd2d
BLAKE2b-256 56e891d1f19cf71471b5baac69df805cc41c0aec82b6b4646c535a7a9af4edec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page