Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WeightedFragmentTrialMover.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 Yifan Song
13 
14 #ifndef INCLUDED_protocols_hybridization_WeightedFragmentTrialMover_hh
15 #define INCLUDED_protocols_hybridization_WeightedFragmentTrialMover_hh
16 
18 
19 #include <protocols/moves/Mover.hh>
20 
21 #include <core/fragment/FragSet.hh>
22 
23 #include <numeric/random/WeightedSampler.hh>
24 
25 namespace protocols {
26 namespace hybridization {
27 
29 {
30 public:
33  utility::vector1< core::Real > const residue_weights,
35  core::Size const nr_frags = 0
36  );
37  void update_sampler_weights( utility::vector1< core::Real > const residue_weights );
38 
39  void apply(core::pose::Pose & pose);
40  std::string get_name() const;
43 private:
46  utility::vector1< Size > anchor_reses_; // list of residue indices
47  core::Size nr_frags_; // number of fragments to use per frame (1 to this number), if 0, use all
49 };
50 
51 } // hybridization
52 } // protocols
53 
54 #endif