next up previous contents index
Next: File types Up: Miscellaneous rules and features Previous: Controlling breakpoints and the   Contents   Index

Subsections


File naming

There are several filename generating mechanisms that facilitate file handling. Not all of them apply to all file types.

Environment variables

There can be UNIX shell environment variables in any input or output filename. The environment variables have to be in the format ${VARNAME} or $(VARNAME). Also, two predefined macros are available for string variables:


Reading or writing files

Any input file for MODELLER (alignments, PDB files, etc) can be compressed. If the name of an input file ends with a '.Z', '.gz', '.bz2', or '.7z' extension, or the specified input file cannot be found but a compressed version (with extension) does, then MODELLER automatically uncompresses the file before reading it. (Note that it uses the gzip, bzip2 and 7za programs to do this, so they must be installed on your system in order for this to work. Also, any '.7z' archives must contain only a single member, which is the file to be uncompressed, just as with '.gz' or '.bz2' files.) The uncompressed copy of the file is created in the system temporary directory (deduced by checking the 'MODELLER_TMPDIR', 'TMPDIR', 'TMP' and 'TEMP' environment variables in that order, falling back to /tmp on Unix and C:
on Windows), or the current working directory if the the temporary directory is read-only.

Any files written out by MODELLER can also be compressed. If the output file name ends in '.gz' or '.bz2' extension, a temporary uncompressed copy is created in the same way as above, and when the file is closed, the file is compressed with gzip or bzip2 and placed in the final location. (Writing out files in '.Z' or '.7z' format is not currently supported.)

Coordinate files and derivative data

When accessing an atom file, if MODELLER cannot find the specified filename or a compressed version of it (see above) it tries adding the extensions '.atm', '.pdb', '.ent', and '.crd' in this order, then also with the 'pdb' prefix. This search for the atom file is repeated through all the directories in io_data.atom_files_directory (directories are separated by ':'), unless the input atom filename starts with '/', in which case io_data.atom_files_directory is neglected.

Any derivative data that MODELLER may need, including residue solvent accessibilities, hydrogen bonding information, dihedral angles, residue neighbors, etc., are calculated on demand from the atomic coordinates. The most time consuming operation is calculating solvent accessibility, but even this calculation takes less than 1 sec for a 200 residue protein on a Pentium III workstation.

MODELLER stores the filenames of coordinate sets in the alignment arrays. These arrays are used by alignment.compare_structures(), Restraints.make(), alignment.malign3d(), alignment.align2d(), and several other commands. If these filenames do not change when the structures are needed for the second time, the coordinate files are not re-read because they should already be in memory. This creates a problem only when the contents of a structure file changes since it was last read during the current job.


next up previous contents index
Next: File types Up: Miscellaneous rules and features Previous: Controlling breakpoints and the   Contents   Index
Ben Webb 2008-05-05