maxAligned {PWMEnrich} | R Documentation

## Returned the aligned motif parts

### 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

    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

[Package PWMEnrich version 4.28.1 Index]