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
15d62cd3
Unverified
Commit
15d62cd3
authored
Aug 07, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mapping between pdbx_poly_seq_scheme and atom_site while reading an mmcif::Structure
parent
d4bb7ec3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
CMakeLists.txt
+1
-1
changelog
+5
-0
src/Cif2PDB.cpp
+2
-2
src/Structure.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
15d62cd3
...
...
@@ -25,7 +25,7 @@
cmake_minimum_required
(
VERSION 3.16
)
# set the project name
project
(
cifpp VERSION 4.2.
1
LANGUAGES CXX
)
project
(
cifpp VERSION 4.2.
2
LANGUAGES CXX
)
list
(
PREPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
...
...
changelog
View file @
15d62cd3
Version
4.2.2
-
Fix
in
loading
an
mmcif
::
Structure
,
the
mapping
between
atom_site
and
pdbx_poly_seq_scheme
should
be
on
auth_seq_id
to
pdb_seq_num
and
not
auth_seq_num
of
course
...
duh
Version
4.2.1
-
Improved
REMARK
3
parser
(
for
TLS
in
large
molecules
)
...
...
src/Cif2PDB.cpp
View file @
15d62cd3
...
...
@@ -3672,10 +3672,10 @@ std::tuple<int,int> WriteCoordinate(std::ostream& pdbFile, const Datablock& db)
std
::
string
chainID
,
resName
,
iCode
;
int
resSeq
;
if
(
r
[
"
auth
_seq_num"
].
empty
())
if
(
r
[
"
pdb
_seq_num"
].
empty
())
continue
;
cif
::
tie
(
chainID
,
resName
,
resSeq
,
iCode
)
=
r
.
get
(
"pdb_strand_id"
,
"pdb_mon_id"
,
"
auth
_seq_num"
,
"pdb_ins_code"
);
cif
::
tie
(
chainID
,
resName
,
resSeq
,
iCode
)
=
r
.
get
(
"pdb_strand_id"
,
"pdb_mon_id"
,
"
pdb
_seq_num"
,
"pdb_ins_code"
);
last_resseq_for_chain_map
[
chainID
]
=
make_tuple
(
resName
,
resSeq
,
iCode
);
// res2chain_map[make_tuple(resName, resSeq, iCode)] = chainID;
...
...
src/Structure.cpp
View file @
15d62cd3
...
...
@@ -1053,7 +1053,7 @@ Polymer::Polymer(const Structure &s, const std::string &entityID, const std::str
{
int
seqID
;
std
::
string
compoundID
,
authSeqID
;
cif
::
tie
(
seqID
,
authSeqID
,
compoundID
)
=
r
.
get
(
"seq_id"
,
"
auth
_seq_num"
,
"mon_id"
);
cif
::
tie
(
seqID
,
authSeqID
,
compoundID
)
=
r
.
get
(
"seq_id"
,
"
pdb
_seq_num"
,
"mon_id"
);
size_t
index
=
size
();
...
...
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