Skip to content
Snippets Groups Projects
Commit 9974ad82 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

bugfix: SCHWED-5469

Make assigning Mol IDs more permissive in PDB reader. I.e. allow COMPND
keywords for chains that are not in the finally loaded entity if no_hetatms
is True in the IO profile. They're missing if solely composed of hetatms.
parent 9a8d1c87
No related branches found
No related tags found
No related merge requests found
......@@ -482,7 +482,10 @@ void PDBReader::AssignMolIds(mol::EntityHandle ent) {
mol::ChainHandle chain=ent.FindChain(*chain_iterator);
if (chain) {
chain.SetIntProp("mol_id", compnd_iterator->mol_id);
}else{
}else if (!profile_.no_hetatms){
// only throw if no_hetatms flag is False. Some chains might be
// missing if no_hetatms is true and they're solely composed of
// hetatms.
LOG_WARNING("failed to assign MOL_ID to chain: "<<*chain_iterator <<std::endl);
std::stringstream ss;
ss << "could not map COMPND record MOL_ID onto chain";
......
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