Skip to content
Snippets Groups Projects
Commit 3a8dc3e9 authored by Marco Biasini's avatar Marco Biasini
Browse files

use _entity.pdbx_description not _entity.detail

parent 283198f1
Branches
Tags
No related merge requests found
...@@ -158,7 +158,7 @@ bool MMCifParser::OnBeginLoop(const StarLoopDesc& header) ...@@ -158,7 +158,7 @@ bool MMCifParser::OnBeginLoop(const StarLoopDesc& header)
this->TryStoreIdx(E_ID, "id", header); this->TryStoreIdx(E_ID, "id", header);
// optional // optional
indices_[E_TYPE] = header.GetIndex("type"); indices_[E_TYPE] = header.GetIndex("type");
indices_[DETAILS] = header.GetIndex("details"); indices_[PDBX_DESCRIPTION] = header.GetIndex("pdbx_description");
cat_available = true; cat_available = true;
} else if (header.GetCategory() == "entity_poly") { } else if (header.GetCategory() == "entity_poly") {
category_ = ENTITY_POLY; category_ = ENTITY_POLY;
...@@ -473,8 +473,8 @@ void MMCifParser::ParseEntity(const std::vector<StringRef>& columns) ...@@ -473,8 +473,8 @@ void MMCifParser::ParseEntity(const std::vector<StringRef>& columns)
} }
// description // description
if (indices_[DETAILS] != -1) { if (indices_[PDBX_DESCRIPTION] != -1) {
desc.details = columns[indices_[DETAILS]].str(); desc.details = columns[indices_[PDBX_DESCRIPTION]].str();
} else { } else {
desc.details = ""; desc.details = "";
} }
......
...@@ -233,7 +233,7 @@ private: ...@@ -233,7 +233,7 @@ private:
typedef enum { typedef enum {
E_ID, ///< unique identifier E_ID, ///< unique identifier
E_TYPE, ///< polymer, non-polymer or water E_TYPE, ///< polymer, non-polymer or water
DETAILS ///< special aspects of the entity PDBX_DESCRIPTION ///< special aspects of the entity
} EntityItems; } EntityItems;
/// \enum items of the entity_poly category /// \enum items of the entity_poly category
......
...@@ -9,7 +9,7 @@ data_1BAR ...@@ -9,7 +9,7 @@ data_1BAR
loop_ loop_
_entity.id _entity.id
_entity.type _entity.type
_entity.details _entity.pdbx_description
1 polymer 1 polymer
; Very important information. ; Very important information.
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment