Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DPScoringScheme.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 DPScoringScheme.hh
11 /// @brief class definition for a profile-profile scoring scheme for
12 /// comparing two sequence profiles using the DP city-block distance.
13 /// @detailed Simply based on comparing single profiles from two protein
14 /// sequences by computing the sum of P(A) - P(B) for all matching probabilities
15 /// in the profiles A and B. Also includes with affine gap penalties of the form
16 /// penalty = A + Bk, where A represents the penalty for starting a gap, and B
17 /// represents the penalty for extending a previously opened gap by k
18 /// characters.
19 /// @author James Thompson
20 
21 #ifndef INCLUDED_core_sequence_DPScoringScheme_hh
22 #define INCLUDED_core_sequence_DPScoringScheme_hh
23 
24 #include <core/types.hh>
27 
28 namespace core {
29 namespace sequence {
30 
32 public:
33 
34  /// @brief ctor
36  Real open = -4,
37  Real extend = -1
38  )
39  {
40  gap_open ( open );
41  gap_extend( extend );
42  type("DP");
43  }
44 
46  return new DPScoringScheme(
47  gap_open(),
48  gap_extend()
49  );
50  }
51 
52  /// @brief dtor
53  virtual ~DPScoringScheme() {}
54 
55  virtual Real score( SequenceOP seq1, SequenceOP seq2, Size pos1, Size pos2 );
56 }; // class DPScoringScheme
57 
58 } // sequence
59 } // core
60 
61 #endif