| Crates.io | pepterm |
| lib.rs | pepterm |
| version | 0.1.0 |
| created_at | 2025-12-25 09:18:03.877186+00 |
| updated_at | 2025-12-25 09:18:03.877186+00 |
| description | View protein structures in your terminal with beautiful color gradients |
| homepage | |
| repository | https://github.com/suzuki-2001/pepterm |
| max_upload_size | |
| id | 2004377 |
| size | 253,410 |
View protein structures in your terminal with beautiful color gradients.
pepterm 1CRN)pepterm search insulin)pepterm 4HHB --chain A)cargo install pepterm
git clone https://github.com/suzuki-2001/pepterm.git
cd pepterm
cargo build --release
./target/release/pepterm 1CRN
PyMOL is required for cartoon rendering:
# macOS
brew install pymol
# Linux (Ubuntu/Debian)
sudo apt install pymol
pepterm <PDB_ID> Fetch and view protein from RCSB PDB
pepterm <file.pdb|.cif> View local PDB/CIF file
pepterm <file.obj> View OBJ file
pepterm <ID> --chain <CHAIN> Show specific chain only
pepterm search <QUERY> Search RCSB PDB
| Option | Description |
|---|---|
--chain, -n |
Show only the specified chain (e.g., A, B) |
--color, -c |
Specify color scheme |
| Scheme | Description |
|---|---|
| coolwarm | Blue to red diverging (default) |
| rainbow | N-to-C terminal rainbow |
| blues | Sequential blue gradient |
| greens | Sequential green gradient |
| reds | Sequential red gradient |
| oranges | Sequential orange gradient |
| purples | Sequential purple gradient |
| viridis | Perceptually uniform (blue-green-yellow) |
| plasma | Purple to yellow |
| magma | Black to white via purple |
| inferno | Black to yellow via red |
| spectral | Spectral rainbow |
| white | White monochrome |
pepterm 1CRN # View crambin protein
pepterm 4HHB # View hemoglobin
pepterm 4HHB --chain A # View only chain A of hemoglobin
pepterm 1CRN --color blues # Use blues colormap
pepterm ./protein.pdb # View local PDB file
pepterm ./structure.cif # View local CIF file
pepterm search insulin # Search for insulin structures
pepterm search "green fluorescent protein"
| Key/Action | Description |
|---|---|
| Mouse drag | Rotate around the model (disables auto-rotate) |
| Shift + drag | Pan the view |
| Scroll up/down | Zoom in/out |
| r | Toggle auto-rotation |
| c | Cycle through color schemes |
| 0 | Reset view |
| q or Ctrl+C | Quit |
PyMOL provides high-quality cartoon representation with proper helix spirals and sheet arrows.
This project is based on terminal3d by Liam Ilan, a terminal-based 3D OBJ viewer. The rendering engine, camera system, and braille/block character output are derived from terminal3d.
MIT