Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WeightedFragmentSmoothTrialMover.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 /// @brief Fragment insertion and trial, each residue has a customized weight for the frequency of insertion
12 /// @author David Kim, Yifan Song
13 
14 #ifndef INCLUDED_protocols_hybridization_WeightedFragmentSmoothTrialMover_hh
15 #define INCLUDED_protocols_hybridization_WeightedFragmentSmoothTrialMover_hh
16 
19 #include <protocols/moves/Mover.hh>
20 
21 #include <core/fragment/FragSet.hh>
22 #include <core/fragment/Frame.hh>
24 #include <core/types.hh>
25 #include <basic/prof.hh>
26 
27 #include <numeric/random/WeightedSampler.hh>
28 #include <numeric/random/random.hh>
29 #include <utility/vector1.fwd.hh>
30 #include <utility/vector1.hh>
31 
32 //// C++ headers
33 #include <cstdlib>
34 #include <string>
35 
36 namespace protocols {
37 namespace hybridization {
38 
40 {
41 public:
44  utility::vector1< core::Real > const residue_weights,
45  utility::vector1< core::Size > const anchor_residues,
46  core::Size const nr_frags,
48  );
49  void update_sampler_weights( utility::vector1< core::Real > const residue_weights );
50 
51  void apply(core::pose::Pose & pose);
52  std::string get_name() const;
55 private:
58  utility::vector1< Size > anchor_reses_; // list of residue indices
59  core::Size nr_frags_; // number of fragments to use per frame (1 to this number), if 0, use all
62 
63  // choose randomly fragments that are below cutoff_
65 };
66 
67 } // hybridization
68 } // protocols
69 
70 #endif