and error message for missing residues
else:
msg = 'chain breaks between residues '+\
str(ires[-1])+' and '+str(i)+\
- ', server cannot add missing residues to PDB file'
+ ', server cannot add missing residues to PDB file - please repair the structure using e.g. Modeller'
break
if line[0:3] == 'TER':
newchain = True
y.append(fluct)
b=[]
-ires=''
+newchain=True
if os.path.exists('plik.pdb'):
with open('plik.pdb') as f:
for line in f:
if line[0:4]=='ATOM' and line[13:15]=='CA':
# print line
- if ires=='' or int(line[22:26])>ires:
+ if newchain or int(line[22:26])>ires:
b.append(math.sqrt(float(line[60:66])*3/8/math.pi/math.pi))
ires=int(line[22:26])
+ newchain=False
+ if line[0:3]=='TER':
+ newchain=True
+
plt.xlabel('residue')