maxAligned: Returned the aligned motif parts

Description Usage Arguments Value

View source: R/similarity.R

Description

This function takes the offset of first motif relative to second and chops off the end of both motifs that are not aligned. It returns a list containing only the columns that align.

Usage

1
maxAligned(m1, m2, offset)

Arguments

m1

frequency matrix of first motif

m2

frequency matrix of second motif

offset

a number of nucleotides by which the first motif is offsetted compared to the second

Value

a list of column-trimmed motifs m1, m2


PWMEnrich documentation built on Nov. 8, 2020, 7:45 p.m.