Skip to main content

A serverless interface to Biopython to access different versions of JASPAR database

Project description

pyJASPAR

A Pythonic interface to JASPAR transcription factor motifs

pyJASPAR uses Biopython and SQLite3 to provide a serverless interface to JASPAR database to query and access TF motif profiles across various releases of JASPAR.

https://zenodo.org/badge/DOI/10.5281/zenodo.4509415.svg https://travis-ci.org/asntech/pyjaspar.svg?branch=main https://img.shields.io/pypi/pyversions/pyjaspar.svg https://img.shields.io/pypi/v/pyjaspar.svg https://anaconda.org/bioconda/pyjaspar/badges/version.svg https://anaconda.org/bioconda/pyjaspar/badges/downloads.svg https://img.shields.io/github/issues/asntech/pyjaspar.svg
pyJASPAR provides access to the following releases of JASPAR database:

Note: This is a serverless SQLite wrapper around the Biopython JASPAR module Bio.motifs.jaspar.db which requires JASPAR MySQL database sever connection details.

Documentation

A detailed documentation is available in different formats: HTML | PDF | ePUB

Installation

Quick installation using conda

pyJASPAR is available on Bioconda for installation via conda.

conda install -c bioconda pyjaspar

Install using pip

pyJASPAR is also available on PyPi for installation via pip.

pip install pyjaspar

pyJASPAR uses BioPython and it supports python 3.x.

Install pyjaspar from source

You can install a development version by using git from GitHub.

Install development version from GitHub

If you have git installed, use this:

git clone https://github.com/asntech/pyjaspar.git
cd pyjaspar
python setup.py sdist install

How to use pyJASPAR?

Once you have installed pyjaspar, you can create jaspardb class object:

>>> from pyjaspar import jaspardb

#Connect the JASPAR2020 release object
>>> jdb_obj = jaspardb(release='JASPAR2020')

#Fetch motif by ID
>>> motif = jdb_obj.fetch_motif_by_id('MA0095.2')
>>> print(motif.name)
YY1

#Fetch motifs by TF name
>>> motifs = jdb_obj.fetch_motifs_by_name('CTCF')
>>> print(len(motifs))
2

#Get CORE vertebrates collection
>>> motifs = jdb_obj.fetch_motifs(
    collection = 'CORE',
    tax_group = ['vertebrates']
    )
>>> print(len(motifs))
746
## loop through the motifs list and perform analysis
>>> for motif in motifs:
        pass

Note: Above methods return Bio.motifs.jaspar.Motif object. You can find more details here

Find available releases

>>> print(jdb_obj.get_releases())
Available JASPAR releases are: ['JASPAR2020', 'JASPAR2018', 'JASPAR2016', 'JASPAR2014']

Cite

  • Aziz Khan. pyJASPAR: a Pythonic interface to JASPAR transcription factor motifs. (2021). doi:10.5281/zenodo.4509415

@software{aziz_khan_2021_4509415,
  author       = {Aziz Khan},
  title        = {{pyJASPAR: a Pythonic interface to JASPAR
                   transcription factor motifs}},
  month        = feb,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {v1.5.5},
  doi          = {10.5281/zenodo.4509415},
  url          = {https://doi.org/10.5281/zenodo.4509415}
}

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

pyjaspar-1.6.0.tar.gz (38.8 MB view details)

Uploaded Source

Built Distribution

pyjaspar-1.6.0-py3.8.egg (38.9 MB view details)

Uploaded Egg

File details

Details for the file pyjaspar-1.6.0.tar.gz.

File metadata

  • Download URL: pyjaspar-1.6.0.tar.gz
  • Upload date:
  • Size: 38.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for pyjaspar-1.6.0.tar.gz
Algorithm Hash digest
SHA256 dbe1c8c556298163a4ff4c8c323f0ac309c32cab0ca2e916600fdb8e31de3de3
MD5 f7db38bc51cb991416ea28ae8e4dcc58
BLAKE2b-256 a446360ec0576fd15720fac4e8b47186dc6977a5ca8c1031d41ee86c14f1c931

See more details on using hashes here.

File details

Details for the file pyjaspar-1.6.0-py3.8.egg.

File metadata

  • Download URL: pyjaspar-1.6.0-py3.8.egg
  • Upload date:
  • Size: 38.9 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for pyjaspar-1.6.0-py3.8.egg
Algorithm Hash digest
SHA256 44587b00a0ff519c80da5dde7d8234b69327cf852e3fac164d751e9388fa4e36
MD5 7eaebbcb0f8b062bc86e2f713f8435e7
BLAKE2b-256 7fca9c5e03d39b36bea574ebe9b09b9aea78b0450e8404f626a2970e3f8107e0

See more details on using hashes here.

Supported by

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