Module file_ops :: Class file_ops
[hide private]
[frames] | no frames]

Class file_ops

source code

Instance Methods [hide private]
 
__init__(self, mf)
Class containing the file operations
source code
 
close_mf_files(self, dir)
Close the mfin, mfdata, mfmodel, mfpar, and run files, and make the run file executable.
source code
 
init_log_file(self, title)
Initialize the log file.
source code
 
open_file(self, file_name)
Open the file 'file' and return all the data.
source code
 
open_input(self)
Open the input file.
source code
 
mkdir(self, dir)
Create the given directory, or exit if the directory exists.
source code
 
open_mf_files(self, dir)
Open the mfin, mfdata, mfmodel, mfpar, and run files for writing.
source code
 
read_file(self, file_name)
Attempt to read the file, or quit the script if it does not exist.
source code
 
relax_data(self, file)
Open the relaxation data in the file 'file' and return all the data.
source code
Method Details [hide private]

relax_data(self, file)

source code 
Open the relaxation data in the file 'file' and return all the data.

It is assumed that the file has four columns separated by whitespace.  The columns should be:
        0 - Residue numbers
        1 - Residue names
        2 - R1, R2, or NOE values
        3 - The errors