PDB_SELRESNAME(1)
π pdb_selresname β the manual, but make it cute π
okay bestie, welcome to pdb_selresname, part of the pdb-tools era (version 2.5.1, section 1 of the manual, iykyk). this is the little utility that goes through your PDB file and keeps only the residues whose names you're obsessed with. let's get into it π«Ά
β¨ NAME β¨
pdb_selresname β manual page for pdb_selresname 2.5.1 π
πΈ DESCRIPTION πΈ
heads up, the very first thing this thing will tell you if you get it wrong is literally:pdb_selresname Residue name is invalid: '-HELP'β so yeah, no cap,<option>is not a vibe you can just make up π
so what does it actually do? it selects all residues matching the given name in the PDB file. that's it, that's the whole main character moment β¨
and here's the tea: residue names are matched *without* taking into consideration spaces. so don't come at it with your whitespace drama, it does not care π
π¦ Usage:
python pdb_selresname.py -<option> <pdb file>
π Example:
python pdb_selresname.py -ALA 1CTF.pdb
# keeps only Alanines
python pdb_selresname.py -ASP,GLU 1CTF.pdb
# keeps (-) charged residues
so like, <yellow>-ALA</yellow> on 1CTF.pdb keeps only Alanines (iconic, simple, slay), and <yellow>-ASP,GLU</yellow> keeps the (-) charged residues. comma-separated names, go off π
π the lore π
This program is part of the pdb-tools suite of utilities and should not be distributed isolatedly β fr fr, it's a package deal, don't split up the friend group π
The pdb-tools were created to quickly manipulate PDB files using the terminal, and can be used sequentially, with one tool streaming data to another. the pipeline energy is unmatched, it's giving relay race, it's giving pipes π₯
They are based on old FORTRAN77 code that was taking too much effort to maintain and compile. RIP. ππ―οΈ not the ancient FORTRAN77 era, we mourn her but we do not miss the compiling, ngl.
that's the whole page bestie, go filter some residues π β¨
this lil manual was served to you by pdb_selresname 2.5.1, dated September 2024, filed under PDB_SELRESNAME(1) β love that for us, mwah πππ¦
π¦ where this page comes from
- debian trixie: pdb-tools 2.5.1-2 Β· Apache-2.0
- ubuntu questing: pdb-tools 2.5.1-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms