getRegexPattern: Convert IUPAC sequence to an regular expression

Description Usage Arguments Value Examples

View source: R/getRegexPattern.R

Description

The function getRegexPattern() converts a nucleotide sequence with IUPAC codes to an regular expression.

Usage

1
getRegexPattern(iupacSeq, isDNA = FALSE)

Arguments

iupacSeq

A character string with IUPAC codes.

isDNA

A logical specifying whether the iupacSeq is DNA or RNA. Deafult value is FALSE.

Value

A character string.

Examples

1
regextPattern <- getRegexPattern("CGUKMBVNN", isDNA = FALSE)

circRNAprofiler documentation built on Oct. 31, 2019, 3:23 a.m.