Python Modules for Next-Generation Sequencing Data Analysis.
Project description
ngslib current release: ngslib 1.1.19
Wiki page moved to GitHub.
Requirement
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
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.
Source Distribution
File details
Details for the file ngslib-1.1.20.tar.gz
.
File metadata
- Download URL: ngslib-1.1.20.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 935003364cb7e98b9e6342b0d80b647e512324da125c49a16ccb1fefa530b1e2 |
|
MD5 | 1cf10a7b1332ab7a4f6ecc33127ba3ed |
|
BLAKE2b-256 | 27f5353b7711e9d9a6c557b4858788412448999be6d7a9b636e21d58852af1c0 |