Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
selection.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 src/core/pose/selection.hh
11 /// @brief selcetion of pose residues
12 /// @author Sarel Fleishman (sarelf@u.washington.edu), Jacob Corn (jecorn@u.washington.edu), Rocco Moretti (rmoretti@u.washington.edu), Eva-Maria Strauch (evas01@uw.edu) willsheffler@gmail.com
13 
14 #ifndef INCLUDED_core_pose_selection_hh
15 #define INCLUDED_core_pose_selection_hh
16 
17 // Unit headers
18 
19 // Project Headers
20 #include <core/pose/Pose.fwd.hh>
21 #include <core/types.hh>
22 // Utillity Headers
23 #include <utility/tag/Tag.fwd.hh>
24 #include <utility/vector1.fwd.hh>
25 
26 // C++ headers
27 #include <string>
28 #include <set>
29 
30 #include <utility/vector1.hh>
31 
32 
33 namespace core {
34 namespace pose {
35 
37 get_resnum( utility::tag::TagPtr const tag_ptr, core::pose::Pose const & pose, std::string const & prefix="" );
38 
39 /// @brief Extracts a residue number from a string.
40 /// @detail Recognizes two forms of numbering:
41 /// - Rosetta residue numbers (numbered sequentially from 1 to the last residue
42 /// in the pose). These have the form [0-9]+
43 /// - PDB numbers. These have the form [0-9]+[A-Z], where the trailing letter
44 /// is the chain ID.
45 /// @return the rosetta residue number for the string, or 0 upon an error
47 parse_resnum(std::string const& resnum, core::pose::Pose const& pose);
48 
49 /// @brief Extracts a list of residue numbers from a tag.
50 /// @details The tag should contain a comma-separated list of numbers, in either
51 /// pdb or rosetta format (@see parse_resnum for details)
53 get_resnum_list(utility::tag::TagPtr const tag_ptr, std::string const& tag, core::pose::Pose const& pose);
54 
55 /// @brief returns a resnum list directly from a string
56 std::set< core::Size >
57 get_resnum_list( std::string const str, core::pose::Pose const & pose );
58 
59 /// @brief returns a resnum list directly from a string, preserving order
62 
63 
64 } // pose
65 } // core
66 
67 
68 #endif /*INCLUDED_protocols_RosettaScripts_util_HH*/