Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlignmentClustering.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet;
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file
11 ///
12 /// @brief Divide input alns into clusters based on gdtmm comparison of partial models. Uses the top e-value or hh-value sample as the cluster center.
13 /// @author TJ Bcunette
14 
15 #ifndef INCLUDED_protocols_comparative_modeling_AlignmentClustering_hh
16 #define INCLUDED_protocols_comparative_modeling_AlignmentClustering_hh
17 
19 
20 #include <core/types.hh>
21 // AUTO-REMOVED #include <core/pose/Pose.hh>
22 // AUTO-REMOVED #include <core/pose/util.hh>
23 // AUTO-REMOVED #include <core/sequence/SequenceAlignment.hh>
24 
25 // AUTO-REMOVED #include <utility/io/ozstream.hh>
26 #include <utility/pointer/ReferenceCount.hh>
27 
28 #include <map>
29 
31 #include <utility/vector1.hh>
32 
33 //Auto Headers
35 #include <core/kinematics/Jump.hh>
36 #include <core/pose/Pose.fwd.hh>
37 
38 
39 
40 namespace protocols {
41 namespace comparative_modeling {
42 
43  using utility::vector1;
44  using core::Size;
45  using core::Real;
46  using std::string;
47  using std::map;
48  using core::pose::Pose;
49  using namespace core::sequence;
50 
52  private:
54  public:
56  virtual ~AlignmentCluster();
57  void add_aln(SequenceAlignment & aln_in);
58  SequenceAlignment get_aln(Size index);
59  Real size();
60  SequenceAlignment get_clusterCenter();
61  void output(std::ostream & alignment_out);
62  void merge(AlignmentClusterOP cluster_in);
63  Real overlap(AlignmentClusterOP cluster_in);
64  };
66  public:
68  virtual ~AlignmentClustering();
69  private:
70  vector1<AlignmentClusterOP> cluster(vector1< vector1< Real > > & gdtmms, vector1<SequenceAlignment> & rankedAlignments, Real threshold_gdt);
71  map< string, Pose > poses_from_cmd_line(utility::vector1< std::string > const & fn_list);
72  vector1< SequenceAlignment > generateRankedAlignments(map <string,SequenceAlignment> & alns, Real THRESHOLD_FOR_E_VAL);
73  };
74 } // comparative_modeling
75 } // protocols
76 #endif
77