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
5c7e600e
Commit
5c7e600e
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
WrappedTMAlign bugfix: RNA needs custom secondary structure assignment
parent
b4d4648a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/bindings/src/wrap_tmalign.cc
+9
-4
9 additions, 4 deletions
modules/bindings/src/wrap_tmalign.cc
with
9 additions
and
4 deletions
modules/bindings/src/wrap_tmalign.cc
+
9
−
4
View file @
5c7e600e
...
...
@@ -72,8 +72,13 @@ TMAlignResult WrappedTMAlign(const geom::Vec3List& pos_one,
seqy
[
i
]
=
seq2
[
i
];
}
make_sec
(
xa
,
xlen
,
secx
);
make_sec
(
ya
,
ylen
,
secy
);
if
(
rna
)
{
make_sec
(
seqx
,
xa
,
xlen
,
secx
,
" C3'"
);
make_sec
(
seqy
,
ya
,
ylen
,
secy
,
" C3'"
);
}
else
{
make_sec
(
xa
,
xlen
,
secx
);
make_sec
(
ya
,
ylen
,
secy
);
}
// these variables are chosen such that running TMalign_main is the same as
// you would call the executable without any additional parameters
...
...
@@ -154,7 +159,7 @@ void ExtractChainInfo(const ost::mol::ChainView& chain, geom::Vec3List& pos,
if
(
rna_mode
)
{
std
::
stringstream
ss
;
ss
<<
"Error in WrappedTMAlign: Chains cannot have peptide and RNA "
;
ss
<<
"residues. Problematic chain: "
<<
chain
.
GetName
();
ss
<<
"residues
in same chain
. Problematic chain: "
<<
chain
.
GetName
();
throw
ost
::
Error
(
ss
.
str
());
}
olcs
.
push_back
(
olc
);
...
...
@@ -168,7 +173,7 @@ void ExtractChainInfo(const ost::mol::ChainView& chain, geom::Vec3List& pos,
if
(
rna_mode
==
false
&&
!
pos
.
empty
())
{
std
::
stringstream
ss
;
ss
<<
"Error in WrappedTMAlign: Chains cannot have peptide and RNA "
;
ss
<<
"residues. Problematic chain: "
<<
chain
.
GetName
();
ss
<<
"residues
in same chain
. Problematic chain: "
<<
chain
.
GetName
();
throw
ost
::
Error
(
ss
.
str
());
}
rna_mode
=
true
;
...
...
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