|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GapModel
Interface for gap penalties for alignment. Default versions of some functions are given in GapModelAdapter.
Version 1.1, 7/1/99 - changed describeBriefly to printParameters, moved describe() to org.strbio.io.Describable interface Version 1.0, 2/25/99 - original version
Method Summary | |
---|---|
void |
finished(Polymer seq,
Polymer fold)
Do anything after align/comparison? |
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. |
boolean |
isEndGapFoldOK()
See if aligning the end of the fold vs a gap is OK (not penalized) |
boolean |
isEndGapSeqOK()
See if aligning the end of the sequence vs a gap is OK (not penalized) |
void |
printParameters(Printf outfile)
Briefly print the gap parameters, for inclusion in a line of output. |
void |
processGlobalMatrix(float[][] mat,
int[][] nextX,
int[][] nextY,
Polymer seq,
Polymer fold)
This function is given a sequence and fold being aligned in a global alignment, and a S+1 x F+1 matrix containing the scores for aligning each monomer in the sequence to each monomer in the fold. |
void |
setOptimizableParameters(double[] x)
set all the optimizable (double) parameters from a vector. |
void |
setup(Polymer seq,
Polymer fold)
Perform any last minute setup before align/comparison. |
Method Detail |
---|
boolean isEndGapFoldOK()
boolean isEndGapSeqOK()
void setup(Polymer seq, Polymer fold)
void finished(Polymer seq, Polymer fold)
double gapCostDeletion(Polymer seq, Polymer fold, int seqi, int seqj, int foldi, int foldj)
seq: i.....j fold: ixxxxxj
double gapCostInsertion(Polymer seq, Polymer fold, int seqi, int seqj, int foldi, int foldj)
seq: ixxxxxj fold: i.....j
void processGlobalMatrix(float[][] mat, int[][] nextX, int[][] nextY, Polymer seq, Polymer fold)
void printParameters(Printf outfile)
double[] getOptimizableParameters()
void setOptimizableParameters(double[] x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |