iotbx.file_reader
index
/net/chevy/raid1/rwgk/dist/cctbx_project/iotbx/file_reader.py

# this will try to guess file type based on extensions.  since this will
# frequently break, it will also try every other file type if necessary,
# stopping when it finds an appropriate format.

 
Modules
       
cPickle
scitbx.array_family.flex
os
re
mmtbx.monomer_library.server
string
sys

 
Functions
       
any_file(file_name, get_processed_file=False, valid_types=['pdb', 'hkl', 'cif', 'pkl', 'seq', 'phil', 'txt'], allow_directories=False, force_type=None)
guess_file_type(file_name)

 
Data
        compression_extensions = ['gz', 'Z', 'bz2', 'zip']
standard_file_descriptions = {'cif': 'Restraints', 'hkl': 'Reflections', 'map': 'Map', 'pdb': 'Model', 'phil': 'Parameters', 'pkl': 'Python pickle', 'seq': 'Sequence', 'txt': 'Text', 'xml': 'XML'}
standard_file_extensions = {'cif': ['cif'], 'hkl': ['mtz', 'hkl', 'sca', 'cns', 'xplor', 'cv', 'ref'], 'map': ['map', 'ccp4'], 'pdb': ['pdb', 'ent'], 'phil': ['params', 'eff', 'def', 'phil'], 'pkl': ['pickle', 'pkl'], 'seq': ['fa', 'faa', 'seq', 'pir', 'dat'], 'txt': ['txt', 'log', 'html'], 'xml': ['xml']}
standard_file_types = ['hkl', 'map', 'pdb', 'cif', 'phil', 'seq', 'xml', 'pkl', 'txt']