Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
clami66 committed May 15, 2024
1 parent dd8eb7c commit 75e4a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DockQ/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _build_structure(self, structure_id, chains, parse_hetatms):
current_residue_id = resseq
current_resname = resname
if hetatm_flag == " ":
resname1 = seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 else r[:-1] if (len(current_resname) == 2) else r
resname1 = seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 else current_resname[:-1] if (len(current_resname) == 2) else current_resname
sequences[current_chain_id] += resname1
else:
sequences[current_chain_id] = resname
Expand Down Expand Up @@ -409,7 +409,7 @@ def _parse_coordinates(self, coords_trailer, chains=[], parse_hetatms=False):
resname, hetatm_flag, resseq, icode
)
if hetatm_flag == " ":
resname1 = seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 else r[:-1] if (len(current_resname) == 2) else r
resname1 = seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 else current_resname[:-1] if (len(current_resname) == 2) else current_resname
sequences[current_chain_id] = resname1
except PDBConstructionException as message:
self._handle_PDB_exception(message, global_line_counter)
Expand Down

0 comments on commit 75e4a19

Please sign in to comment.