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
aa4736e4
Commit
aa4736e4
authored
1 year ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
fix: pdb author resnum/insertion code in atom_sites
parent
9825e096
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
-10
6 additions, 10 deletions
modules/io/src/mol/mmcif_writer.cc
with
6 additions
and
10 deletions
modules/io/src/mol/mmcif_writer.cc
+
6
−
10
View file @
aa4736e4
...
@@ -1012,15 +1012,11 @@ namespace {
...
@@ -1012,15 +1012,11 @@ namespace {
}
}
String
auth_seq_id
=
res
.
GetNumber
().
AsString
();
String
auth_seq_id
=
res
.
GetNumber
().
AsString
();
if
(
res
.
HasProp
(
"pdb_auth_resnum"
))
{
if
(
res
.
HasProp
(
"pdb_auth_resnum"
))
{
std
::
stringstream
ss
;
auth_seq_id
=
res
.
GetStringProp
(
"pdb_auth_resnum"
);
ss
<<
res
.
GetStringProp
(
"pdb_auth_resnum"
);
}
if
(
res
.
HasProp
(
"pdb_auth_ins_code"
))
{
String
ins_code
=
""
;
String
ins_code
=
res
.
GetStringProp
(
"pdb_auth_ins_code"
);
if
(
res
.
HasProp
(
"pdb_auth_ins_code"
))
{
if
(
ins_code
!=
"?"
)
{
ins_code
=
res
.
GetStringProp
(
"pdb_auth_ins_code"
);
ss
<<
ins_code
;
}
}
auth_seq_id
=
ss
.
str
();
}
}
if
(
entity_info
.
is_poly
)
{
if
(
entity_info
.
is_poly
)
{
...
@@ -1075,7 +1071,7 @@ namespace {
...
@@ -1075,7 +1071,7 @@ namespace {
// id
// id
at_data
.
push_back
(
ost
::
io
::
StarWriterLoopDataItem
(
atom_site_ptr
->
GetN
()));
at_data
.
push_back
(
ost
::
io
::
StarWriterLoopDataItem
(
atom_site_ptr
->
GetN
()));
// pdbx_PDB_ins_code
// pdbx_PDB_ins_code
at_data
.
push_back
(
ost
::
io
::
StarWriterLoopDataItem
(
""
));
// CHECK THIS, ADD STUFF FROM AUTH_SEQ_ID?
at_data
.
push_back
(
ost
::
io
::
StarWriterLoopDataItem
(
ins_code
));
atom_site_ptr
->
AddData
(
at_data
);
atom_site_ptr
->
AddData
(
at_data
);
}
}
...
...
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