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
74bd2585
Unverified
Commit
74bd2585
authored
Apr 21, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming, nonpoly_scheme
parent
ebb27638
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
src/Cif++.cpp
+13
-4
src/Structure.cpp
+3
-0
No files found.
src/Cif++.cpp
View file @
74bd2585
...
@@ -2541,13 +2541,22 @@ void Category::update_value(RowSet &&rows, const std::string &tag, const std::st
...
@@ -2541,13 +2541,22 @@ void Category::update_value(RowSet &&rows, const std::string &tag, const std::st
check
=
std
::
move
(
check
)
&&
Key
(
ck
)
==
parent
[
pk
].
c_str
();
check
=
std
::
move
(
check
)
&&
Key
(
ck
)
==
parent
[
pk
].
c_str
();
}
}
std
::
cerr
<<
check
<<
std
::
endl
;
if
(
childCat
->
exists
(
std
::
move
(
check
)))
// phew..., narrow escape
if
(
childCat
->
exists
(
std
::
move
(
check
)))
// phew..., narrow escape
continue
;
continue
;
// create the actual copy
// create the actual copy, if we can...
auto
copy
=
childCat
->
copyRow
(
child
);
if
(
childCat
->
mCatValidator
!=
nullptr
and
childCat
->
mCatValidator
->
mKeys
.
size
()
==
1
)
if
(
copy
!=
child
)
{
process
.
push_back
(
child
);
auto
copy
=
childCat
->
copyRow
(
child
);
if
(
copy
!=
child
)
process
.
push_back
(
child
);
}
// cannot update this...
if
(
cif
::
VERBOSE
)
std
::
cerr
<<
"Cannot update child "
<<
childCat
->
mName
<<
"."
<<
childTag
<<
" with value "
<<
value
<<
std
::
endl
;
}
}
// finally, update the children
// finally, update the children
...
...
src/Structure.cpp
View file @
74bd2585
...
@@ -2289,7 +2289,10 @@ void Structure::changeResidue(const Residue& res, const std::string& newCompound
...
@@ -2289,7 +2289,10 @@ void Structure::changeResidue(const Residue& res, const std::string& newCompound
auto
&
pdbxNonPolyScheme
=
db
[
"pdbx_nonpoly_scheme"
];
auto
&
pdbxNonPolyScheme
=
db
[
"pdbx_nonpoly_scheme"
];
for
(
auto
&
nps
:
pdbxNonPolyScheme
.
find
(
"asym_id"
_key
==
asymID
))
for
(
auto
&
nps
:
pdbxNonPolyScheme
.
find
(
"asym_id"
_key
==
asymID
))
{
nps
.
assign
(
"mon_id"
,
newCompound
,
true
);
nps
.
assign
(
"entity_id"
,
entityID
,
true
);
nps
.
assign
(
"entity_id"
,
entityID
,
true
);
}
// create rest
// create rest
auto
&
chemComp
=
db
[
"chem_comp"
];
auto
&
chemComp
=
db
[
"chem_comp"
];
...
...
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