Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
73db0650
Commit
73db0650
authored
4 years ago
by
B13nch3n
Browse files
Options
Downloads
Patches
Plain Diff
Use pdbx_entity_branch connectivity data in DNG
parent
2fd81d06
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/io/src/mol/entity_io_mmcif_handler.cc
+14
-0
14 additions, 0 deletions
modules/io/src/mol/entity_io_mmcif_handler.cc
with
14 additions
and
0 deletions
modules/io/src/mol/entity_io_mmcif_handler.cc
+
14
−
0
View file @
73db0650
...
...
@@ -55,6 +55,13 @@ void EntityIOMMCIFHandler::Import(mol::EntityHandle& ent,
MMCifReader
reader
(
stream
,
ent
,
IOProfileRegistry
::
Instance
().
GetDefault
());
reader
.
Parse
();
// This is a hack: the reader is not available in
// file_loader.cc/ FileLoader::TryLoadEntity, but this is where the Conop
// processor is called to establish covalent bonds. Since RequiresProcessor()
// always returns true, the mechanism always tries to establish bonds, so we
// do that here.
MMCifInfo
info
=
reader
.
GetInfo
();
info
.
ConnectBranchLinks
();
}
void
EntityIOMMCIFHandler
::
Export
(
const
mol
::
EntityView
&
ent
,
...
...
@@ -69,6 +76,13 @@ void EntityIOMMCIFHandler::Import(mol::EntityHandle& ent,
MMCifReader
reader
(
filename
,
ent
,
IOProfileRegistry
::
Instance
().
GetDefault
());
reader
.
Parse
();
// This is a hack: the reader is not available in
// file_loader.cc/ FileLoader::TryLoadEntity, but this is where the Conop
// processor is called to establish covalent bonds. Since RequiresProcessor()
// always returns true, the mechanism always tries to establish bonds, so we
// do that here.
MMCifInfo
info
=
reader
.
GetInfo
();
info
.
ConnectBranchLinks
();
}
bool
EntityIOMMCIFHandler
::
ProvidesImport
(
const
boost
::
filesystem
::
path
&
loc
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment