Created
April 16, 2023 17:28
-
-
Save ISDementyev/842344d80c048d13701b37d14a6f7827 to your computer and use it in GitHub Desktop.
PyMOL script for loading all pdbs into one session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run using the terminal command: pymol loadpdb.py | |
from glob import glob | |
from pymol import cmd | |
files = glob("*.pdb") | |
for pdb in files: | |
cmd.load(pdb, object=pdb[:-4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment