Skip to content

Commit

Permalink
fix parse pfam pdbs no getResnums for selection None
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 15, 2023
1 parent 5b1fd81 commit 51ad2d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prody/database/pfam.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,10 @@ def parsePfamPDBs(query, data=[], **kwargs):
continue

right_dbref = header[data_dict['chain']].dbrefs[right_part]
chainStart = ag.select('chain {0}'.format(data_dict['chain'])
).getResnums()[0]
chain = ag.select('chain {0}'.format(data_dict['chain']))
if chain is None:
continue
chainStart = chain.getResnums()[0]
missing = chainStart - right_dbref.first[0]
partStart = ag.getResindices()[np.where(ag.getResnums() ==
right_dbref.first[0] + missing)][0]
Expand Down

0 comments on commit 51ad2d9

Please sign in to comment.