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
cfd5b7da
Unverified
Commit
cfd5b7da
authored
Oct 25, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reintroduce more atom members
parent
26b7d1df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
38 deletions
+16
-38
gxrio
+1
-1
include/cif++/model.hpp
+14
-23
src/model.cpp
+0
-13
src/utilities.cpp
+1
-1
No files found.
gxrio
@
a7bb5b5c
Subproject commit
4587355dd281665f7d489360553d2f7564f398e4
Subproject commit
a7bb5b5c4b6612215a78267b89e05c39a45429b5
include/cif++/model.hpp
View file @
cfd5b7da
...
...
@@ -239,8 +239,8 @@ class atom
const
row_handle
get_row
()
const
{
return
impl
().
row
();
}
const
row_handle
get_row_aniso
()
const
{
return
impl
().
row_aniso
();
}
// bool isSymmetryCopy() const { return impl().mSymmetryCopy
; }
// std::string symmetry() const { return impl().mSymmetryOperator
; }
bool
is_symmetry_copy
()
const
{
return
impl
().
m_symop
!=
"1_555"
;
}
std
::
string
symmetry
()
const
{
return
impl
().
m_symop
;
}
// const compound &compound() const;
...
...
@@ -269,26 +269,17 @@ class atom
std
::
string
get_auth_asym_id
()
const
{
return
get_property
(
"auth_asym_id"
);
}
std
::
string
get_auth_seq_id
()
const
{
return
get_property
(
"auth_seq_id"
);
}
std
::
string
get_auth_atom_id
()
const
{
return
get_property
(
"auth_atom_id"
);
}
std
::
string
get_auth_alt_id
()
const
{
return
get_property
(
"auth_alt_id"
);
}
std
::
string
get_pdb_ins_code
()
const
{
return
get_property
(
"pdbx_PDB_ins_code"
);
}
// const std::string &labelAtomID() const { return impl().mAtomID; }
// const std::string &get_label_comp_id() const { return impl().mCompID; }
// const std::string &get_label_asym_id() const { return impl().m_asym_id; }
// std::string labelEntityID() const;
// int get_label_seq_id() const { return impl().m_seq_id; }
// const std::string &labelAltID() const { return impl().mAltID; }
bool
is_alternate
()
const
{
return
not
get_label_alt_id
().
empty
();
}
// std::string authAtomID() const;
// std::string authCompID() const;
// std::string authAsymID() const;
// const std::string &authSeqID() const { return impl().m_auth_seq_id; }
// std::string pdbxAuthInsCode() const;
// std::string pdbxAuthAltID() const;
// std::string labelID() const; // label_comp_id + '_' + label_asym_id + '_' + label_seq_id
// std::string pdbID() const; // auth_comp_id + '_' + auth_asym_id + '_' + auth_seq_id + pdbx_PDB_ins_code
std
::
string
pdb_id
()
const
{
return
get_label_comp_id
()
+
'_'
+
get_auth_asym_id
()
+
'_'
+
get_auth_seq_id
()
+
get_pdb_ins_code
();
}
bool
operator
==
(
const
atom
&
rhs
)
const
{
...
...
@@ -308,12 +299,12 @@ class atom
// // access data in compound for this atom
//
//
convenience routine
// bool isBackB
one() const
//
{
// auto atomID = labelAtomID
();
//
return atomID == "N" or atomID == "O" or atomID == "C" or atomID == "CA";
//
}
// convenience routine
bool
is_back_b
one
()
const
{
auto
atomID
=
get_label_atom_id
();
return
atomID
==
"N"
or
atomID
==
"O"
or
atomID
==
"C"
or
atomID
==
"CA"
;
}
void
swap
(
atom
&
b
)
{
...
...
src/model.cpp
View file @
cfd5b7da
...
...
@@ -215,19 +215,6 @@ int atom::atom_impl::get_charge() const
// return result;
// }
// std::string atom::labelID() const
// {
// return m_impl->mCompID + '_' + m_impl->m_asym_id + '_' + std::to_string(m_impl->m_seq_id) + ':' + m_impl->mAtom_id;
// }
// std::string atom::pdbID() const
// {
// return get_property<std::string>("auth_comp_id") + '_' +
// get_property<std::string>("auth_asym_id") + '_' +
// get_property<std::string>("auth_seq_id") +
// get_property<std::string>("pdbx_PDB_ins_code");
// }
// const Compound &atom::compound() const
// {
// auto result = impl().compound();
...
...
src/utilities.cpp
View file @
cfd5b7da
...
...
@@ -340,7 +340,7 @@ void ProgressImpl::PrintDone()
Progress
::
Progress
(
int64_t
inMax
,
const
std
::
string
&
inAction
)
:
m_impl
(
nullptr
)
{
if
(
isatty
(
STDOUT_FILENO
))
if
(
isatty
(
STDOUT_FILENO
)
and
VERBOSE
>=
0
)
m_impl
=
new
ProgressImpl
(
inMax
,
inAction
);
}
...
...
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