align: Calculate Index for Alignment of Two matrices

Description Usage Arguments Value Author(s) Examples

Description

Calculate Index for Alignment of Two matrices

Usage

1
2
align(m1, m2, n1 = 1, n2 = 1, col = 3, win = 50,
  direction = c("center", "left", "right")[1])

Arguments

m1,m2

matrix objects or objects of matrix shape, m1 is the matrix to be aligned, and m2 is the matrix to be aligned to.

n1,n2

Starting index for m1 and m2

win

the min. window size to be searched for best alignment

direction

direction to look at during alignment

Value

a matrix, the aligned m1 with same dimensions

Author(s)

Siyu Sun

Examples

1
a_m1 <- align(m1, m2, col=3)

sunsiyu/accr documentation built on May 30, 2019, 8:39 p.m.