getRegexPattern: Convert IUPAC sequence to an regular expression

View source: R/getRegexPattern.R

getRegexPatternR Documentation

Convert IUPAC sequence to an regular expression

Description

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

Usage

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

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


Aufiero/circRNAprofiler documentation built on Oct. 31, 2023, 1:18 a.m.