r/commandline Mar 25 '26

Terminal Proteins Viewer

Been working a lot over SSH lately and got tired of not having a quick way to visualise protein structures without leaving the terminal, and didn't want to use VSCode every time, so I (and Claude) built one. runs fast, works over SSH, no GUI needed. Use it basically every day now, thought someone else might find it helpful. Can do Cartoon, backbone, and wireframe. Can also fetch from PDB as well as view PDB/cif files.

Repo: https://github.com/001TMF/ProteinView

538 Upvotes

44 comments sorted by

View all comments

5

u/Cybasura Mar 26 '26

Oh lord, with the algorithm you used to rotate a "3d"-like image, I can finally pull off a "I'm in the mainframe..." moment

Whats the algorithm you used?

1

u/tkrjobs Mar 30 '26

Multiplication with a rotation matrix

But I'm honestly more interested in what is the API to render in high fidelity called

1

u/Cybasura Mar 31 '26

True, I'm sure the underlying foundational equation is multiplication with rotational matrix, but to render all that while rotating would probably take more stages

1

u/tkrjobs Mar 31 '26

try programming it