Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
frag_picker
VallProvider.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/frag_picker/VallProvider.hh
11
/// @brief reads a vall library and serves the data in chunks
12
/// @author Dominik Gront (dgront@chem.uw.edu.pl)
13
14
#ifndef INCLUDED_protocols_frag_picker_VallProvider_hh
15
#define INCLUDED_protocols_frag_picker_VallProvider_hh
16
17
// type headers
18
#include <
core/types.hh
>
19
#include <utility/pointer/ReferenceCount.hh>
20
21
// unit headers
22
#include <
protocols/frag_picker/VallProvider.fwd.hh
>
23
24
// package headers
25
#include <
protocols/frag_picker/VallChunk.hh
>
26
27
// mini headers
28
#include <
core/sequence/SequenceProfile.hh
>
29
// AUTO-REMOVED #include <utility/vector1.hh>
30
#include <
core/pose/Pose.hh
>
31
32
// AUTO-REMOVED #include <string>
33
34
namespace
protocols {
35
namespace
frag_picker {
36
37
/// @brief a vector of vall chunks
38
class
VallProvider
:
public
utility::pointer::ReferenceCount
{
39
public
:
40
41
/// @brief
42
VallProvider
() {
43
cached_profile_id_
=
""
;
44
cached_pose_id_
=
""
;
45
largest_chunk_size_
= 0;
46
}
47
virtual
~VallProvider
();
48
49
/// @brief Vall reader
50
/// THe defaults should ensure that the file is fully read if startline and endline ar not specified. endline = 0 means read to the end.
51
Size
vallChunksFromLibrary
(
std::string
const
&
filename
,
Size
startline = 1,
Size
endline = 0 );
52
53
Size
vallChunksFromLibraries
(
utility::vector1< std::string >
const
& fns );
54
55
/// @brief Runs through the Vall and stores number of lines
56
Size
vallNumLines
(
std::string
const
&
filename
);
57
58
/// @brief says how many chunks do we have
59
inline
Size
size
() {
60
return
chunks_
.size();
61
}
62
63
/// @brief returns a certain chunk (starts from 1)
64
inline
VallChunkOP
at
(
Size
index) {
65
return
chunks_
.at(index);
66
}
67
68
/// @brief adds a new chunk to this provider
69
inline
void
push_back
(
VallChunkOP
what) {
70
return
chunks_
.push_back(what);
71
}
72
73
/// @brief says what is the length of the largest chunk known to this
74
/// provider
75
inline
Size
get_largest_chunk_size
() {
76
return
largest_chunk_size_
;
77
}
78
79
/// @brief tries to find a chunk defined by PDB id, chain id and a residue
80
/// sequence id @detailed If this VallProvider does not contain a desired
81
/// chunk, 0 is returned.
82
VallChunkOP
find_chunk
(
std::string
,
char
,
Size
);
83
84
/// @brief cache a sequence profile for a given chunk
85
core::sequence::SequenceProfileOP
cache_profile
(
VallChunkOP
source_chunk);
86
87
///@brief cache a pose for a given chunk
88
core::pose::PoseOP
cache_pose
(
VallChunkOP
source_chunk);
89
90
private
:
91
utility::vector1<VallChunkOP>
chunks_
;
92
Size
largest_chunk_size_
;
93
std::string
cached_profile_id_
;
94
core::sequence::SequenceProfileOP
cached_profile_
;
95
core::pose::PoseOP
cached_pose_
;
96
std::string
cached_pose_id_
;
97
std::string
poly_A_seq_
;
98
};
99
100
}
// frag_picker
101
}
// protocols
102
103
104
#endif
/* INCLUDED_protocols_frag_picker_VallProvider_HH */
Generated on Sat Jun 1 2013 11:53:09 for Rosetta 3.5 by
1.8.4