Description Usage Arguments Details Value Examples
Given a motif length and a string it finds the blocks of the string.
1 | BLMM(s, motifLength = 4, returnType = "numeric")
|
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). |
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.
Depending on returnType it return an object of class 'numeric', 'string', or 'fulllist'.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.