align: Align two sequences

Description Usage Arguments Value Examples

View source: R/alignment.R

Description

Align two sequences using local (Smith-Waterman) or global (Needleman-Wunsch) sequence alignment.

Usage

1
2
3
4
5
6
7
8
align(
  x1,
  x2,
  score.matrix = NULL,
  gap.score = -1,
  type = "local",
  debug = FALSE
)

Arguments

x1

pattern sequence: a character vector, scalar or AAString.

x2

subject sequence: a character vector, scalar or AAString.

score.matrix

substitution matrix.

gap.score

gap score.

type

type of alignment: global or local (default: local).

debug

logical; whether to return debugging data.

Value

AlignResult object.

Examples

1
2
library(motiftools)
align("ALVDE", "AVRES", score.matrix = "BLOSUM62")

ddiez/motiftools documentation built on May 8, 2020, 11:38 a.m.