nCopiesAlongFlank | R Documentation |
Helper function for extractSigsIndel(). Scans along the flanking sequence for copies of the indel sequence using a sliding window with a length equal to the length of the indel sequence. The sliding window jumps in increments equal to the indel length. Scanning stops prematurely when the indel sequence does not match the one in the sliding window. The indel sequence itself counts as one copy.
Scanning needs only to be done from the 5' -> 3' direction as the reported POS of an indel in a repeat region is always the first position of the repeat region.
nCopiesAlongFlank(indel.seq, flank.seq)
indel.seq |
The indel sequence as a character |
flank.seq |
The flanking sequence as a character |
An integer stating the number of copies found in the flanking sequence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.