Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
useful_code.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  // This loops over a rotamer set and dumps each rotamer as it's own separate pdb
11  for( core::Size z(1); z <= rotset->num_rotamers(); ++z ) {
12  core::pose::Pose posetest2;
13  posetest2.append_residue_by_jump( *(rotset->nonconst_rotamer(z)), 1);
14  std::stringstream pose_test_name;
15  pose_test_name << "ROTAMERmu_f" << z << ".pdb";
16  core::io::pdb::dump_pdb(posetest2, pose_test_name.str() );
17  }
18 
19 // Makes a ResidueOP of whatever type is specified
21 
22 // Displays the mainchain torsions for this residue
23 std::cout<< "Residue name: " << (new_rots_[i])->name() << std::endl;
24 utility::vector1<Real> mainchains((new_rots_[i])->mainchain_torsions() );
25 for( Size v(1); v <= mainchains.size(); ++v) {
26  std::cout << "Mainchain torsion #" << v << " is " << mainchains[v] << std::endl;
27 }