Inspecting the protein2 chain¶
This notebook uses nglview to display the updated protein2 system.
Table of contents¶
Step 1¶
In [ ]:
import os
from pathlib import Path
import nglview as nv
course_dir = Path(os.environ.get('COURSE_DIR', '~/Concepcion26')).expanduser()
protein_pdb = course_dir / 'data' / 'complex' / 'protein2.pdb'
if not protein_pdb.exists():
raise SystemExit(f'Missing {protein_pdb}')
view = nv.show_file(str(protein_pdb))
view.add_cartoon()
view.center()
view