Sha256: ec3db819c4220aa63f19ecd95ff653ede9cf28955b18d5a9501811b7267914c7
Contents?: true
Size: 468 Bytes
Versions: 121
Compression:
Stored size: 468 Bytes
Contents
(ns protein-translation) (defn translate-codon [codon] (case codon "AUG" "Methionine" ("UUU" "UUC") "Phenylalanine" ("UUA" "UUG") "Leucine" ("UCU" "UCC" "UCA" "UCG") "Serine" ("UAU" "UAC") "Tyrosine" ("UGU" "UGC") "Cysteine" "UGG" "Tryptophan" ("UAA" "UAG" "UGA") "STOP")) (defn translate-rna [rna] (->> rna (partition 3) (map (partial apply str)) (map translate-codon) (take-while #(not= "STOP" %))))
Version data entries
121 entries across 121 versions & 1 rubygems