For reading pdbs see:

http://biop.ox.ac.uk/coot/doc/coot/Reading-coordinates.html

The underlying python function resides in coot_utils.py, feel free to modify for mtz (BTW same goes for scheme: coot-utils.scm)

B


On Wed, Oct 26, 2011 at 1:48 PM, Jerome Nwachukwu <[email protected]
<mailto:[email protected]>> wrote:

    I am trying to write a short script to open multiple .pdb and .mtz
    files that have the same filename but are located in different
    paths, and adjust their map and bond settings. I noticed that the
    "multi-read-pdb" function does not deal well with common wildcards,
    for instance it would not let me use " * " to indicate all/every
    directory. Is there a better function or different method I can use
    to write such a script?


Scheme or Python? If you're using Python, you can use the 'glob' module
to handle wildcards:

http://docs.python.org/library/glob.html#module-glob

and feed the output of this to read_pdb, etc.

-Nat


--
***************************************************

Dr. Bernhard Lohkamp
Assistant Professor
Div. Molecular Structural Biology
Dept. of Medical Biochemistry and Biophysics (MBB)
Karolinska Institutet
S-17177 Stockholm
Sweden

phone: (+46) 08-52487651
fax:   (+46) 08-327626
email: [email protected]

Reply via email to