Skip to main content

pairwise sequence alignment library

Project description

# parasail-python: Python Bindings for the Parasail C Library

Author: Jeff Daily (jeff.daily@pnnl.gov)

## Table of Contents

  • [Installation](#installation)

  • [Citing parasail](#citing-parasail)

  • [License: Battelle BSD-style](#license-battelle-bsd-style)

This package contains Python bindings for [parasail](https://github.com/jeffdaily/parasail). Parasail is a SIMD C (C99) library containing implementations of the Smith-Waterman (local), Needleman-Wunsch (global), and semi-global pairwise sequence alignment algorithms.

## Installation

[back to top]

Once you have installed parasail into –prefix=$PREFIX, you can also compile the Python bindings. Don’t forget to add $PREFIX/lib to your LD_LIBRARY_PATH, if needed. The Python bindings are in the <parasail>/bindings/python directory. To build, run:

` PARASAIL_PREFIX=$PREFIX python setup.py build `

This will correctly setup the necessary CPPFLAGS, LDFLAGS, and LIBS variables during the build. Because the parasail.h header uses C99 keywords, e.g., restrict, the setup.py process will test your C compiler for the correct use of restrict, automatically.

The Python interface only includes bindings for the dispatching functions, not the low-level instruction set-specific function calls. The Python interface also includes wrappers for the various PAM and BLOSUM matrices included in the distribution.

Example:

`python import parasail result = parasail.sw_scan_16("asdf", "asdf", -11, -1, parasail.blosum62) result = parasail.sw_stats_striped_8("asdf", "asdf", -11, -1, parasail.pam100) `

## Citing parasail

[back to top]

If needed, please cite the following paper.

Daily, Jeff. (2016). Parasail: SIMD C library for global, semi-global, and local pairwise sequence alignments. BMC Bioinformatics, 17(1), 1-11. doi:10.1186/s12859-016-0930-z

http://dx.doi.org/10.1186/s12859-016-0930-z

## License: Battelle BSD-style

[back to top]

Copyright (c) 2015, Battelle Memorial Institute

  1. Battelle Memorial Institute (hereinafter Battelle) hereby grants permission to any person or entity lawfully obtaining a copy of this software and associated documentation files (hereinafter “the Software”) to redistribute and use the Software in source and binary forms, with or without modification. Such person or entity may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and may permit others to do so, subject to the following conditions:

    • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.

    • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

    • Other than as used herein, neither the name Battelle Memorial Institute or Battelle may be used in any form whatsoever without the express written consent of Battelle.

    • Redistributions of the software in any form, and publications based on work performed using the software should include the following citation as a reference:

    Daily, Jeff. (2016). Parasail: SIMD C library for global, semi-global, and local pairwise sequence alignments. BMC Bioinformatics, 17(1), 1-11. doi:10.1186/s12859-016-0930-z

  2. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BATTELLE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

[back to top]: #parasail-pairwise-sequence-alignment-library

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

parasail-1.0.0.zip (21.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

parasail-1.0.0-py2.py3-none-win_amd64.whl (1.1 MB view details)

Uploaded Python 2Python 3Windows x86-64

parasail-1.0.0-py2.py3-none-win32.whl (982.3 kB view details)

Uploaded Python 2Python 3Windows x86

parasail-1.0.0-py2.py3-none-macosx_10_10_intel.whl (3.0 MB view details)

Uploaded Python 2Python 3macOS 10.10+ Intel (x86-64, i386)

File details

Details for the file parasail-1.0.0.zip.

File metadata

  • Download URL: parasail-1.0.0.zip
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for parasail-1.0.0.zip
Algorithm Hash digest
SHA256 c286c999a6e50b5a75473a89aa00ec1086d1e55f42f55615e4c9182c8fc42e94
MD5 31e4d45fb7b30846dc5b5e9166c55c3c
BLAKE2b-256 9778d8f7b100a6eafe7a99d04ceb80d015a8ea3500cbe9fe98c061d18e14a2fe

See more details on using hashes here.

File details

Details for the file parasail-1.0.0-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for parasail-1.0.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4e9d5c42790254e8041b880eeb41303aa706c64ec096a23a5fa87d6064686057
MD5 ab885dbb79462859f018f70a6ddf5631
BLAKE2b-256 20fa44277984874152a602171647e3ec5ab58b3df8e9cd2789513e6b654fc6ac

See more details on using hashes here.

File details

Details for the file parasail-1.0.0-py2.py3-none-win32.whl.

File metadata

File hashes

Hashes for parasail-1.0.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 a87a26b3380a33fb7fa59acaa61d553e2ae8cbd4a39186236574db66cf625125
MD5 0a8fba252792fac58cfdddc456d73566
BLAKE2b-256 5f5a3be0aad1bc12dc3230aae681020280082db6cfbb296b088739fe0e09b27a

See more details on using hashes here.

File details

Details for the file parasail-1.0.0-py2.py3-none-macosx_10_10_intel.whl.

File metadata

File hashes

Hashes for parasail-1.0.0-py2.py3-none-macosx_10_10_intel.whl
Algorithm Hash digest
SHA256 d8ec7a713edf21c2ea2d14dc2e87f9ecf933d049ac7b850cd7c3e0f5b5746529
MD5 705bfe37435f5f8cbc517a5c2d54338f
BLAKE2b-256 eacd1a6ffd801a80a880904152d6bd5b0cb97503e99853211d1f03db4a7e943b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page