I had already posted something similar but with the new 12.3.1 function ListLinePlot3D
it becomes even easier so I thought it was worth sharing.
You can visualize a nucleic acid sequence in 3d with a few lines of code :
GenomeData["HOXA1", "FullSequence"] //
Characters //
# /. {
"A" -> {1, 1, 1},
"C" -> {-1, 1, -1},
"G" -> {-1, -1, 1},
"T" -> {1, -1, -1}
} & //
FoldList[Plus, #] & //
ListLinePlot3D[#, BoxRatios -> {1, 1, 1}] &
The idea comes from this work : https://youtu.be/IjGZ6kF2gbQ The point is to make it possible to visually compare sequences to see if they are related.
I find that the colors don't matter much. With a long enough chain, they become indiscernable so only the overall shape of the curve is useful.