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
c94750c5
Commit
c94750c5
authored
7 years ago
by
Rafal Gumienny
Browse files
Options
Downloads
Patches
Plain Diff
refactor: SCHWED-3126 One constructor for MolckSettings is enough
parent
7188836c
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/mol/alg/src/molck.hh
+16
-26
16 additions, 26 deletions
modules/mol/alg/src/molck.hh
with
16 additions
and
26 deletions
modules/mol/alg/src/molck.hh
+
16
−
26
View file @
c94750c5
...
...
@@ -25,32 +25,22 @@ struct MolckSettings{
bool
map_nonstd_res
;
bool
assign_elem
;
MolckSettings
()
:
rm_unk_atoms
(
false
),
// Remove unknown and atoms not following the nomenclature
rm_non_std
(
false
),
// Remove all residues not one of the 20 standard amino acids
rm_hyd_atoms
(
true
),
// Remove hydrogen atoms
rm_oxt_atoms
(
false
),
// Remove terminal oxygens
rm_zero_occ_atoms
(
false
),
// Remove atoms with zero occupancy
colored
(
false
),
// Whether the output should be colored
map_nonstd_res
(
true
),
// Map non standard residues back to standard ones (e.g.: MSE->MET,SEP->SER,etc.)
assign_elem
(
true
){}
// Clean up element column
MolckSettings
(
bool
init_rm_unk_atoms
,
bool
init_rm_non_std
,
bool
init_rm_hyd_atoms
,
bool
init_rm_oxt_atoms
,
bool
init_rm_zero_occ_atoms
,
bool
init_colored
,
bool
init_map_nonstd_res
,
bool
init_assign_elem
){
rm_unk_atoms
=
init_rm_unk_atoms
;
rm_non_std
=
init_rm_non_std
;
rm_hyd_atoms
=
init_rm_hyd_atoms
;
rm_oxt_atoms
=
init_rm_oxt_atoms
;
rm_zero_occ_atoms
=
init_rm_zero_occ_atoms
;
colored
=
init_colored
;
map_nonstd_res
=
init_map_nonstd_res
;
assign_elem
=
init_assign_elem
;
}
MolckSettings
(
bool
init_rm_unk_atoms
=
false
,
bool
init_rm_non_std
=
false
,
bool
init_rm_hyd_atoms
=
true
,
bool
init_rm_oxt_atoms
=
false
,
bool
init_rm_zero_occ_atoms
=
false
,
bool
init_colored
=
false
,
bool
init_map_nonstd_res
=
true
,
bool
init_assign_elem
=
true
)
:
rm_unk_atoms
(
init_rm_unk_atoms
),
// Remove unknown and atoms not following the nomenclature
rm_non_std
(
init_rm_non_std
),
// Remove all residues not one of the 20 standard amino acids
rm_hyd_atoms
(
init_rm_hyd_atoms
),
// Remove hydrogen atoms
rm_oxt_atoms
(
init_rm_oxt_atoms
),
// Remove terminal oxygens
rm_zero_occ_atoms
(
init_rm_zero_occ_atoms
),
// Remove atoms with zero occupancy
colored
(
init_colored
),
// Whether the output should be colored
map_nonstd_res
(
init_map_nonstd_res
),
// Map non standard residues back to standard ones (e.g.: MSE->MET,SEP->SER,etc.)
assign_elem
(
init_assign_elem
){}
// Clean up element column
public
:
std
::
string
ToString
(){
...
...
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