I couldn't reproduce the exact error message you received, but I will note:
(1) your splitting of lines leaves out the chain, so chain is never defined
(2) line 9 of your python is missing an opening quotation mark before (resi
matching the closing quotation mark right before the % sign
(3) line 9
Hi everyone,
How to write PyMol commands in Python script, save a session and then save a
.png file of the same ?
I have an input file which has the protein information i.e name, chain, and a
list of residues.
I want to plot the C-alpha atoms of these residues for each protein & calculate
distance