Skip to content

Instantly share code, notes, and snippets.

@ISDementyev
Created April 16, 2023 17:28
Show Gist options
  • Save ISDementyev/842344d80c048d13701b37d14a6f7827 to your computer and use it in GitHub Desktop.
Save ISDementyev/842344d80c048d13701b37d14a6f7827 to your computer and use it in GitHub Desktop.
PyMOL script for loading all pdbs into one session
# 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