A simple pythonic interface to biomart.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pybiomart-0.2.0-py2-none-any.whl (10.6 kB) | File type Wheel | Python version py2 | Upload date | Hashes View |
Filename, size pybiomart-0.2.0-py3-none-any.whl (10.6 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pybiomart-0.2.0.tar.gz (195.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for pybiomart-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f6b74341784d848db23cc755707dc26b03afe6be3513bc8bd97a1d080daa8f |
|
MD5 | 62d1c3ca26b86be1b123a96773fecd2d |
|
BLAKE2-256 | 56e891d1f19cf71471b5baac69df805cc41c0aec82b6b4646c535a7a9af4edec |
Close
Hashes for pybiomart-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c88bdd97887e2144a8be44036901aa032a824c82b42c33e24515b6c786b80933 |
|
MD5 | 18b554310b0690f321bf682559683387 |
|
BLAKE2-256 | 4a6d23cf5ae8b0a549a60164c49836c8e8eb393747b5fd00a7b5d9445886e0d8 |