substitute_wildcards: Substitute Wildcard Characters in a DNA Sequence

View source: R/substitute_wildcards.R

substitute_wildcardsR Documentation

Substitute Wildcard Characters in a DNA Sequence

Description

Substitutes wildcard characters in a DNA sequence with their associated nucleotides surrounded by square brackets. The output is useful for matching in regular expressions.

Usage

substitute_wildcards(sequence)

Arguments

sequence

A string specifying the DNA sequence containing wildcard characters.

Value

A string of the DNA sequence in which wildcard characters are replaced with their associated nucleotides surrounded by square brackets.

Examples

substitute_wildcards(sequence="CAADATCCGCGGSTGGAGAA")

LocaTT documentation built on Nov. 2, 2023, 6:09 p.m.