Commit 7cd97ea7 by Maarten L. Hekkelman

fix writing files without residues

parent ff447e7b
...@@ -318,6 +318,13 @@ void annotateDSSP(mmcif::Structure& structure, const mmcif::DSSP& dssp, std::ost ...@@ -318,6 +318,13 @@ void annotateDSSP(mmcif::Structure& structure, const mmcif::DSSP& dssp, std::ost
{ {
auto& db = structure.getFile().data(); auto& db = structure.getFile().data();
if (dssp.empty())
{
if (cif::VERBOSE)
std::cout << "No secondary structure information found" << std::endl;
}
else
{
// replace all struct_conf and struct_conf_type records // replace all struct_conf and struct_conf_type records
auto& structConfType = db["struct_conf_type"]; auto& structConfType = db["struct_conf_type"];
structConfType.clear(); structConfType.clear();
...@@ -429,9 +436,9 @@ void annotateDSSP(mmcif::Structure& structure, const mmcif::DSSP& dssp, std::ost ...@@ -429,9 +436,9 @@ void annotateDSSP(mmcif::Structure& structure, const mmcif::DSSP& dssp, std::ost
foundTypes[id] = 1; foundTypes[id] = 1;
} }
} }
}
db.add_software("dssp " VERSION, "other", get_version_nr(), get_version_date()); db.add_software("dssp " VERSION, "other", get_version_nr(), get_version_date());
db.write(os); db.write(os);
// cif::File df; // cif::File df;
......
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