From 622824f9d9fd7d34c9f1999421fe308bfaa9e35a Mon Sep 17 00:00:00 2001 From: clami66 Date: Tue, 27 Aug 2024 10:14:50 +0200 Subject: [PATCH] fix conversion of nucleic acids names --- src/DockQ/parsers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DockQ/parsers.py b/src/DockQ/parsers.py index 7135422..d63db71 100644 --- a/src/DockQ/parsers.py +++ b/src/DockQ/parsers.py @@ -208,7 +208,7 @@ def _build_structure(self, structure_id, chains, parse_hetatms): resname1 = ( seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 - else current_resname[:-1] + else current_resname[-1] if (len(current_resname) == 2) else current_resname ) @@ -432,7 +432,7 @@ def _parse_coordinates(self, coords_trailer, chains=[], parse_hetatms=False): resname1 = ( seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 - else current_resname[:-1] + else current_resname[-1] if (len(current_resname) == 2) else current_resname ) @@ -453,7 +453,7 @@ def _parse_coordinates(self, coords_trailer, chains=[], parse_hetatms=False): resname1 = ( seq1(current_resname, custom_map=custom_map) if len(current_resname) == 3 - else current_resname[:-1] + else current_resname[-1] if (len(current_resname) == 2) else current_resname )