Skip to content

Commit

Permalink
Merge pull request #1533 from RosettaCommons/rfalford12/extend-mpdock…
Browse files Browse the repository at this point in the history
…-rscript-interface

Extend the MPDock parse_my_tag function

Add options to MPDock's parse_my_tag to set alternate low & high resolution score functions from the RosettaScripts interface

Old repository SHA1: f7ed5793479fe7814557fb0423e4be40f4b4d9ab
  • Loading branch information
rfalford12 authored Aug 16, 2016
1 parent b1a792c commit de15c84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/src/protocols/docking/membrane/MPDockingMover.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ MPDockingMover::parse_my_tag(
core::pose::Pose const &
) {

using namespace core::scoring;
using namespace std;

// Set weights for the low & high resolution score functions from the command line
if ( tag->hasOption( "cen_sfxn_weights" ) ) {
lowres_scorefxn_ = ScoreFunctionFactory::create_score_function( tag->getOption< string >( "cen_sfxn_weights" ) );
}

if ( tag->hasOption( "fa_sfxn_weights" ) ) {
highres_scorefxn_ = ScoreFunctionFactory::create_score_function( tag->getOption< string >( "fa_sfxn_weights" ) );
}

// Read in membrane center & normal
if ( tag->hasOption( "center" ) ) {
std::string center = tag->getOption< std::string >( "center" );
Expand Down

0 comments on commit de15c84

Please sign in to comment.