From 571aef86a7fc1f1abf426175be265569e683c3f5 Mon Sep 17 00:00:00 2001
From: Xavier Robin <xavalias-github@xavier.robin.name>
Date: Thu, 6 Jun 2024 11:53:09 +0200
Subject: [PATCH] SCHWED-6331 string value can be replaced with ? when missing

---
 modules/io/src/mol/mmcif_reader.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/io/src/mol/mmcif_reader.cc b/modules/io/src/mol/mmcif_reader.cc
index 932d065ab..5561fdd8d 100644
--- a/modules/io/src/mol/mmcif_reader.cc
+++ b/modules/io/src/mol/mmcif_reader.cc
@@ -1698,9 +1698,8 @@ void MMCifReader::ParseStructRefSeqDif(const std::vector<StringRef>& columns)
   if (indices_[SRSD_DB_RNUM] != -1) {
     db_rnum=columns[indices_[SRSD_DB_RNUM]].str();
   } else {
- 	 	LOG_INFO("Ignoring struct_ref_seq_dif with missing data item "
- 	 	         "pdbx_seq_db_seq_num");
- 	 	 return;
+    db_rnum="?";
+    LOG_INFO("Setting missing struct_ref_seq_dif.pdbx_seq_db_seq_num to '?");
   }
 
   std::pair<bool,int> seq_rnum;
-- 
GitLab