Created
February 25, 2026 15:47
-
-
Save mcnemesis/41ab5c18e62a7994ebba762574f56071 to your computer and use it in GitHub Desktop.
GENETICS: GENETIC to DECIMAL CODE v1 : a basic TEA program to convert from DNA or RNA sequences into corresponding decimal sequences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----[ DNA to DECIMAL DECODER v1 ] | |
| ################################# | |
| # The program maps any legitimate | |
| # genetic code sequence of | |
| # symbols spanning the Base-na (A,C,G,T,U) | |
| # to their corresponding digit | |
| # equivalents in base-10 | |
| ################################# | |
| v:vINPUT | |
| z!: # pre-process: capitalize | |
| d!:[ACGTU, <>] # constrain to just na and delimiters | |
| r!:A:0 | r!:C:1 | r!:G:2 | r!:T:3 | r!:U:4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment