Skip to content
Snippets Groups Projects
Commit 0a8b0bd1 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

chain mapping: handle case of no surviving residues in ProcessStructure

parent e3e19601
No related branches found
No related tags found
No related merge requests found
......@@ -1339,6 +1339,10 @@ class ChainMapper:
polypep_seqs = seq.CreateSequenceList()
polynuc_seqs = seq.CreateSequenceList()
if len(view.residues) == 0:
# no residues survived => return
return (view, polypep_seqs, polynuc_seqs)
for ch in view.chains:
n_res = len(ch.residues)
n_pep = sum([r.IsPeptideLinking() for r in ch.residues])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment