Skip to content

From Douglas Hofstadter's "Gödel, Escher, Bach" (1979)

Notifications You must be signed in to change notification settings

gregorybchris/typogenetics-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typogenetics Rust

For more information about this project, please see the README for gregorybchris/typogenetics.

Requirements

Building

cargo build --release

Usage

# Change to directory with build output
cd target/release

# Translate a single strand into enzymes
./typogenetics translate ATAGAGAGATCACATGTACGATAC

# Apply an enzyme to a strand to produce a set of new strands
./typogenetics rewrite cop-mvl-mvr-swi-cut-rpy AATACTAAACCGA

# Simulate many generations of evolution with a starting strand
./typogenetics simulate ATAGCGAATAGGATAATG --iter 10000 --seed 42