Skip to content

Commit

Permalink
skip None in parsePfamPDBs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 5, 2023
1 parent 73f01df commit 2f304c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions prody/database/pfam.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def parsePfamPDBs(query, data=[], **kwargs):
The PFAM domain that ends closest to this will be selected.
:type end: int
"""

only_parse = kwargs.pop('only_parse', False)

start = kwargs.pop('start', 1)
end = kwargs.pop('end', None)
Expand Down Expand Up @@ -341,10 +343,16 @@ def parsePfamPDBs(query, data=[], **kwargs):
else:
results = ags

if only_parse:
return results

LOGGER.progress('Extracting Pfam domains...', len(ags))
comma_splitter = re.compile(r'\s*,\s*').split
no_info = []
for i, ag in enumerate(ags):
if ag is None:
continue

LOGGER.update(i)
data_dict = data_dicts[i]
pfamRange = data_dict['UniprotResnumRange'].split('-')
Expand Down

0 comments on commit 2f304c0

Please sign in to comment.