org.strbio.mol.lib
Class ScoreSippl90

java.lang.Object
  extended by org.strbio.mol.lib.ScoreSippl90
All Implemented Interfaces:
Description, ScoreFunction, ScoreSetup2

public class ScoreSippl90
extends java.lang.Object
implements ScoreFunction, ScoreSetup2, Description

A scoring function that uses Sippl's 90 parameters, with the frozen approximation.

  Version 1.2, 1/20/00 - added k restrictions
  Version 1.1, 1/12/00 - added self-test main()
  Version 1.0, 1/7/00 - original version
  

Version:
1.2, 1/20/00
Author:
JMC
See Also:
Sippl90

Field Summary
static java.lang.String defaultFile
          the default potential was parameterized using the 681 proteins from Chandonia & Karplus, 1999.
 int kHigh
          Highest k value to restrict scoring to, or 0 for no restrictions.
 int kLow
          Lowest k value to restrict scoring to, or 0 for no restrictions.
 
Constructor Summary
ScoreSippl90()
          initialize scoring system with default BackbonePotential.
ScoreSippl90(Sippl90 s90)
          initialize scoring system from a pre-initialized potential.
ScoreSippl90(java.lang.String filename)
          load potential in from a file.
 
Method Summary
 void describe(Printf outfile)
          This should print info about the object to an output file.
 void finished(Polymer s, Polymer f)
          This function is called when you are done using the function on a pair.
static void main(java.lang.String[] argv)
           
 void restrictK(int low, int high)
          Restrict scoring to a range of k values.
 double score(Monomer a, Monomer b)
          This function should return a score for aligning two monomers of a polymer, preferably with low = good, high = bad.
 double score(Residue a, Residue b)
          This is somewhat hard to read; it is written for speed.
 void setup(Polymer s, Polymer f)
          This function is to set up the scoring function for use on a pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kLow

public int kLow
Lowest k value to restrict scoring to, or 0 for no restrictions.


kHigh

public int kHigh
Highest k value to restrict scoring to, or 0 for no restrictions.


defaultFile

public static final java.lang.String defaultFile
the default potential was parameterized using the 681 proteins from Chandonia & Karplus, 1999.

See Also:
Constant Field Values
Constructor Detail

ScoreSippl90

public ScoreSippl90(java.lang.String filename)
load potential in from a file.

Parameters:
filename - file name

ScoreSippl90

public ScoreSippl90(Sippl90 s90)
initialize scoring system from a pre-initialized potential.


ScoreSippl90

public ScoreSippl90()
initialize scoring system with default BackbonePotential.

Method Detail

restrictK

public void restrictK(int low,
                      int high)
Restrict scoring to a range of k values. Ends of the ranges are included. Set either value to 0 for no limits on that end.


score

public double score(Monomer a,
                    Monomer b)
Description copied from interface: ScoreFunction
This function should return a score for aligning two monomers of a polymer, preferably with low = good, high = bad. If this is not the case, be sure to comment it as such! If monomer order matters to your scoring function, the first monomer should be from the sequence (unknown structure), and the second monomer should be from the fold (known structure).

Specified by:
score in interface ScoreFunction

score

public double score(Residue a,
                    Residue b)
This is somewhat hard to read; it is written for speed.


setup

public void setup(Polymer s,
                  Polymer f)
Description copied from interface: ScoreSetup2
This function is to set up the scoring function for use on a pair.

Specified by:
setup in interface ScoreSetup2

finished

public void finished(Polymer s,
                     Polymer f)
Description copied from interface: ScoreSetup2
This function is called when you are done using the function on a pair.

Specified by:
finished in interface ScoreSetup2

describe

public void describe(Printf outfile)
Description copied from interface: Description
This should print info about the object to an output file.

Specified by:
describe in interface Description

main

public static final void main(java.lang.String[] argv)