Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
annotated_sequence.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 core/pose/annotated_sequence.cc
11 /// @brief utility functions for making poses from sequences
12 /// @author P. Douglas Renfrew
13 /// @author Sam Deluca
14 /// @author Labonte (carbohydrate versions)
15 
16 #ifndef INCLUDED_core_pose_annotated_sequence_hh
17 #define INCLUDED_core_pose_annotated_sequence_hh
18 
19 // Headers
20 #include <core/types.hh>
21 #include <core/pose/Pose.fwd.hh>
24 
25 #include <string>
26 
27 #include <utility/vector1.hh>
28 
29 
30 namespace core {
31 namespace pose {
32 
33 /// @brief return a list of ResidueTypes corresponding to an annotated protein sequence
34 /// @param[in] sequence_in an annotated sequence
35 /// @param[in] residue_set the desired residue set
36 /// @param[in] auto_termini mark position 1, last_residue with lower, upper termini; default true
38  std::string const & sequence_in,
39  chemical::ResidueTypeSet const & residue_set,
40  bool const auto_termini = true
41 );
42 
43 
44 /// @brief Return a list of carbohydrate ResidueTypes corresponding to an annotated polysaccharide sequence.
46  chemical::ResidueTypeSet const & residue_set);
47 
48 
49 /// @brief Creates a Pose from the annotated protein sequence <sequence>
50 /// with ResidueTypeSet <residue_set> and stores it in <pose>
51 /// @note: any existing data in <pose> is cleared, auto_termini
52 /// mark position 1, last_residue with lower, upper termini; default true
53 ///
54 /// example(s):
55 /// make_pose_from_sequence(pose,"THANKSEVAN","fa_standard")
56 /// See also:
57 /// Pose
58 /// PDBInfo
59 /// pose_from_pdb
60 /// pose_from_rcsb
61 /// pose_from_sequence
63  pose::Pose & pose,
64  std::string const & sequence,
65  chemical::ResidueTypeSet const & residue_set,
66  bool const auto_termini = true
67 );
68 
69 /// @brief Creates a Pose from the annotated protein sequence <sequence>
70 /// with the desired <type_set_name> and stores it in <pose>
71 /// @note: any existing data in <pose> is cleared, auto_termini
72 /// mark position 1, last_residue with lower, upper termini; default true
74  pose::Pose & pose,
75  std::string const & sequence,
76  std::string const & type_set_name,
77  bool const auto_termini = true
78 );
79 
80 
81 /// @brief Create a Pose from an annotated polysaccharide sequence <sequence> with ResidueTypeSet <residue_set> and
82 /// stores it in <pose>.
84  std::string const & sequence,
85  chemical::ResidueTypeSet const & residue_set,
86  bool const auto_termini = true);
87 
88 /// @brief Create a Pose from an annotated polysaccharide sequence <sequence> with residue type set name
89 /// <type_set_name> and stores it in <pose>.
91  std::string const & sequence,
92  std::string const & type_set_name = "fa_standard",
93  bool const auto_termini = true);
94 
95 /// @brief Return a Pose from an annotated polysaccharide sequence <sequence> with residue type set name
96 /// <type_set_name>.
98  std::string const & type_set_name = "fa_standard",
99  bool const auto_termini = true);
100 
101 
102 /// @brief Returns the oneletter_sequence that corresponds to the given
103 /// annotated sequence.
105  std::string const & annotated_seq
106 );
107 
108 
109 } // namespace core
110 } // namespace pose
111 
112 #endif // INCLUDED_core_pose_annotated_sequence_HH