BLMM: Block length of the missing motif.

Description Usage Arguments Details Value Examples

Description

Given a motif length and a string it finds the blocks of the string.

Usage

1
BLMM(s, motifLength = 4, returnType = "numeric")

Arguments

s

a string of either class: 'character' or 'DNAString'.

motifLength

the known motif length of the STR region.

returnType

the type of return wanted. Takes three values 'numeric', 'string', or 'fullList' (or any other combination cased letters).

Details

If returnType is 'numeric', the function returns the numeric value of the LUS. If returnType is instead chosen as 'string', the function returns "[AATG]x" i.e. the motif, AATG, is repeated 'x' times. Lastly if the returnType is set to fullList, the function returns a list of data.frames containing every possible repeat structure their start and the numeric value of the repeat unit length.

Value

Depending on returnType it return an object of class 'numeric', 'string', or 'fulllist'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Creating compound string 's'
stretch1 = paste0(rep("AATG", 10), collapse = "")
stretch2 = paste0(rep("ATCG", 4), collapse = "")

s = paste0(stretch1, stretch2)

# Return BLMM only
BLMM(s, motifLength = 4, returnType = "numeric")

# Return BLMM and motif of stretch
BLMM(s, motifLength = 4, returnType = "string")

# Return all blocks of 's'
BLMM(s, motifLength = 4, returnType = "fulllist")

STRMPS documentation built on May 2, 2019, 3:35 a.m.

Related to BLMM in STRMPS...