Skip to main content

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

Project description

pyJASPAR

A serverless interface to Biopython to query and access JASPAR motifs from different releases of JASPAR database using sqlite3.

https://travis-ci.org/asntech/pyjaspar.svg?branch=master 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://anaconda.org/bioconda/pyjaspar/badges/installer/conda.svg https://img.shields.io/github/issues/asntech/pyjaspar.svg Documentation Status
pyJASPAR provides access to JASPAR database releases including:

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_motif_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

Find available releases

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

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.5.0.tar.gz (37.5 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pyjaspar-1.5.0.tar.gz
  • Upload date:
  • Size: 37.5 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.5.0.tar.gz
Algorithm Hash digest
SHA256 6c80db31b57a713f820286230e6fa23e95e3756482de1b97a1257790665efaa0
MD5 0d590a82425c600d95e1e442ab77e97b
BLAKE2b-256 a24d3ab14af8a948587559816baabc3d7df7e277578cd19041af5a050ce82cd8

See more details on using hashes here.

Provenance

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