Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
f6e05689
Unverified
Commit
f6e05689
authored
Jan 03, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start reconstructing
parent
098f3fd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
include/cif++/model.hpp
+7
-0
src/model.cpp
+10
-0
src/pdb/pdb2cif.cpp
+1
-2
No files found.
include/cif++/model.hpp
View file @
f6e05689
...
...
@@ -950,4 +950,11 @@ class structure
std
::
vector
<
residue
>
m_non_polymers
;
};
// --------------------------------------------------------------------
/// \brief Reconstruct all missing categories for an assumed PDBx file.
/// Some people believe that simply dumping some atom records is enough.
/// \param db The cif::datablock that hopefully contains some valid data
void
reconstruct_pdbx
(
datablock
&
db
);
}
// namespace cif::mm
src/model.cpp
View file @
f6e05689
...
...
@@ -2678,4 +2678,14 @@ void structure::validate_atoms() const
assert
(
atoms
.
empty
());
}
// --------------------------------------------------------------------
void
reconstruct_pdbx
(
datablock
&
db
)
{
if
(
db
.
get
(
"atom_site"
)
==
nullptr
)
throw
std
::
runtime_error
(
"Cannot reconstruct PDBx file, atom data missing"
);
}
}
// namespace pdbx
src/pdb/pdb2cif.cpp
View file @
f6e05689
...
...
@@ -6240,4 +6240,4 @@ file read(const std::filesystem::path &file)
}
}
}
//
namespace
pdbx
\ No newline at end of file
}
// namespace pdbx
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment