Code Monkey home page Code Monkey logo

seqanpy's Introduction

Build Status PyPI version

Fast pairwise sequence alignment using SeqAn, in Python.

REQUIREMENTS

  • Python 2.7 or 3.3+.
  • A C++ 11 compiler, e.g. GCC 4.8+. If you are using SeqAn 2.2+ (see below), then you need a C++ 14 compiler, e.g. GCC 5.2+.
  • SeqAn 1.4 or later. If you are using SeqAn 2.2+, then you need a C++ 14 compiler, e.g. GCC 5.2+.
  • SWIG 3 (there is a branch for SWIG 2)

INSTALL

Export the environment variable SEQAN_INCLUDE_PATH to the parent folder of your seqan include folder. For instance, if your SeqAn headers are in /usr/local/include/seqan, set:

export SEQAN_INCLUDE_PATH=/usr/local/include

If your SWIG 3 is not executed by the standard swig command, e.g. because it is called swig3 or because it is not in the PATH, just export another environment variable called SWIG, e.g.:

export SWIG=swig3

Now you can use one of the following methods to install seqanpy.

Pip

pip install seqanpy

Setup.py (development version)

Clone the github repo. To install system-wide:

python2.7 setup.py install

To install in the current folder:

python2.7 setup.py install --install-lib .

Remember to add the current folder to your PYTHONPATH.

To install to a specific folder, put your destination folder after the --install-lib option. Remember to add that to your PYTHONPATH

USAGE

import seqanpy
print(seqanpy.align_global('ACCGGT', 'CCG'))

seqanpy's People

Contributors

colinanthony avatar iosonofabio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

seqanpy's Issues

Variable referenced before assigning

hi @iosonofabio

is just installed seqanpy on the basel cluster and got errors when calling alignment routines (quite possibly a swig version issue). It complains that seq1 is not defined in the statement seq1="".join(seq1) where seq1 is supposed to be the first argument of the function. But swig defined the function as align_overlap(*args, **kwargs)

I removed the prepend statements for now and it works. but I thought you might want to know...

cheers,
richard

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.