Skip to content

Add support for reading/writing Hybrid36 fields from PDB files#1171

Merged
drroe merged 14 commits intoAmber-MD:masterfrom
drroe:hybrid36
Mar 17, 2026
Merged

Add support for reading/writing Hybrid36 fields from PDB files#1171
drroe merged 14 commits intoAmber-MD:masterfrom
drroe:hybrid36

Conversation

@drroe
Copy link
Contributor

@drroe drroe commented Mar 17, 2026

V7.3.0. Adds support for reading/writing Hybrid36 values for the atom/residue fields, which allows support for atom numbers greater than 99,999 and residue numbers greater than 9,999 (accommodates up to 87440031 ATOM serial numbers and up to 2436111 residue sequence numbers per chain) without wrapping the values, which was the previous behavior. This ensures no information is lost and is now the default behavior when writing PDBs from CPPTRAJ.

The code here (https://cci.lbl.gov/hybrid_36/) was adapted to implement this in CPPTRAJ.

This also adds the flush command which will force all open files to be written and closed, and right now is mostly intended for debugging.

@drroe drroe self-assigned this Mar 17, 2026
@drroe drroe added enhancement New Command New command for cpptraj labels Mar 17, 2026
@drroe drroe merged commit a711cbd into Amber-MD:master Mar 17, 2026
13 checks passed
@drroe drroe deleted the hybrid36 branch March 17, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New Command New command for cpptraj

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant