Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.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/grafting/util.hh
11 /// @brief Header for grafting utility functions.
12 /// @author Jared Adolf-Bryfogle (jadolfbr@gmail.com)
13 /// @author Steven Lewis (smlewi@gmail.com)
14 
15 
16 #ifndef INCLUDED_protocols_grafting_util_hh
17 #define INCLUDED_protocols_grafting_util_hh
18 
19 #include <core/pose/Pose.hh>
20 
21 
22 namespace protocols {
23 namespace grafting {
24 using core::pose::Pose;
25 using core::Size;
26 
27 
28 ///@brief Deletes a region of the pose. Starting from and including 'start' and 'end' residue.
29 void
30 delete_region(Pose & pose, Size const start, Size const end);
31 
32 ///@brief Returns a region of the pose including start and end as a new pose. Has a simple foldtree.
33 Pose
34 return_region(Pose & pose, Size const start, Size const end);
35 
36 ///@brief replaces residues from from_pose to to_pose into pose where insertion region is defined. Returns product as a new value.
37 Pose
38 replace_region(Pose const & from_pose, Pose const & to_pose, Size const from_pose_start_residue, Size const to_pose_start_residue, Size const insertion_length);
39 
40 ///@author Steven Lewis smlewi@gmail.com
41 ///@brief inserts one pose into another pose, returning the product as a new value.
42 ///@details Nter->Cter. Coordinates and dihedrals of insert are unchanged.
43 ///@details Begins insertion AFTER insert point.
44 
45 Pose
46 insert_pose_into_pose(Pose const & scaffold_pose, Pose const & insert_pose, Size const insert_point, Size const insert_point_end);
47 
48 }//namespace grafting
49 }//namespace protocols
50 
51 
52 #endif //INCLUDED_protocols_grafting_util_hh
53