Skip to content
Snippets Groups Projects
Commit f9c31892 authored by Bienchen's avatar Bienchen
Browse files

Fixed an issue in the mmCIF reader for files starting with a ligand only...

Fixed an issue in the mmCIF reader for files starting with a ligand only chain. Before the first atom was stored in its own residue and the remaining atoms in a second residue. Happend for PDB entry 1AGA.
parent 52cdce93
No related branches found
No related tags found
No related merge requests found
......@@ -509,6 +509,9 @@ void MMCifReader::ParseAndAddAtom(const std::vector<StringRef>& columns)
if(!curr_residue_) { // unit test
update_residue=true;
subst_res_id_ = cif_chain_name +
columns[indices_[AUTH_SEQ_ID]].str() +
columns[indices_[PDBX_PDB_INS_CODE]].str();
} else if (!valid_res_num) {
if (indices_[AUTH_SEQ_ID] != -1 &&
indices_[PDBX_PDB_INS_CODE] != -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment