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
a855a571
Commit
a855a571
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
mmcif writer: Getter for extracted entities in MMCifWriter
parent
e300c56c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/io/doc/mmcif.rst
+12
-2
12 additions, 2 deletions
modules/io/doc/mmcif.rst
modules/io/pymod/export_mmcif_io.cc
+1
-0
1 addition, 0 deletions
modules/io/pymod/export_mmcif_io.cc
modules/io/src/mol/mmcif_writer.hh
+2
-0
2 additions, 0 deletions
modules/io/src/mol/mmcif_writer.hh
with
15 additions
and
2 deletions
modules/io/doc/mmcif.rst
+
12
−
2
View file @
a855a571
...
...
@@ -1974,9 +1974,19 @@ To see it all in action:
:type ent: :class:`ost.mol.EntityHandle`/:class:`ost.mol.EntityView`
:param mmcif_conform: Determines data extraction strategy as described above
:type mmcif_conform: :class:`bool`
:param entity_info: Predefine mmCIF entities - guarantees complete SEQRES
info. Starts from empty list if not given.
:param entity_info: Predefine mmCIF entities - useful to define complete
SEQRES. If given, the provided list serves as a
starting point, i.e. chains in *ent* are matched to
entities in *entity_info*. In case of no match, this
list gets extended. Starts from empty list if not given.
:type entity_info: :class:`list` of :class:`MMCifWriterEntity`
.. method:: GetEntities()
Returns :class:`list` of :class:`MMCifWriterEntity`. Useful to check after
:func:`SetStructure` has been called. Order in this list defines entity
ids in written mmCIF file with zero based indexing.
Biounits
--------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
modules/io/pymod/export_mmcif_io.cc
+
1
−
0
View file @
a855a571
...
...
@@ -170,6 +170,7 @@ void export_mmcif_io()
arg
(
"entity_info"
)
=
std
::
vector
<
MMCifWriterEntity
>
()))
.
def
(
"SetStructure"
,
&
WrapSetStructureView
,
(
arg
(
"ent"
),
arg
(
"mmcif_conform"
)
=
true
,
arg
(
"entity_info"
)
=
std
::
vector
<
MMCifWriterEntity
>
()))
.
def
(
"GetEntities"
,
&
MMCifWriter
::
GetEntities
,
return_value_policy
<
copy_const_reference
>
())
;
enum_
<
MMCifInfoCitation
::
MMCifInfoCType
>
(
"MMCifInfoCType"
)
...
...
This diff is collapsed.
Click to expand it.
modules/io/src/mol/mmcif_writer.hh
+
2
−
0
View file @
a855a571
...
...
@@ -109,6 +109,8 @@ public:
void
SetStructure
(
const
ost
::
mol
::
EntityView
&
ent
,
bool
mmcif_conform
=
true
,
const
std
::
vector
<
MMCifWriterEntity
>&
entity_info
=
std
::
vector
<
MMCifWriterEntity
>
());
const
std
::
vector
<
MMCifWriterEntity
>&
GetEntities
()
const
{
return
entity_info_
;
}
private
:
...
...
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