Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SequenceCouplingConstraint.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 protocols/constraints_additional/SequenceCouplingConstraint.hh
11 /// @brief This is a constraint that refers to a core::sequence::SequenceCoupling? in order to influence the scoring of amino acid types based on multiple sequence alignments (i.e. for biasing amino acid choices during design).
12 /// @author HetuKamisetty
13 
14 #ifndef INCLUDED_protocols_constraints_additional_SequenceCouplingConstraint_hh
15 #define INCLUDED_protocols_constraints_additional_SequenceCouplingConstraint_hh
16 
19 
20 // AUTO-REMOVED #include <core/chemical/AA.hh>
21 // AUTO-REMOVED #include <core/sequence/SequenceCoupling.hh>
22 
23 // AUTO-REMOVED #include <utility/vector1.hh>
24 
26 #include <core/id/AtomID.hh>
27 #include <utility/vector1.hh>
28 
29 
30 namespace protocols {
31 namespace constraints_additional {
32 
33 ///@brief
35 public:
46 
47 public:
48 
50 
52  Pose const &,
53  core::Size,
54  core::Size,
55  SequenceCouplingOP profile = NULL
56  );
57 
59  core::Size,
60  core::Size,
61  SequenceCouplingOP profile = NULL
62  );
63 
65 
66  virtual ConstraintOP clone() const;
67 
68  virtual std::string type() const { return "SequenceCoupling"; }
69 
70  ///@brief used by ConstraintIO and ConstraintFactory to construct this constraint from a input file stream (constraint file)
71  virtual void
72  read_def(
73  std::istream &,
74  Pose const &,
75  FuncFactory const &
76  );
77 
78  virtual void show_def( std::ostream &, Pose const & ) const;
79 
80  virtual void show( std::ostream & out ) const;
81 
82  core::Size seqpos1() const { return seqpos1_; }
83  core::Size seqpos2() const { return seqpos2_; }
84 
88 
89  virtual core::Size natoms() const { return 0; };
90  virtual AtomID const & atom( Size const ) const {
91  utility_exit_with_message("SequenceCouplingConstraint is not atom-based!.");
92  return core::id::BOGUS_ATOM_ID; // required for compilation on Windows
93  }
94 
96 
97  //virtual ConstraintOP remap_resid( SequenceMapping const & ) const;
98 
99  virtual void
100  score(
101  XYZ_Func const &,
102  EnergyMap const &,
103  EnergyMap &
104  ) const;
105 
106  virtual void
107  fill_f1_f2(
108  AtomID const &,
109  XYZ_Func const &,
110  core::Vector &,
111  core::Vector &,
112  EnergyMap const &
113  ) const;
114 
115 private:
119 };
120 
121 
122 } // namespace constraints_additional
123 } // namespace protocols
124 
125 #endif // INCLUDED_protocols_constraints_additional_SequenceCouplingConstraint_HH