to-dna
v0.3.0
Published
Transform strings to DNA and vice versa
Readme
to-dna
Transform strings to DNA and vice versa.
See Biomimicry book from Janine M. Benyus, Page 231-235.
Installation
npm i to-dna
Usage
toDNA function
const { toDNA } = require('to-dna');
// toDNA :: string -> stringExample: toDNA('jeremy fourna') will output AAGCAACAACACAACAAATAACGAACGGAACCAATGACCAACACAATCAAAA.
toComplementaryDNA function
const { toComplementaryDNA } = require('to-dna');
// toComplementaryDNA :: string -> stringExample: toComplementaryDNA('jeremy fourna') will output TTCGTTGTTGTGTTGTTTATTGCTTGCCTTGGTTACTGGTTGTGTTAGTTTT.
fromDNA function
const { fromDNA } = require('to-dna');
// fromDNA :: string -> stringExample: fromDNA('AAGCAACAACACAACAAATAACGAACGGAACCAATGACCAACACAATCAAAA') will output JEREMY FOURNA.
fromCompletementaryDNA function
const { fromCompletementaryDNA } = require('to-dna');
// fromCompletementaryDNA :: string -> stringExample: fromCompletementaryDNA('TTCGTTGTTGTGTTGTTTATTGCTTGCCTTGGTTACTGGTTGTGTTAGTTTT') will output JEREMY FOURNA.

