OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
wrap_tmalign.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2019 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_BINDINGS_TMALIGN_H
20 #define OST_BINDINGS_TMALIGN_H
21 
22 #include <ost/geom/mat4.hh>
23 #include <ost/geom/vec3.hh>
25 #include <ost/mol/chain_view.hh>
26 #include <ost/mol/chain_handle.hh>
27 
28 namespace ost { namespace bindings {
29 
30 struct TMAlignResult {
31 
33 
34  TMAlignResult(Real rm, Real tm, int aln_l, const geom::Mat4& t,
35  const ost::seq::AlignmentHandle& aln): rmsd(rm),
36  tm_score(tm),
37  aligned_length(aln_l),
38  transform(t),
39  alignment(aln) { }
40 
41 
47 
48  Real GetTMScore() { return tm_score; }
49  Real GetRMSD() { return rmsd; }
50  int GetAlignedLength() { return aligned_length; }
51  const geom::Mat4& GetTransform() { return transform; }
53 };
54 
55 TMAlignResult WrappedTMAlign(const geom::Vec3List& pos_one,
56  const geom::Vec3List& pos_two,
57  const ost::seq::SequenceHandle& seq1,
58  const ost::seq::SequenceHandle& seq2,
59  bool fast = false);
60 
61 TMAlignResult WrappedTMAlign(const ost::mol::ChainView& ent1,
62  const ost::mol::ChainView& ent2,
63  bool fast = false);
64 }} //ns
65 
66 #endif
TMAlignResult(Real rm, Real tm, int aln_l, const geom::Mat4 &t, const ost::seq::AlignmentHandle &aln)
Definition: wrap_tmalign.hh:34
mutable sequence handle.
float Real
Definition: base.hh:44
ost::seq::AlignmentHandle alignment
Definition: wrap_tmalign.hh:46
definition of ChainView
Definition: chain_view.hh:37
TMAlignResult WrappedTMAlign(const geom::Vec3List &pos_one, const geom::Vec3List &pos_two, const ost::seq::SequenceHandle &seq1, const ost::seq::SequenceHandle &seq2, bool fast=false)
representation of a multiple sequence alignemnt consisting of two or more sequences ...
const ost::seq::AlignmentHandle & GetAlignment()
Definition: wrap_tmalign.hh:52
const geom::Mat4 & GetTransform()
Definition: wrap_tmalign.hh:51