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
f013fe21
Commit
f013fe21
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
mmcif writer: remove unnecessary checks
parent
4e15e70b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/io/src/mol/mmcif_writer.cc
+0
-7
0 additions, 7 deletions
modules/io/src/mol/mmcif_writer.cc
modules/io/src/mol/mmcif_writer.hh
+2
-1
2 additions, 1 deletion
modules/io/src/mol/mmcif_writer.hh
with
2 additions
and
8 deletions
modules/io/src/mol/mmcif_writer.cc
+
0
−
7
View file @
f013fe21
...
...
@@ -975,10 +975,6 @@ namespace {
++
label_seq_id
;
}
if
(
res_name
!=
aln
[
label_seq_id
])
{
throw
"ksajdhfgjkaljshdfsfgd"
;
}
data
[
2
]
=
ost
::
io
::
StarWriterValue
::
FromString
(
res_name
);
data
[
3
]
=
ost
::
io
::
StarWriterValue
::
FromInt
(
label_seq_id
+
1
);
...
...
@@ -1045,9 +1041,6 @@ namespace {
while
(
aln
[
label_seq_id
]
==
"-"
)
{
++
label_seq_id
;
}
if
(
comp_id
!=
aln
[
label_seq_id
])
{
throw
"ksajdhfgjkaljshdfsfgd"
;
}
}
for
(
auto
at
:
at_list
)
{
...
...
This diff is collapsed.
Click to expand it.
modules/io/src/mol/mmcif_writer.hh
+
2
−
1
View file @
f013fe21
...
...
@@ -60,7 +60,8 @@ struct MMCifWriterEntity {
// One alignment to mon_ids for each element in asym_ids, i.e. SEQRES-ATOMSEQ
// alignment. Contains "-" for residues that are missing in ATOMSEQ.
// irrelevant if is_poly is false.
// irrelevant if is_poly is false. The assumption is that aligned residues
// exactly match with the respective position in mon_ids.
std
::
vector
<
std
::
vector
<
String
>
>
asym_alns
;
};
...
...
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