Skip to content
Snippets Groups Projects
Commit aa30822a authored by marco's avatar marco
Browse files

added recipe to load all pdb files in a directory

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1808 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent e0dcf4d2
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,20 @@ title: FAQ - Frequently Answered Questions
#FAQ - Frequently Answered Questions
1. **Which licensing does Openstructure come with?**
Openstructure is released under GNU-LGPL license
**Which licensing does Openstructure come with?**
Openstructure is released under GNU-LGPL license
* **Why another molecular Viewer?**
Openstructure is not aiming to be a Viewer, but more a molecular modelling platform, a toolkit. It features nice graphics, though!
**Why another molecular Viewer?**
Openstructure is not aiming to be a Viewer, but more a molecular modelling platform, a toolkit. It features nice graphics, though!
**How to I load all PDB files in a directory?**
The python glob module can be used to match files in a certain directory against a glob pattern. Then use LoadPDB as you normally would.
::::python
import glob
pdbs=[]
for pdb_file in glob.glob(os.path.join(dir_path, '*.pdb')):
pdbs.append(io.LoadPDB(os.path.join(dir_path, pdb_file)))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment