Menu

Commit [r2773]  Maximize  Restore  History

Added hybrid run support for the 'pdb.create_tensor_pdb()' user function.

The function 'self.create_tensor_pdb()' in the file 'generic_fns/pdb.py' has been modified to loop
over an array of runs. This array is normally the single standard run. However when a hybrid run
is encountered, the runs of the hybrid are looped over.

The chain ID letter is now taken from the 'string.ascii_uppercase' string. The letter is extracted
using the run index.

All atom IDs have had the chain ID appended to the end to make then unique when multiple chains
exist.

The data structure 'self.atomic_data' of 'generic_fns/pdb.py' has been modified to include the
record name (ATOM, HETATM, or TER) at position 1. Hence all other elements have been shifted by
one. This is to allow multiple TER records one at the end of each chain, each having their own atom
number.

The 'het_data' array in 'self.write_pdb_file()' is no longer sorted as it already is sorted because
of the sorting of atomic data arrays. This allows the HET records to be sorted first by chain ID
then by residue number.

The HETNAM and FORMUL records are now only created if the residue has not been previously
encountered. This avoids duplicated records.

All the atomic coordinate records (ATOM, HETATM, or TER) are now created sequentially by looping
over the atomic data sorted by atom number.

bugman 2006-11-08

changed /branches/tensor_pdb/generic_fns/pdb.py
/branches/tensor_pdb/generic_fns/pdb.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.