You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note also: Never try to add or remove atoms or chains from the System while iterating over it! Your program will crash!
python
importsysfromBALLimport*# read the PDB-file into a BALL::Systemf=PDBFile(sys.argv[1])
S=System()
f.read(S)
print"Number of chains :" , len(chains(S))
forchaininchains(S):
print"Number of residues: ", chain.countResidues()