isPatternUnique: Output whether the input patterns occurs only once in the...

Description Usage Arguments Value Author(s) Examples

View source: R/isPatternUnique.R

Description

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.

Usage

1

Arguments

seq

flanking sequence of a gRNA

patterns

patterns as DNAStringSet, such as a list of RE sites

Value

returns a character vectors containing the uniqueness of each pattern/RE site

Author(s)

Lihua Julie Zhu

Examples

1
2
3
4
5
    seq <- "TGGATTGTATAATCAGCATGGATTTGGAAC"
    patterns <- DNAStringSet(c("TGG", "TGGA", "TGGATA", "TTGGAAC", ""))
    isPatternUnique(seq, patterns)
    isPatternUnique(seq)
    isPatternUnique(patterns)

CRISPRseek documentation built on Jan. 14, 2021, 2:50 a.m.