Package 'string2dna'

Title: Encode/Decode Strings as Nucleotide Sequences
Description: Encode strings as nucleotide sequences and decode nucleotide sequences into strings.
Authors: Stephen Turner [aut, cre]
Maintainer: Stephen Turner <[email protected]>
License: GPL (>= 3)
Version: 0.1.0
Built: 2025-03-24 06:08:11 UTC
Source: https://github.com/stephenturner/string2dna

Help Index


String to DNA encoder/decoder

Description

Encode a string into a DNA sequence or decode a DNA sequence into a string.

Usage

string2dna(x, method = "encode")

Arguments

x

A string

method

Either encode (turn a string into a nucleotide sequence), or decode (turn a nucleotide sequence into a string).

Value

A string

References

https://github.com/lurbano/dnaWriter/blob/main/dna_writer.js

Examples

string2dna("Stephen Turner", method="encode")
string2dna("TGATAGCTAGAGCGTCTACTCAGCTAGGATCACCTCCTACAC", method="decode")