XYZ_TO_PDB
Write PDB Atom Coordinates to XYZ File
XYZ_TO_PDB is a FORTRAN90 program
which reads an XYZ file
containing a list of spatial coordinates, and writes a
PDB file containing ATOM records with the given coordinates.
The PDB file has many fields that must be filled in. This
program attempts to fill in these fields with plausible values,
but really only the atomic coordinates will have any meaning.
Usage:
-
xyz_to_pdb
-
starts the program, and prompts for the file names.
-
xyz_to_pdb file.xyz file.pdb
-
starts the program, reads the data from file.xyz,
and creates file.pdb.
Related Data and Programs:
The PDB directory
contains a description and examples of the PDB format.
PDB_EXTRACT is a FORTRAN90 program that can extract
certain records from a PDB file.
PDB_READ is a FORTRAN90 program that can read the information
in a PDB file.
PDB_TO_XYZ is a FORTRAN90 program reads the ATOM records
from a PDB file, and writes the atomic coordinates to an XYZ file.
The XYZ directory
contains a description and examples of the XYZ format.
Reference:
-
The PDB format
-
http://www.rcsb.org/pdb/
The Protein Data Bank Home Page.
Source Code:
Examples and Tests:
TINY is a sample XYZ file with 12 sets of 3D coordinates.
MOMOMER is a sample XYZ file with 888 sets of 3D coordinates.
List of Routines:
-
MAIN is the main program for XYZ_TO_PDB.
-
CH_CAP capitalizes a single character.
-
CH_EQI is a case insensitive comparison of two characters for equality.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
GET_UNIT returns a free FORTRAN unit number.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_TO_R8 reads an R8 from a string.
-
S_TO_R8VEC reads an R8VEC from a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TIMESTRING writes the current YMDHMS date into a string.
-
XYZ_TO_PDB_ATOM_TO_XYZ writes XYZ data as ATOM records in a PDB file.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 09 January 2006.