From b0c161bf64e0c36116910786b7dd0f176bc5413e Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Thu, 22 Dec 2022 08:33:14 +0100
Subject: [PATCH] transfer ChemType property in PDBize

---
 modules/mol/alg/src/pdbize.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/mol/alg/src/pdbize.cc b/modules/mol/alg/src/pdbize.cc
index 1c3c1c612..24f6e33c6 100644
--- a/modules/mol/alg/src/pdbize.cc
+++ b/modules/mol/alg/src/pdbize.cc
@@ -58,7 +58,8 @@ bool copy_atoms(ResidueView src_res, ResidueHandle dst_res, XCSEditor& edi,
 void transfer_residue_properties(ResidueView src, ResidueHandle dst) {
   dst.SetOneLetterCode(src.GetOneLetterCode());
   dst.SetSecStructure(src.GetSecStructure());
-  dst.SetChemClass(src.GetChemClass());  
+  dst.SetChemClass(src.GetChemClass());
+  dst.SetChemType(src.GetChemType());
   dst.SetIsProtein(src.IsProtein());
   dst.SetIsLigand(src.IsLigand());
 }
-- 
GitLab