|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strbio.mol.lib.GapModelAdapter
org.strbio.mol.lib.GapConstant
org.strbio.mol.lib.GapAffine
org.strbio.mol.lib.GapDistanceDependent
public class GapDistanceDependent
Distance dependent gap penalties. (cost = gapI + (n-1) * gapE)
Version 1.1, 7/1/99 - conforms to GapModel 1.1 interface Version 1.0, 2/25/99 - original version
| Field Summary | |
|---|---|
double |
gapD
Distance penalty. |
| Fields inherited from class org.strbio.mol.lib.GapAffine |
|---|
gapE |
| Fields inherited from class org.strbio.mol.lib.GapConstant |
|---|
endGapFoldOK, endGapSeqOK, gapI |
| Constructor Summary | |
|---|---|
GapDistanceDependent(double gapi,
double gape,
double gapd)
Set the penalties. |
|
GapDistanceDependent(double gapi,
double gape,
double gapd,
boolean seqEndGapOK,
boolean foldEndGapOK)
Set the penalties. |
|
| Method Summary | |
|---|---|
void |
describe(Printf outfile)
the default function describes only ends. |
void |
describeBriefly(Printf outfile)
|
void |
finished(Polymer seq,
Polymer fold)
Forget about distance matrix. |
double |
gapCostDeletion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
This function should return the gap cost for aligning residues seqi and foldi, then seqj and foldj. |
double |
gapCostInsertion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
This function should return the gap cost for aligning residues seqi and foldi, then seqj and foldj. |
double[] |
getOptimizableParameters()
get all the optimizable (double) parameters as a vector. |
void |
processGlobalMatrix(float[][] mat,
int[][] nextX,
int[][] nextY,
Polymer seq,
Polymer fold)
This function is optimized for gap penalties which are affine in only 1 direction, and have to be fully looked at in the other direction. |
void |
setOptimizableParameters(double[] x)
set all the optimizable (double) parameters from a vector. |
void |
setup(Polymer seq,
Polymer fold)
Calculate distance matrix. |
| Methods inherited from class org.strbio.mol.lib.GapAffine |
|---|
printParameters |
| Methods inherited from class org.strbio.mol.lib.GapConstant |
|---|
isEndGapFoldOK, isEndGapSeqOK |
| Methods inherited from class org.strbio.mol.lib.GapModelAdapter |
|---|
calculateFirstPosition, dealWithEndPenalties, describeEnds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double gapD
| Constructor Detail |
|---|
public GapDistanceDependent(double gapi,
double gape,
double gapd)
public GapDistanceDependent(double gapi,
double gape,
double gapd,
boolean seqEndGapOK,
boolean foldEndGapOK)
| Method Detail |
|---|
public void setup(Polymer seq,
Polymer fold)
setup in interface GapModelsetup in class GapModelAdapter
public void finished(Polymer seq,
Polymer fold)
finished in interface GapModelfinished in class GapModelAdapter
public double gapCostDeletion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
GapModel
seq: i.....j
fold: ixxxxxj
gapCostDeletion in interface GapModelgapCostDeletion in class GapAffine
public double gapCostInsertion(Polymer seq,
Polymer fold,
int seqi,
int seqj,
int foldi,
int foldj)
GapModel
seq: ixxxxxj
fold: i.....j
gapCostInsertion in interface GapModelgapCostInsertion in class GapAffine
public void processGlobalMatrix(float[][] mat,
int[][] nextX,
int[][] nextY,
Polymer seq,
Polymer fold)
processGlobalMatrix in interface GapModelprocessGlobalMatrix in class GapAffinepublic void describe(Printf outfile)
GapModelAdapter
describe in interface Descriptiondescribe in class GapAffinepublic void describeBriefly(Printf outfile)
describeBriefly in class GapConstantpublic double[] getOptimizableParameters()
getOptimizableParameters in interface GapModelgetOptimizableParameters in class GapAffinepublic void setOptimizableParameters(double[] x)
setOptimizableParameters in interface GapModelsetOptimizableParameters in class GapAffine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||