File:Needleman-Wunsch pairwise sequence alignment.png

From Biolecture.org
Needleman-Wunsch_pairwise_sequence_alignment.png(480 × 480 pixels, file size: 36 KB, MIME type: image/png)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

English: The score matrix for an alignment between two nucleotide sequences:
Sequences    Best Alignments
---------    ----------------------
GCATGCG      GCATG-CG      GCA-TGCG      GCAT-GCG
GATTACA      G-ATTACA      G-ATTACA      G-ATTACA

The Needleman-Wunsch algorithm is a dynamic programming algorithm that finds the best possible alignments between two strings.

It takes three score parameters: match, mismatch, and gap.

Since it is a dynamic programming algorithm, the problem is solved by filling a two dimensional matrix. It requires O(nm) space and time where n and m are the lengths of the first and second string, respectively.

All best possible alignments are found by filling the matrix according to the defined score parameters.

Some optimizations of the algorithm avoid filling values distant from the diagonal, since those values are only needed for the poorest alignments.

Source code: https://gist.github.com/slowkow/508393
Description
English: The score matrix for an alignment between GATTACA and GCATGCU.
Date
Source Own work
Author Slowkow

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

2 April 2014

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current05:36, 1 October 2021Thumbnail for version as of 05:36, 1 October 2021480 × 480 (36 KB)GoatsnstoatsChanged last nucleotide to G to be consistent with actual DNA strings

The following 3 pages link to this file:

Metadata