"Algebras/DotBracket/alg_dotBracket.gap" produces the Vienna-Dot-Bracket string for a candidate. An unpaired base is represented by a single dot .
, whilst pairing nucleotides are written with round brackets, (
for the opening partner and )
for the closing partner. Choice function is either identity or for ambiguous grammars like Grammars/gra_microstate.gap unique.
Since algebra functions are commonly used by other algebras (Algebras/DotBracket/alg_dotBracket.gap, Algebras/DotBracket/alg_outside_dotBracket.gap, Algebras/DotBracket/alg_ali_dotBracket.gap and Algebras/DotBracket/alg_ali_outside_dotBracket.gap), they are outsourced in the files Algebras/DotBracket/algpart_dotBracket_basic.gap and Algebras/DotBracket/algpart_dotBracket_macrostate.gap.