From 73ec9a1dcf2e67cbce5ddbc01f33b473456a7baf Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Tue, 8 Mar 2022 09:12:14 +0100
Subject: [PATCH] TBVar3D pipeline: Modify structure_identifier of models that
 get merged

---
 pipelines/tbvar3d/create_pipeline_in.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pipelines/tbvar3d/create_pipeline_in.py b/pipelines/tbvar3d/create_pipeline_in.py
index 05a1475..bbdcfa3 100644
--- a/pipelines/tbvar3d/create_pipeline_in.py
+++ b/pipelines/tbvar3d/create_pipeline_in.py
@@ -602,6 +602,11 @@ def ImportStructures(uniprot_sequence, struct_import_pipeline):
                 added_s.meta["activated_form_description"] += s.meta[
                     "activated_form_description"
                 ]
+                # Dear phd students: To show you an example of bad programming
+                # style, I modify on purpose a member variable that is supposed
+                # to be read only.
+                added_s._structure_identifier += f";{s.structure_identifier}"
+
                 break
         if not already_there:
             structures.append(s)
-- 
GitLab