doAlignment_S4: Perform non-affine global and overlap alignment on a...

Description Usage Arguments Value Author(s) Examples

Description

Perform non-affine global and overlap alignment on a similarity matrix

Usage

1
doAlignment_S4(s, signalA_len, signalB_len, gap, OverlapAlignment)

Arguments

s

(NumericMatrix) A numeric matrix with similarity values of two sequences or signals

signalA_len

(int) Length of signalA or sequenceA. Expresses along the rows of s

signalB_len

(int) Length of signalB or sequenceB. Expresses along the columns of s

gap

(float) Penalty for introducing gaps in alignment

OverlapAlignment

(bool) An input for alignment with free end-gaps. False: Global alignment, True: overlap alignment

Value

AlignObj (S4class) An object from C++ class of AlignObj

Author(s)

Shubham Gupta, [email protected] ORCID: 0000-0003-3500-8152 License: (c) Author (2019) + MIT Date: 2019-03-08

Examples

1
2
3
4
5
6
7
8
# Get sequence similarity of two DNA strings
Match=10; MisMatch=-2
seq1 = "GCAT"; seq2 = "CAGTG"
s <- getSeqSimMat(seq1, seq2, Match, MisMatch)
obj_Global <- doAlignment_S4(s, 4, 5, 22, FALSE)
obj_Global@score # -2 -4 -6 4 -18
obj_Olap <- doAlignment_S4(s, 4, 5, 22, TRUE)
obj_Olap@score # 0 10 20 18 18 18

shubham1637/DIAlignR documentation built on May 8, 2019, 8:12 a.m.