Inspecting the ligand2 fragment¶

This notebook uses nglview to display the updated protein2 system.

Table of contents¶

  • Inspecting the ligand2 fragment
  • Inspecting the ligand2 fragment
  • Step 1

Step 1¶

In [ ]:
import os
from pathlib import Path
import nglview as nv

course_dir = Path(os.environ.get('COURSE_DIR', '~/Concepcion26')).expanduser()
ligand_pdb = course_dir / 'data' / 'complex' / 'ligand2.pdb'
if not ligand_pdb.exists():
    raise SystemExit(f'Missing {ligand_pdb}')
view = nv.show_file(str(ligand_pdb))
view.add_ball_and_stick()
view.center()
view