Description Usage Arguments Value Author(s) Examples
View source: R/isPatternUnique.R
Input a sequence and a list of patterns and determine if the patterns occurs only once in the sequence. Used for determining whether a RE site in gRNA also occurs in the flanking region.
1 |
seq |
flanking sequence of a gRNA |
patterns |
patterns as DNAStringSet, such as a list of RE sites |
returns a character vectors containing the uniqueness of each pattern/RE site
Lihua Julie Zhu
1 2 3 4 5 | seq <- "TGGATTGTATAATCAGCATGGATTTGGAAC"
patterns <- DNAStringSet(c("TGG", "TGGA", "TGGATA", "TTGGAAC", ""))
isPatternUnique(seq, patterns)
isPatternUnique(seq)
isPatternUnique(patterns)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.