Description Usage Arguments Value Author(s) Examples
The function returns a vector the length of the original sequence (seqz) that contains a 1 if the position matched the pattern otherwise 0.
1 | grepSeq(seqz, patternz, returnCounts = T)
|
seqz |
Character vector representing the to search for a pattern. |
patternz |
Regular expression to search for |
returnCounts |
if |
A vector containing the matches.
Sterling Sawaya sterlingsawaya@gmail.com
1 2 3 | grepSeq('ATCTCTCTTCTCTTC','TC')
# 6 regions found
# [1] 0 1 1 1 1 1 1 0 1 1 1 1 0 1 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.