Project

PIXELFOLD

Year
2025
Stack
structural biology / rust / terminal
pixelfold: viewer
VIEWER
pixelfold: render of 1HVR
RENDER OF 1HVR
pixelfold: backbone of 1HVR
BACKBONE OF 1HVR

A protein structure viewer and residue interaction engine that runs entirely in the terminal.

pixelfold reads mmCIF and PDB files and analyses them from the command line. It covers a protein’s non-covalent interactions, its residue interaction network (hubs, articulation points, shortest paths), secondary structure, solvent-accessible surface, and ligand poses. Its viewer draws the structure as shaded spheres in the terminal, through the Kitty or iTerm2 graphics protocols or truecolor half-blocks, and render writes it to a PNG.

Every analysis is checked against the standard tools, on 205 benchmark entries against DSSP 4, FreeSASA, PLIP, and RING. Secondary structure agrees with DSSP 4 at 97.1% Q3, and the solvent-accessible surface correlates with FreeSASA at r = 0.99. Without a reference, poses agrees with PoseBusters on 99.0% to 100% of 1,107 poses of 54 ligands. It also reads AlphaFold 3 and Boltz confidences.

Every report also comes as JSON, and every --help contains examples. An agent skill is also shipped, so agents can use it readily. Version 6.0.0 installs with cargo install pixelfold or as release binaries for macOS, Linux, and Windows.

Personal thoughts

This was my first big Rust project, and it started out as a simple TUI viewer for protein structures. The main motivation for this project was to learn Rust and to build a tool that I could use to analyse protein structures without a GUI. It later grew into a bigger analysis tool on top of the viewer, now with agentic support. I thoroughly enjoyed learning Rust and building this project, and I hope it can be useful to other researchers and students in the field of structural biology.