|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.mol.ThreadSet
public class ThreadSet
Class to keep track of two sets of proteins that are being used in threading algorithms.
Version 2.0, 11/12/02 - can load from 3DPSSM file Version 1.8, 1/30/1 - fixed bug where ASpc was printed as ASns Version 1.71, 8/28/00 - saveStrMatches follows .casp suffix Version 1.7, 4/11/00 - fixed bug where alignmentParameters2 was saying it was finished with a given sequence... had to be re-setup() Version 1.69, 12/7/99 - fixed bug in probabilityOfFindingMatch Version 1.68, 9/17/99 - added makeCATHStrMatches Version 1.67, 9/2/99 - added alignmentParameters2 Version 1.66, 7/14/99 - fixed API for globalCompare Version 1.65, 7/8/99 - added getEstPMatch Version 1.64, 6/25/99 - added calcEstPMatch function, moved gapModel and scoreList into alignmentParameters Version 1.63, 6/9/99 - added reciprocal weighted average Version 1.62, 6/3/99 - added median functions, fixed bug in definition of 'same sequence' Version 1.61, 3/31/99 - saves avg score with/out gaps Version 1.6, 2/26/99 - fixed to conform to new GapModel api Version 1.5, 2/22/99 - fixed to conform to new AlignmentSet api Version 1.4, 10/20/98 - added new Alignment format to loadStrMatches Version 1.33, 10/15/98 - added naildown alignment to loadStrMatches Version 1.32, 10/7/98 - added minareaInfoAll Version 1.31, 9/30/98 - added minareaInfo, removed 1.3 change Version 1.3, 9/28/98 - added ratio score output option to alignStrMatchesMinarea Version 1.22, 9/1/98 - don't let somebody add scoring function with zero weight, to minimize stupid errors Version 1.21, 7/22/98 - alignStrMatchesMinarea auto-renumbers polymers Version 1.2, 4/23/98 - uses PolymerSet, made everything double precision Version 1.1, 4/6/98 - added all functions from thread_set.cpp Version 1.0, 4/3/98 - original version
PolymerSet
,
Alignment
Field Summary | |
---|---|
AlignmentParameters |
alignmentParameters
Alignment parameters |
AlignmentParameters |
alignmentParameters2
Alignment parameters for evaluating alignment goodness in FR tests; Null means use same one as that used to generate the alignment. |
PolymerSet |
folds
Folds being threaded. |
PolymerSet |
seqs
Sequences being threaded. |
int |
tolerance
margin for error in evaluating alignments. |
Constructor Summary | |
---|---|
ThreadSet()
Initialize everything to default values. |
Method Summary | |
---|---|
void |
addStrMatch(AlignmentSet aSet)
add a single structural match to the set, created by the user |
AlignmentSet |
addStrMatch(Polymer seq,
Polymer fold)
add a single structural match to the set. |
void |
addStrMatch(java.lang.String seq_name,
java.lang.String fold_name,
java.lang.String correct_name,
java.lang.String nail_name)
add a single structural match to the set. |
void |
alignmentStats(Printf outfile)
compute stats on alignment. |
void |
alignStrMatches()
Calculated alignment for all structural matches, without printing anything. |
void |
alignStrMatches(Printf outfile,
boolean showAlignment,
boolean showModeller)
Aligns structural matches. |
void |
alignStrMatchesMinarea()
redo all structural matches using minarea, and save the results to a single file |
double[] |
ASns(int tolerance)
calculate alignment specificity, as in CASP2. |
double[] |
ASpc(int tolerance)
calculate alignment specificity, as in CASP2. |
double |
averageRank()
average rank of structural matches |
double |
averageRankRW()
average rank with reciprocal weighting |
double |
averageZ()
average z score of structural matches |
DVector |
calcMatchRank()
Calculate vector of ranks, showing one rank for each match. |
DVector |
calcMatchZ()
Calculate vector of z scores, showing one z score for each match. |
void |
clearSame()
Forget that seq-fold pairs have the same name. |
void |
clearScores()
forget about any alignments done so far. |
void |
clearStrMatches()
Deny all knowledge of structural matches. |
void |
copyCorrectFrom(ThreadSet ts)
Copy correct alignments from another threadSet to this one's calculated alignments. |
void |
findSameSeqs()
Find seq-fold pairs with the same name. |
DVector |
getEstPMatch(int i)
Get a DVector of estimated probabilities for one of the proteins in the seqs set, or null if this has not been calculated. |
IVector |
getSortedScores(int i)
Get an IVector of sorted probabilities for one of the proteins in the seqs set, from most to least likely, or null if this has not been calculated. |
AlignmentSet |
getStrMatch(int i)
Return a given structural match, or null if out of range. |
AlignmentSet |
getStrMatch(Polymer seq,
Polymer fold)
Get first structural match, if one exists, with a given seq and fold, or null if one doesn't exist. |
void |
globalCompare(Printf outfile,
boolean optZ,
boolean optN)
do global comparison of all sequences, showing scores and z-scores. |
boolean |
isMatch(int n,
int m)
is sequence N a known structural match for fold M? |
boolean |
isSame(int n,
int m)
is sequence N the same as fold M? |
int |
load3DPSSM(java.lang.String filename)
loads seqs, folds, and str matches from 3DPSSM output (mailbox of messages from server). |
int |
loadStrMatches(java.lang.String filename)
get structural matches from a file, with or without correct and naildown alignments. |
int |
makeAllStrMatches()
add all possible structural matches to the set. |
void |
makeCATHStrMatches()
make a set of StrMatches using CATH data. |
double |
medianRank()
median rank of structural matches |
double |
medianZ()
median z score of structural matches |
void |
minareaInfo(Printf outfile)
Show info on all structural matches. |
void |
minareaInfoAll(Printf outfile)
Show info on all seq/fold pairs. |
int |
nMatches()
How many structural matches do we know about? |
int |
nSame()
How many seq-fold pairs are the same? |
int |
numberFound(int cutoff)
number of structural matches in top N scores (cutoff) |
void |
oldAlignStrMatchesMinarea()
Deprecated. |
void |
optimizeAlignment(Printf outfile)
optimize the gap penalties for highest alignment accuracy. |
void |
optimizeASns(Printf outfile)
optimize the gap penalties for highest asns(1). |
void |
optimizeMedianRank(Printf outfile)
optimize the gap penalties for best median rank of known structural matches. |
void |
optimizeRank(Printf outfile)
optimize the gap penalties for best average rank of known structural matches. |
void |
optimizeRankRW(Printf outfile)
optimize the gap penalties for best reciprocal weighted average rank of known structural matches. |
void |
optimizeTopN(int n,
Printf outfile)
optimize the gap penalties for most correct structural matches in the top N. |
void |
optimizeZScore(Printf outfile)
optimize the gap penalties for highest average Z score among structural matches. |
double[] |
pctRight(int tolerance)
Returns pctRight for the structural matches. |
DVector |
probabilityOfFindingMatch()
Calculates confidence vector... this is a DVector of the length of the number of folds. |
void |
removeStrMatchesOver(double score)
Remove structural matches over a certain minarea score. |
void |
removeStrMatchesUnder(double score)
Remove structural matches under a certain minarea score. |
void |
saveEstAAStats(java.lang.String filename)
save the stats needed for alignment accuracy estimation to a file. |
void |
saveEstFRStats(java.lang.String filename)
save the stats needed for FR accuracy estimation to a file. |
void |
saveStrMatches(java.lang.String filename)
Save structural matches to a file. |
void |
saveStrMatchesModeller(java.lang.String filename)
Save structural matches to a modeller format file. |
void |
setHookeParameters(double rho,
double epsilon,
int itermax,
int iterstart)
used to set optimizing parameters for optimize* functions; these are the Hooke parameters. |
void |
showFRAll(Printf outfile)
show comparison results for all proteins. |
void |
showFRMatches(Printf outfile)
show comparison results for str matches. |
void |
showPMatch(Printf outfile)
shows probability of a structural match for various Z score ranges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PolymerSet seqs
public PolymerSet folds
public AlignmentParameters alignmentParameters
public AlignmentParameters alignmentParameters2
public int tolerance
Constructor Detail |
---|
public ThreadSet()
Method Detail |
---|
public final int nMatches()
public final boolean isMatch(int n, int m)
public final boolean isSame(int n, int m)
public final void copyCorrectFrom(ThreadSet ts)
public final int load3DPSSM(java.lang.String filename)
public final int loadStrMatches(java.lang.String filename)
public final void saveStrMatches(java.lang.String filename) throws java.io.IOException
java.io.IOException
public final void saveStrMatchesModeller(java.lang.String filename) throws java.io.IOException
java.io.IOException
public final void alignStrMatchesMinarea()
AlignmentSet.minareaAlign()
public final void oldAlignStrMatchesMinarea() throws java.io.IOException
java.io.IOException
AlignmentSet.minareaAlign()
public final void minareaInfo(Printf outfile) throws java.io.IOException
java.io.IOException
AlignmentSet.minareaInfo(org.strbio.io.Printf)
public final void minareaInfoAll(Printf outfile) throws java.io.IOException
java.io.IOException
AlignmentSet.minareaInfo(org.strbio.io.Printf)
public final void clearSame()
public final void findSameSeqs()
public final int nSame()
public final void addStrMatch(java.lang.String seq_name, java.lang.String fold_name, java.lang.String correct_name, java.lang.String nail_name)
public final void addStrMatch(AlignmentSet aSet)
public final AlignmentSet addStrMatch(Polymer seq, Polymer fold)
public final int makeAllStrMatches()
public final void makeCATHStrMatches()
public final void clearStrMatches()
public final void removeStrMatchesOver(double score)
public final void removeStrMatchesUnder(double score)
public final AlignmentSet getStrMatch(int i)
public final AlignmentSet getStrMatch(Polymer seq, Polymer fold)
public final void alignStrMatches(Printf outfile, boolean showAlignment, boolean showModeller) throws java.io.IOException
java.io.IOException
public final void alignStrMatches() throws java.io.IOException
java.io.IOException
public final double[] pctRight(int tolerance)
public final double[] ASpc(int tolerance)
public final double[] ASns(int tolerance)
public final void alignmentStats(Printf outfile)
public final void clearScores()
public final DVector getEstPMatch(int i)
public final IVector getSortedScores(int i)
public final void saveEstAAStats(java.lang.String filename) throws java.io.IOException
java.io.IOException
public final void saveEstFRStats(java.lang.String filename) throws java.io.IOException
java.io.IOException
public final void globalCompare(Printf outfile, boolean optZ, boolean optN) throws java.io.IOException
outfile
- show results hereoptZ
- don't calculate top N scoresoptN
- don't calculate Z scores
java.io.IOException
public final void showFRAll(Printf outfile) throws java.io.IOException
java.io.IOException
public final void showFRMatches(Printf outfile) throws java.io.IOException
java.io.IOException
public final int numberFound(int cutoff)
public final DVector calcMatchZ()
public final DVector calcMatchRank()
public final double averageZ()
public final double averageRank()
public final double medianRank()
public final double averageRankRW()
public final double medianZ()
public final DVector probabilityOfFindingMatch()
public final void showPMatch(Printf outfile) throws java.io.IOException
java.io.IOException
public void setHookeParameters(double rho, double epsilon, int itermax, int iterstart)
Hooke
public void optimizeAlignment(Printf outfile) throws java.io.IOException
java.io.IOException
public void optimizeASns(Printf outfile) throws java.io.IOException
java.io.IOException
public void optimizeZScore(Printf outfile) throws java.io.IOException
java.io.IOException
public void optimizeRank(Printf outfile) throws java.io.IOException
java.io.IOException
public void optimizeRankRW(Printf outfile) throws java.io.IOException
java.io.IOException
public void optimizeMedianRank(Printf outfile) throws java.io.IOException
java.io.IOException
public void optimizeTopN(int n, Printf outfile) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |