Help us shape the future of Go! Take the 2026 Go Developer Survey

nwalgo

package module
v0.0.0-...-4a23208 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2016 License: MIT Imports: 0 Imported by: 5

README

===============================================================================
nwalgo - Needleman-Wunsch Alignment in Go
===============================================================================

-------------------------------------------------------------------------------
About
-------------------------------------------------------------------------------

An implementation of the Needleman-Wunsch global alignment algorithm [1] in Go.
Computes the alignment score and optimal global alignment.

-------------------------------------------------------------------------------
Install
-------------------------------------------------------------------------------

Fetch from github::

    $ go get github.com/aebruno/nwalgo/...

-------------------------------------------------------------------------------
Usage
-------------------------------------------------------------------------------

Align 2 DNA sequences::

    $ nwalgo -seq1 GAAAAAAT -seq2 GAAT 
    GAAAAAAT
    GAA----T
    Score: 0

From code::

    package main

    import (
        "github.com/aebruno/nwalgo"
    )

    func main() {
        aln1, aln2, score := nwalgo.Align("GAAAAAAT", "GAAT", 1, -1, -1)
    }

-------------------------------------------------------------------------------
References
-------------------------------------------------------------------------------

[1] http://en.wikipedia.org/wiki/Needleman-Wunsch_algorithm

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Up   byte = 1
	Left byte = 2
	NW   byte = 3
	None byte = 4
)

Functions

func Align

func Align(a, b string, match, mismatch, gap int) (alignA, alignB string, score int)

Types

This section is empty.

Directories

Path Synopsis
cmd
nwalgo command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL