/dna_binary_translator

dna to binary or binary to dna translator tool that can be in direct or in file.

Primary LanguagePython

Bin to DNA or Vice Versa

tools that translate binary to dna or vice versa in direct or in file

Note: i use 4 bits as representation for each letters in dna.

How to Use It

python3 dna_bin.py [option (type of translation/type of data)] [string]/[file]

translate binary to dna in direct string
python3 dna_bin.py -ds [string]

translate dna to binary in direct string
python3 dna_bin.py -bs [string]

translate binary to dna in file
python3 dna_bin.py -df [file]

translate dna to binary in file
python3 dna_bin.py -bf [file]

Optional Arguments

-h,--help show this help message and exit
-s,--string string of binary/dna
-f,--file file that contain binary/dna
-d,--dna translate binary to dna
-b,--binary translate dna to binary