Skip to main content

DNase-seq analysis library

Project description

https://travis-ci.org/jpiper/pyDNase.png?branch=master https://coveralls.io/repos/jpiper/pyDNase/badge.png?branch=master

Introduction

Many people currently analyzing DNase-seq data are using tools designed for ChIP-seq work, but may be inappropriate for DNase-seq data where one is less interested in the overlaps of sequenced fragments, but the site at which the cut occurs (the 5’ most end of the aligned sequence fragment).

We have developed pyDNase to interface with a sorted and indexed BAM file from a DNase-seq experiment, allowing efficient and easy random access of DNase-seq cut data from any genomic location, e.g.

>>> import pyDNase
>>> reads = pyDNase.BAMHandler(pyDNase.example_reads())
>>> reads["chr6,170863500,170863532,+"]
{'+': array([0,0,0,1,0,0,1,1,2,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,1,0,0,0,1]),
 '-': array([0,10,1,0,1,0,4,9,0,1,0,2,1,0,0,0,0,0,3,0,6,3,0,0,0,1,1,1,3,0,3,6])}

Querying the BAMHandler object returns a dictionary containing numpy arrays with DNase cut counts on the positive reference strand (+), and cuts on the negative reference strand (-). pyDNase efficiently caches the cut data queried, so that multiple requests from the same genomic locations do not require repeated lookups from the BAM file (this can be disabled).

pyDNase comes with several analysis scripts covering several common use cases of DNase-seq analysis, and also an implementation of the Wellington and Wellington 1D footprinting algorithms.

to install pyDNase, ensure NumPy is installed, and run:

$ pip install pyDNase

for full documentation go to: http://pythonhosted.org/pyDNase/

Support

If you’re having any troubles, please send an email to j.piper@warwick.ac.uk and I’ll do my best to help you out. If you notice any bugs, then please raise an issue over at the github repo.

Contributions

I highly encourage contributions! This is my first software development project - send any pull requests this way. I’m particularly interested in cool analysis scripts that anyone has written.

Reference

License

Copyright (C) 2013 Jason Piper. This work is licensed under the GNU GPLv3 license, see LICENCE.TXT for details.

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

pyDNase-0.1.7.tar.gz (206.4 kB view details)

Uploaded Source

File details

Details for the file pyDNase-0.1.7.tar.gz.

File metadata

  • Download URL: pyDNase-0.1.7.tar.gz
  • Upload date:
  • Size: 206.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyDNase-0.1.7.tar.gz
Algorithm Hash digest
SHA256 bda7de6d7731edfb719890bbddfbc5e19142933fe5f49ec9ff76f2c52bf89ee1
MD5 deef29ec38123367fe4c8b61b8019fcf
BLAKE2b-256 a49a62b8034b610bd8796547f303fc0089b2fec99a2c60a273a4a9163cf9e843

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