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
a9b23646
Commit
a9b23646
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
mmcif writer: introduce _atom_site.pdbx_PDB_model_num
required by prody/biotite
parent
fb045eb9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/io/src/mol/mmcif_writer.cc
+6
-1
6 additions, 1 deletion
modules/io/src/mol/mmcif_writer.cc
with
6 additions
and
1 deletion
modules/io/src/mol/mmcif_writer.cc
+
6
−
1
View file @
a9b23646
...
@@ -684,6 +684,7 @@ namespace {
...
@@ -684,6 +684,7 @@ namespace {
desc
.
Add
(
"auth_asym_id"
);
desc
.
Add
(
"auth_asym_id"
);
desc
.
Add
(
"id"
);
desc
.
Add
(
"id"
);
desc
.
Add
(
"pdbx_PDB_ins_code"
);
desc
.
Add
(
"pdbx_PDB_ins_code"
);
desc
.
Add
(
"pdbx_PDB_model_num"
);
ost
::
io
::
StarWriterLoopPtr
sl
(
new
ost
::
io
::
StarWriterLoop
(
desc
));
ost
::
io
::
StarWriterLoopPtr
sl
(
new
ost
::
io
::
StarWriterLoop
(
desc
));
return
sl
;
return
sl
;
}
}
...
@@ -849,7 +850,7 @@ namespace {
...
@@ -849,7 +850,7 @@ namespace {
}
}
const
std
::
vector
<
String
>&
aln
=
it
->
second
;
const
std
::
vector
<
String
>&
aln
=
it
->
second
;
int
label_seq_id
=
0
;
// 0-based index
int
label_seq_id
=
0
;
// 0-based index
std
::
vector
<
ost
::
io
::
StarWriterValue
>
at_data
(
1
7
);
std
::
vector
<
ost
::
io
::
StarWriterValue
>
at_data
(
1
8
);
for
(
auto
res
:
res_list
)
{
for
(
auto
res
:
res_list
)
{
String
comp_id
=
res
.
GetName
();
String
comp_id
=
res
.
GetName
();
...
@@ -920,6 +921,10 @@ namespace {
...
@@ -920,6 +921,10 @@ namespace {
at_data
[
15
]
=
ost
::
io
::
StarWriterValue
::
FromInt
(
atom_site_ptr
->
GetN
());
at_data
[
15
]
=
ost
::
io
::
StarWriterValue
::
FromInt
(
atom_site_ptr
->
GetN
());
// pdbx_PDB_ins_code
// pdbx_PDB_ins_code
at_data
[
16
]
=
ost
::
io
::
StarWriterValue
::
FromString
(
ins_code
);
at_data
[
16
]
=
ost
::
io
::
StarWriterValue
::
FromString
(
ins_code
);
// pdbx_PDB_model_num
// always 1 for now, value must be updated if MMCifWriter supports
// writing of multiple models
at_data
[
17
]
=
ost
::
io
::
StarWriterValue
::
FromInt
(
1
);
atom_site_ptr
->
AddData
(
at_data
);
atom_site_ptr
->
AddData
(
at_data
);
}
}
++
label_seq_id
;
++
label_seq_id
;
...
...
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