View source: R/isPatternUnique.R
isPatternUnique | R Documentation |
Input a sequence and a list of patterns and determine if the patterns occurs only once in the sequence. Used for determining whether an RE site in gRNA also occurs in the flanking region.
isPatternUnique(seq, patterns)
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
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.