helper_pdb2vol - PDB files to atom coord list and volume
Version 1.0.8 (3 KB) by
Carson Purnell
Generates a density volume from a PDB, and provides intermediate list of atom coordinates. Dramatically faster than pdbread.
This function was made to bypass the incredibly slow speed and significant limitations of matlab's pdbread function for the purpose of generating density maps of protein(s). It uses the most optimized text read functions available.
It is highly simplified and does not provide any pdb record information except a coordinate list from the atom records (not hetatm currently) and the element ID for those coordinates. The density map is output at a pixel resolution specified in angstroms, and stored in a cell array. For multi-model pdbs, each model is output separately into its own cell with the same bounding box, allowing the volumes to be easily summed or otherwise operated on.
Cite As
Carson Purnell (2025). helper_pdb2vol - PDB files to atom coord list and volume (https://www.mathworks.com/matlabcentral/fileexchange/113470-helper_pdb2vol-pdb-files-to-atom-coord-list-and-volume), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.8 | added a fix for when numbers in the PDB are not space-separated |
||
1.0.6 | further speed increases from improved vectorization and text/string parsing. |
||
1.0.5 | yet greater speed advantages from vectorized computations, memory optimizations, and faster read functions |
||
1.0.2 | cleaned up comments |
||
1.0.0 |