From 45c1d4a551f7efbea646110eb46e9b40297acded Mon Sep 17 00:00:00 2001 From: ahmedselim2017 Date: Sun, 22 Sep 2024 00:46:39 +0300 Subject: [PATCH] Include chains in the res_id in pdb_selb.py --- pdbtools/pdb_selb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdbtools/pdb_selb.py b/pdbtools/pdb_selb.py index 8a25843..2349aab 100644 --- a/pdbtools/pdb_selb.py +++ b/pdbtools/pdb_selb.py @@ -205,7 +205,7 @@ def run(fhandle, filtering_mode, operator, operator_treshold): if line.startswith(records): line = _pad_line(line) - res_id = int(line[23:26]) + res_id = line[21:26] if prev_res_id == res_id or prev_res_id is None: res_lines.append(line)