Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CyanaModule.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 FragmentSampler.cc
11 /// @brief ab-initio fragment assembly protocol for proteins
12 /// @detailed
13 /// Contains currently: Classic Abinitio
14 ///
15 ///
16 /// @author Oliver Lange
17 
18 // Unit Headers
20 
21 // Package Headers
26 
27 // Project Headers
29 #include <core/pose/Pose.hh>
30 
31 // for switching residue type set to centroid
32 
34 
35 // Utility headers
36 #include <basic/Tracer.hh>
37 
38 //// C++ headers
39 #include <math.h> //for isnan
40 
41 static basic::Tracer tr("protocols.noesy_assign.NoesyModule");
42 
43 using core::Real;
44 using namespace core;
45 using namespace basic;
46 //using namespace basic::options;
47 //using namespace basic::options::OptionKeys;
48 
49 namespace protocols {
50 namespace noesy_assign {
51 
52 NoesyModule::NoesyModule( std::string const& fasta_sequence ) :
53  crosspeaks_( NULL ),
54  resonances_( new ResonanceList( fasta_sequence ) )
55 {
56  utility::io::izstream input_file(basic::options::option[ basic::options::OptionKeys::r ]() );
57  utility::io::ozstream output_file( basic::options::option[ basic::options::OptionKeys::ro ]() );
58  if ( input_file.good() ) {
59  resonances->read_from_stream( input_file );
60  resonances->write_to_stream( output_file );
61  } else {
62  tr.Error << "cannot read " << basic::options::option[ basic::options::OptionKeys::r ]() << std::endl;
63  }
64 
65 }