checkSeq: validate the dot-bracket form sequences

Description Usage Arguments Value Examples

View source: R/dotComp.R

Description

A function that check if the sequence is validate, if the number of ( is not equal to the number of ), then the motif sequence is not complete. When calling the dotComp function will also run this funtion for validation.

Usage

1
checkSeq(seqs)

Arguments

seqs

A string represent an RNA secondary structure in dot bracket form

Value

Returns an empty string when the sequence is validate, return an string "error" if the sequence is not validate

Examples

1
2
#this should return an empty string
checkSeq("...(((...)))...")

Deemolotus/gscVisualizer documentation built on Dec. 31, 2020, 11:55 a.m.