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

Make reading of ANISOU record more permissive if hetatms are disabled

Hetatms are potentially skipped but if they come with an ANISOU record,
ost expects them to be there. As a solution we simply increase the
permissiveness as we already do it when having the calpha_only option
active.
parent 7c6e0465
No related branches found
Tags 2.1.0-rc3
No related merge requests found
......@@ -629,7 +629,9 @@ void PDBReader::ParseAnisou(const StringRef& line, int line_num,
}
String aname(atom_name.str());
if (!curr_residue_.IsValid()) {
if (profile_.fault_tolerant || profile_.calpha_only) {
if (profile_.fault_tolerant ||
profile_.calpha_only ||
profile_.no_hetatms) {
return;
}
const char* fmt_str="invalid ANISOU record for inexistent atom on line %d";
......@@ -639,6 +641,7 @@ void PDBReader::ParseAnisou(const StringRef& line, int line_num,
if (!atom.IsValid()) {
if (profile_.fault_tolerant ||
profile_.calpha_only ||
profile_.no_hetatms ||
warned_name_mismatch_) {
return;
}
......
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