Coder Social home page Coder Social logo

biocommons / uta-align Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 6.0 358 KB

C-based Needleman-Wunsch and Smith-Waterman alignment algorithms with a Python interface.

License: Apache License 2.0

Makefile 4.61% Python 12.38% Perl 1.06% Cython 81.51% Shell 0.43%
bioinformatics sequence-alignment sequences

uta-align's Introduction

uta-align provides C-based (Cython) Needleman-Wunsch and Smith-Waterman alignment algorithms

build_status pypi_badge

Original author: Kevin Jacobs

IMPORTANT: Python 3.7 only for the moment (PRs welcome!)

Installation

  • From source:

    $ python setup.py install
    

For Development

  • Install developer environment:

    $ make devready
    

    Alternatively:

    $ python3 -m venv myvenv
    $ source myvenv/bin/activate
    $ make setup
    
  • Activate the environment:

    $ source venv/3.7/bin/activate
    

    (or other python version as appropriate for your system)

  • During development, you'll need to recompile any code changes to the .pyx files, like this:

    $ pip install -e .
    
  • Test it (in current Python environment):

    $ make test
    ======================================== test session starts ========================================
    platform linux -- Python 3.7.5, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
    rootdir: /home/reece/projects/biocommons/uta-align, inifile: setup.cfg, testpaths: tests
    collected 5 items
    tests/test_align_algorithms.py .                                                              [ 20%]
    tests/test_align_gap_open.py ..                                                               [ 60%]
    tests/test_cigar_utils.py .                                                                   [ 80%]
    tests/test_nw.py .                                                                            [100%]
    ========================================= 5 passed in 0.12s =========================================
    
  • Tox test it (in multiple environments:

    $ make tox
    
    GLOB sdist-make: /home/reece/projects/biocommons/uta-align/setup.py
    py37 inst-nodeps: /home/reece/projects/biocommons/uta-align/.tox/.tmp/package/...
    ...
    py37: commands succeeded
    congratulations :)
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.