Skip to main content

Python Modules for Next-Generation Sequencing Data Analysis.

Project description

=================
Python-fontconfig
=================

Python bindings for ngslib_ library

Requirement
-----------

- numpy_ scientific computation
- pysam_ (>0.8.2) SAM/BAM file manipulation
- argparse_ (required if Python2.6 is used)

.. _numpy: http://www.numpy.org/
.. _pysam: http://pysam.readthedocs.org/en/latest/
.. _argparse: http://pymotw.com/2/argparse/




Tested on
~~~~~~~~

- ``Python 2.6.*`` (64-bit)
- ``Python 2.7.*`` (64-bit)
- ``CentOS 6.4``
- ``Fedora 17``
- ``RedHat 5.5``
- ``Ubuntu 12.04`` (``python-dev`` and ``libpng-dev`` are required)


Installation
------------

From PyPI::

>>> pip install ngslib

or

>>> easy_install ngslib

From source::

>>> easy_install --editable --build-directory . ngslib
>>> cd ngslib
>>> python setup.py install


Major modules
-------------

- **IO**: Read various biological data
- **DB**: Build DB for genomic data for fast query.
- **Pipeline**: Pipelines built using wrappers of commonly used tools.
- **Bed**: Genomic coordinates data format.
- **BedList**: A list of Bed instances.
- **TwoBitFile**: python module for retrieve fasta sequence from 2bit file.
- **BigWigFile**: python module for retrieve Wiggle region from BigWig file.
- **mFile**: uniform interface for input types including regular file, sys.stdin/stdout and StringFile.


Usage
-----

>>> import ngslib
>>> for tbed in ngslib.IO.BioReader('test.bed','bed'):
print tbed

>>> bwf = ngslib.DB('test.bw','bigwig')
>>> for wig in bwf.fetch('chr1',1000,2000):
print wig
>>> depth = bwf.pileup('chr1',3000,4000)
>>> bwf.close()


License
-------

This program is released under ``GPLv3`` license, see ``LICENSE`` for more detail.

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

ngslib-1.1.18.tar.gz (1.0 MB view details)

Uploaded Source

File details

Details for the file ngslib-1.1.18.tar.gz.

File metadata

  • Download URL: ngslib-1.1.18.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ngslib-1.1.18.tar.gz
Algorithm Hash digest
SHA256 32dee9ccbf7e027fad5aa4bee5b8cca3b4a03c43052a15a12dd23d06c977f6ce
MD5 5e722693cce56a46fa8dd06833723601
BLAKE2b-256 3c5ec3be48a0e741d494ff4e1df87ec1932dc60b32023f08f63f6e6ea6c9c984

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