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
simple_filters
PalesEvaluator.cc
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 PoseEvaluator
11
/// @brief PoseEvaluator
12
/// @detailed
13
///
14
///
15
/// @author Nikolas Sgourakis
16
17
18
19
// Unit Headers
20
#include <
protocols/simple_filters/PalesEvaluator.hh
>
21
22
// Package Headers
23
24
// Project Headers
25
#include <
core/io/silent/SilentStruct.hh
>
26
#include <
core/pose/Pose.hh
>
27
28
// AUTO-REMOVED #include <basic/options/option.hh>
29
// AUTO-REMOVED #include <basic/options/keys/evaluation.OptionKeys.gen.hh>
30
31
32
// ObjexxFCL Headers
33
// AUTO-REMOVED #include <ObjexxFCL/string.functions.hh>
34
35
// Utility headers
36
#include <basic/Tracer.hh>
37
#include <utility/exit.hh>
38
// AUTO-REMOVED #include <utility/file/file_sys_util.hh>
39
40
#include <utility/vector1.hh>
41
42
// C++ headers
43
#ifdef __native_client__
44
#define system(a) 1
45
#endif
46
47
static
basic::Tracer
tr
(
"protocols.simple_filter.PalesEvaluator"
);
48
49
namespace
protocols {
50
namespace
simple_filters {
51
52
using namespace
core;
53
54
55
56
PalesEvaluator::PalesEvaluator
(
std::string
tag,
std::string
pales_rdc_file )
57
:
ExternalEvaluator
( tag )
58
{
59
#ifdef WIN32
60
utility_exit_with_message(
"don't use PalesEvaluator on a BillBox"
);
61
#endif
62
// if (!utility::file::file_exists( scratch_dir()+"/SPARTA" ) ) {
63
// std::string command( "cp -Rf $HOME/SPARTA "+scratch_dir());
64
std::string
command(
"rsync -azvu $HOME/pales "
+
scratch_dir
());
65
int
ret(system(command.c_str()));
66
if
( ret ){
67
utility_exit_with_message(
"System command failed:'"
+ command +
"'"
);
68
}
69
70
71
// std::string command2( "rsync -azvu $HOME/scripts/calculate_pales_rms.pl "+scratch_dir());
72
// int ret2(system(command2.c_str()));
73
//if( ret2 ){
74
//utility_exit_with_message("System command failed:'" + command2 + "'" );
75
// }
76
77
//}
78
set_command
(
scratch_dir
()+
"/pales -inD "
+pales_rdc_file+
" -pdb __POSE.pdb -stPAles -wv 0.05 | grep \"DATA RMS\" |awk '{print $3}' > __RESULT"
);
79
}
80
81
bool
PalesEvaluator::applicable
(
pose::Pose
const
& pose )
const
{
82
return
pose.
is_fullatom
();
83
}
84
85
86
}
87
}
Generated on Sat Jun 1 2013 12:13:47 for Rosetta 3.5 by
1.8.4