l=df.iloc[-1,1]-df.iloc[0,1]+1# length of chain from nt_resnum point of view
exceptIndexError:
warn(f"Error while parsing DSSR's annotation: No nucleotides are part of {self.chain_label}!",error=True)
self.delete_me=True
self.error_messages=f"Error while parsing DSSR's json output: No nucleotides from {self.chain_label}. We expect a problem with {self.pdb_id} mmCIF download. Delete it and retry."
return1
# If, for some reason, index_chain does not start at one (e.g. 6boh, chain GB), make it start at one
# expected data point 1 |--------------------------------| 154
#
try:
l=df.iloc[-1,1]-df.iloc[0,1]+1# length of chain from nt_resnum point of view
exceptIndexError:
warn(f"Error while parsing DSSR's annotation: No nucleotides are part of {self.chain_label}!",error=True)
self.delete_me=True
self.error_messages=f"Error while parsing DSSR's json output: No nucleotides from {self.chain_label}. We expect a problem with {self.pdb_id} mmCIF download. Delete it and retry."
return1
ifl!=len(df['index_chain']):# if some residues are missing, len(df['index_chain']) < l