Module nimna_misc

Module nimna_misc

Types

ColorScheme = enum
  csGrayScale, csBlueRed

Procs

proc densityPlot(c: Compound; gamma: float; scheme: ColorScheme = csGrayScale) {.
raises: [ValueError, IndexError, Exception, FieldError], tags: []
.}
Create a colored density plot of the base pairing probabilities in the Compound, in a terminal emulator compatible with ANSI-escapes.
proc readPars(path: string) {.
inline, raises: [], tags: []
.}
Reads an folding parameter file located at path.
proc writePars(path: string) {.
inline, raises: [], tags: []
.}
Writes the current paramsters to a file at path.
proc complement(a: char): char {.
inline, raises: [], tags: []
.}
Returns the complement of a DNA base.
proc randomDNA(length: int): string {.
raises: [], tags: []
.}
Returns a random DNA of a given length.
proc randomDNAofStructure(structure: string): string {.
raises: [], tags: []
.}
Returns a random DNA with a certain projected secondary structure.