Hi James,

     A number of years ago, I wrote a program 'LOOP SEARCH' in C to extract loop portion structural elements from .pdb files. The beginning part of this program included a number of lines of code dedicated to reading all files from a directory from PDB files distributed on CD-ROMs (This was in in the mid-90s). You can read about this at:
ftp://ftp.rcsb.org/pub/pdb/doc/newsletters/bnl/news82_oct97/newslttr.pdf, Page 8.

    I just took a look at the code again from in my old files, and I believe you can easily change a few parameters to read all the .pdb files from a particular directory/sub-directory instead of an external drive.

It's quite a number of lines of code to type out here, (yes, I have to copy from a hard copy output since the original program is on an old 3.5 inch diskette and I don't have a drive to read that now). But if you send me a fax number, I can send you that portion of the program.

Regards,

Debanu.

--

Debanu Das, Ph.D.

University of California,

Berkeley, CA 94720.

 


 

Hello All,
 
I'm currently writing a short program which extracts and compares certain structural elements from .pdb files. 
 
I've been using C++ for convenience (I'm more familiar with that language than others), but I've run into a snag.  C++ does not seem to have a simple means of evaluating all files in a directory if it is given a directory path.
 
I was going to work around this by including a text file with each directory's .pdb file names along with the .pdb files.  Then, given a directory path, the program could read in the individual file names from the directory's text file and append them to the directory path.  This would allow it to evaluate each .pdb in a given directory.
 
However, this requires manually adjusting the included text file any time .pdb files are added or removed from the folder; it can be time consuming.
 
Does anyone here know of a coding solution that would allow a C++ program to evaluate a directory's files (and possibly even subdirectories' files) without a clumsy work-around described above?
 
Thanks in advance,
 
Jim H.

Reply via email to