0.3.0 • Published 6 years ago

to-dna v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

to-dna

NPM

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 -> string

Example: toDNA('jeremy fourna') will output AAGCAACAACACAACAAATAACGAACGGAACCAATGACCAACACAATCAAAA.

toComplementaryDNA function

const { toComplementaryDNA } = require('to-dna');
// toComplementaryDNA :: string -> string

Example: toComplementaryDNA('jeremy fourna') will output TTCGTTGTTGTGTTGTTTATTGCTTGCCTTGGTTACTGGTTGTGTTAGTTTT.

fromDNA function

const { fromDNA } = require('to-dna');
// fromDNA :: string -> string

Example: fromDNA('AAGCAACAACACAACAAATAACGAACGGAACCAATGACCAACACAATCAAAA') will output JEREMY FOURNA.

fromCompletementaryDNA function

const { fromCompletementaryDNA } = require('to-dna');
// fromCompletementaryDNA :: string -> string

Example: fromCompletementaryDNA('TTCGTTGTTGTGTTGTTTATTGCTTGCCTTGGTTACTGGTTGTGTTAGTTTT') will output JEREMY FOURNA.

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago