DNA/RNA Chaos Game Representation

The Chaos Game Representation (CGR) visualizes patterns in genetic sequences. Paste a DNA or RNA sequence (e.g., "GATTACA" or something longer from RNACentral.org or GenBank) and submit to see the CGR pattern. The visualization places anchor points for each unique letter, then iteratively moves the plotting point halfway to the corresponding anchor for each letter in the sequence.

Examples: Copy & paste HELLPAR (from https://rnacentral.org/rna/URS000019E0CD/9606)
Compare vs. Random sequence using 4 letters, using 3 letters, or Some Bacteriophage DNA
SVG rendering for sequences ≤ threshold, Canvas for longer ones

References

[1] Jeffrey, H. J. (1990). Chaos game representation of gene structure. Nucleic Acids Research, 18(8), 2163-2170. doi:10.1093/nar/18.8.2163
[2] Chan, E. Y. S., & Corless, R. M. (2020). Chaos Game Representation. arXiv preprint arXiv:2012.09638.

(c) 2025 Scott H. Hawley