Skip to main content

ngslib

ngslib current release: ngslib 1.1.19

Wiki page moved to GitHub.

Requirement

  • numpy scientific computation

  • pysam (>0.8.2) SAM/BAM file manipulation

  • argparse (required if Python2.6 is used)

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.

Metadata

Release files for ngslib 1.1.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngslib 1.1.20
File Size Uploaded Provenance Actions
ngslib-1.1.20.tar.gz 1.1 MB Without provenance Details for ngslib-1.1.20.tar.gz

Release files / ngslib-1.1.20.tar.gz

Download URL ngslib-1.1.20.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
935003364cb7e98b9e6342b0d80b647e512324da125c49a16ccb1fefa530b1e2
BLAKE2b-256 checksum
How to use checksums
27f5353b7711e9d9a6c557b4858788412448999be6d7a9b636e21d58852af1c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ngslib 1.1.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page