dna-codec.py <input> <args>| Flag | Description | Default |
|---|---|---|
| --encode | Encode | Yes |
| --decode | Decode | No |
| --string | Input a string | Yes |
| --file | Input a UTF-8 file | No |
| --hex | Use hexidecimal data | No |
| --strict | Don't fix bad data | No |
| --help | Display some help | No |
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 file and store the output:
dna-codec.py data.txt --encode --file > output.txt
CGAGCTGCAGAACCCTCGTTCGTACGCGCGCTCGACCGTGCGCTAGAACGCACGCCAGAACACTCTAGCGTTCGTTCTCA