Commit f12e529c by Maarten L. Hekkelman

default alt id for new atoms

parent 01b90a2b
...@@ -368,6 +368,7 @@ atom residue::create_new_atom(atom_type inType, const std::string &inAtomID, poi ...@@ -368,6 +368,7 @@ atom residue::create_new_atom(atom_type inType, const std::string &inAtomID, poi
{ "label_entity_id", get_entity_id() }, { "label_entity_id", get_entity_id() },
{ "label_atom_id", inAtomID }, { "label_atom_id", inAtomID },
{ "label_asym_id", m_asym_id }, { "label_asym_id", m_asym_id },
{ "label_alt_id", "." },
{ "label_comp_id", m_compound_id }, { "label_comp_id", m_compound_id },
{ "label_seq_id", m_seq_id }, { "label_seq_id", m_seq_id },
{ "auth_asym_id", m_auth_asym_id }, { "auth_asym_id", m_auth_asym_id },
...@@ -2919,8 +2920,6 @@ void structure::reorder_atoms() ...@@ -2919,8 +2920,6 @@ void structure::reorder_atoms()
if (d == 0) if (d == 0)
d = a.get<int>("label_seq_id") - b.get<int>("label_seq_id"); d = a.get<int>("label_seq_id") - b.get<int>("label_seq_id");
if (d == 0) if (d == 0)
d = a.get<std::string>("label_alt_id").compare(b.get<std::string>("label_alt_id"));
if (d == 0)
d = compare_numbers(a.get<std::string>("id"), b.get<std::string>("id")); d = compare_numbers(a.get<std::string>("id"), b.get<std::string>("id"));
return d; return d;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment