Giter Club home page Giter Club logo

aligndemo's Introduction

Sequence Alignment Algorithm Demo

Demos:

This code gives a demonstration of several different alignment algorithms. Some algorithms determine an optimal alignment, some only the edit cost. The values in each cell are only displayed if there is room.

The green cells indicate a cell which has been computed by the algorithm. A blue cell indicates that this cell is currently being computed.

Build

Clone this repository. To build (tested with java 12)

make

To run:

java AlignDemo

Implemented algorithms

Standard DPA

This is the simple DPA for point mutation costs, match=0, mismatch=1, insert/delete=1. Each cell of the matrix, D[i][j], contains the edit cost for the sequences s1[1..i] and s2[1..j]. An optimal alignment is drawn through the matrix

Lazy DPA

This is a modified version of the standard DPA which computes a smaller region of the D matrix (runs in O(nd) time), where d is the edit distance.

ref

Ukkonen's Algorithm

Ukkonen's algorithm runs in O(d*d + n) time. This algorithm does not use the D matrix like the other DPA algorithms. However, Ukkonen's algorithm is shown here operating of the standard matrix to give an idea as to which cells of the DPA matrix it computes. Blue cells indicate a cell currently being computed. Green cells indicate cells that have already been computed.

ref

Hirschberg

Hirschberg presented a modification of the DPA that allows an optimal alignment to be found in O(n) space. Green cells are cells that have been computed and are currently stored. Yellow cells indicate cells that are known to lie on the optimal alignment.

wikipedia desc

Linear DPA

This algorithm is the O(n*n) DPA for linear gap costs, with gaps costed as a+b*k where a=3, b=1, matches=0, mismatches=0.

Ukkonen Linear

This is Ukkonen's algorithm for linear gap costs (same costs as for the Linear DPA case).

aligndemo's People

Contributors

drpowell avatar

Watchers

 avatar

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.