Skip to content

Latest commit

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Wolfgang's DNA Codec

Cultivate your data!

Usage

dna-codec.py <input><args>
FlagDescriptionDefault
--encodeEncodeYes
--columns:Split result into columnsNo / 0
--decodeDecodeNo
--codec:<codec>Which encoder to use?utf_8
--stringInput a stringYes
--fileInput a fileNo
--rawRaw input & outputNo
--strictDon't skip bad dataNo
--helpDisplay some helpNo

Examples

Encode a string: dna-codec.py "Hello, world!" --encode

Decode a string: dna-codec.py CCCACGGACGCCAGAACACTCGACCGTCCGCC --decode

Decode a file: dna-codec.py dna.txt --decode --file

Encode a binary file: dna-codec.py rosie.jxl --encode --file --raw

Decode a string with a specific codec: dna-codec.py "Hello, world!" --decode --codec:utf_16

Encode a file and store the output: dna-codec.py data.txt --encode --file > output.txt


CGAGCTGCAGAACCCTCGTTCGTACGCGCGCTCGACCGTGCGCTAGAACGCACGCCAGAACACTCTAGCGTTCGTTCTCA

About

Cultivate your data!

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages