Skip to content

Instantly share code, notes, and snippets.

@mcnemesis
Created February 25, 2026 16:42
Show Gist options
  • Select an option

  • Save mcnemesis/cb762d209d9a7a85d598aa37e285467d to your computer and use it in GitHub Desktop.

Select an option

Save mcnemesis/cb762d209d9a7a85d598aa37e285467d to your computer and use it in GitHub Desktop.
GENETICS: DECIMAL to GENETIC CODE v1 : simple TEA program to convert from base-10 sequences into genetic code
#----[ DECIMAL to GENETIC CODE ENCODER v1 ]
#############################################
# The program maps any decimal sequence to
# corresponding genetic code sequence
# symbols spanning the Base-na (A,C,G,T,U).
# REFERENCE: based on a transformer in book
# "Applying Transformatics in GENETICS" (2026)
#############################################
v:vINPUT
d!:[0-9, <>] # just digits and delimiters
r!:[05]:A | r!:[16]:C | r!:[27]:G | r!:[38]:T | r!:[49]:U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment