expandSequence {MassArray}R Documentation

Expand nucleotide sequence

Description

Function to process shorthand form of a nucleotide sequence, where a given base pair followed by a number specifies a run of the indicated nucleotide for the specified length (ex: "A6TTCGA4")

Usage

expandSequence(sequence)

Arguments

sequence

Nucleotide sequence input as a character string

Value

Returns an expanded nucleotide sequence as a character string

Author(s)

Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)

Examples

expandSequence("A6TTCGA4")
expandSequence("C10C10")
expandSequence("AT1CG")

[Package MassArray version 1.44.0 Index]