countMidPatternContext2 | R Documentation |
This function searches for a specified middle pattern within a given sequence. It then counts the occurrences of specific context patterns within a defined window size around the middle pattern. The function returns a map where keys are the counts of context patterns found and values are the frequencies of these counts.
countMidPatternContext2(sequence, mid_pattern, window, context_patterns)
sequence |
A string representing the sequence to be analyzed. |
mid_pattern |
A string representing the middle pattern to search for within the sequence. |
window |
An integer specifying the size of the surrounding window around the middle pattern. |
context_patterns |
A vector of strings representing the context patterns to search for within the window. |
A std::unordered_map<int,int> where keys are the counts of context patterns found and values are the frequencies of these counts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.