|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.strbio.mol.PolymerSet
org.strbio.mol.ProteinSet
org.strbio.mol.ProfileSet
org.strbio.mol.lib.pred2ary.PCPSet
org.strbio.mol.lib.pred2ary.TPSet
public class TPSet
Class to represent a set of profiles being used in 2ary structure prediction; this might be either a training or prediction set.
Version 1.2, 6/7/99 - moved to org.strbio.mol.lib.pred2ary Version 1.12, 8/20/98 - moved translateEA() to protein. Version 1.11, 8/17/98 - changed some fatal() to exceptions. Version 1.1, 5/20/98 - added more ways to getNetworkStats Version 1.0, 5/12/98 - adapted from 2ary_set.cpp
PredClassProfile
,
Serialized FormNested Class Summary | |
---|---|
static class |
TPSet.NetVars
Class with variables used to configure the neural nets. |
Nested classes/interfaces inherited from class org.strbio.mol.PolymerSet |
---|
PolymerSet.PolymerEnumeration |
Field Summary | |
---|---|
static boolean |
CLASS_2ARY
turn on the 3 inputs with predicted secondary structure percentages and predicted number of alternations between helix and sheet. |
static boolean |
CLASS_AA
set these to determine exactly what sort of class network to use note that the "sequence length" input is always on. |
static boolean |
CLASS_STRONG
turn on the 2 inputs with "strong" secondary structure predictions. |
SimMatrix |
CSM
|
CorrectMatrix[] |
CSM1
|
double |
cutoff_2ary
|
double[] |
cutoff_class
|
double |
cutoff_lvl2
|
int |
nstats
|
SimMatrix |
r_SM
|
SimMatrix |
SM
|
static boolean |
USE_LENGTH_INFO
Set this to allow the class prediction algorith to know the length rules without learning them from the training set. |
TPSet.NetVars |
vars
|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
TPSet()
|
|
TPSet(TPSet q)
|
Method Summary | |
---|---|
void |
addSM(TPSet x)
|
void |
clear()
Clear out all information in the set. |
void |
clearSM()
|
void |
compute2arySM(int which,
int sample)
compute SM for a set. |
void |
computeClassSM()
compute CSM for a set |
void |
copyLvl1HE()
copy lvl1 predictions for all proteins in set |
void |
copyUnreducedStats(int sample)
copy unreduced predictions for all proteins in set |
void |
deleteSM()
|
void |
estAccy(IMatrix ea_h,
IMatrix ea_e,
IMatrix ea_c)
estimate accuracy, replacing h, e, predStructure, and the SM matrices |
void |
estAccyCount(IMatrix ea_h,
IMatrix ea_e,
IMatrix ea_c)
make count matrices for est_accy |
double |
fcut2ary(NeuralNet net,
int sample,
Printf outfile)
find best 2ary cutoff |
void |
fcutClass(NeuralNet cnet4,
NeuralNet[] cnet1,
Printf outfile)
find cutoff, and compute class stats |
double |
fcutLvl2(NeuralNet net,
int sample,
Printf outfile)
find cutoff, and compute stats on a training set. |
void |
filterPred()
filter out short predictions |
void |
findInputs()
find class inputs for all proteins in set |
java.lang.String |
name2ary(int i)
return name of various types of 2ary str |
void |
newSM(int x)
make/delete stats for all proteins in a set |
void |
predict2ary(NeuralNet net,
int sample,
Printf outfile)
do a 2ary prediction |
void |
predict2aryHE(NeuralNet net)
Predict level 1 H and E using network. |
void |
predictClass(NeuralNet cnet4,
NeuralNet[] cnet1,
Printf outfile)
do class prediction |
void |
predictClassDirectly(Printf outfile)
do class prediction directly from 2ary prediction |
void |
predictClassRaw(NeuralNet cnet4,
NeuralNet[] cnet1)
predict class using both 4-output and 1-output networks. |
void |
predictLvl2(NeuralNet net,
int sample,
Printf outfile)
do a prediction |
void |
predictLvl2HE(NeuralNet net)
do level 2 prediction |
void |
print2ary(Printf outfile,
int sample)
|
void |
print2aryByClass(Printf outfile)
|
void |
print2aryStats(Printf outfile)
|
void |
print2aryUnreduced(Printf outfile)
|
void |
printClass(Printf outfile)
|
void |
printClassStats(Printf outfile)
|
void |
printDirectClassPrediction(Printf outfile)
|
void |
printDirectClassStats(Printf outfile)
|
void |
smooth(int num)
smooth h and e |
void |
translate2ary()
translate he to predictions |
void |
translateClass()
saved net outputs -> class predictions |
void |
translateEA()
|
Methods inherited from class org.strbio.mol.lib.pred2ary.PCPSet |
---|
addClassPred, addPred, addPred, addPredToArray, clearClassPred, clearPred, combine, divideClassPred, dividePred, loadClassPred, loadPred, newPolymer, newPolymer, pcp, predDiffs, saveClassPred, savePred |
Methods inherited from class org.strbio.mol.ProfileSet |
---|
blast, blast, write, writeClustal, writeClustal, writeMSF, writeMSF, writeProf, writeProf, writeSAF, writeSAF, writeTDP |
Methods inherited from class org.strbio.mol.ProteinSet |
---|
findDSSP, findPDB, fixDistanceGaps, predictSS, predictSS, protein, residues, thread, thread, writeCASP, writeCASP, writeConv, writeConv, writeEA, writeEA, writePDB, writePDB, writePDB, writePDB, writeVar2, writeVar2 |
Methods inherited from class org.strbio.mol.PolymerSet |
---|
add, add, add, addReversedCopies, clearPolymers, clearProperties, clearProperty, ensureNames, findClosest, getNames, getPropertyAll, getPropertyOne, isEqual, keepOnlyChainID, keepOnlyNames, keepOnlyNamesFuzzy, load, n, nMonomers, noSpaceNames, nPolymersInFile, p, polymer, polymers, polymersInFile, polymersInFile, polymersInFile, polymersInFile, printNames, read, read, read, readList, remove, remove, removeRedundantSequences, save, searchByName, searchByNameFuzzy, searchByNameFuzzy, searchByNameFuzzyIndex, searchByNameFuzzyIndex, searchByNameIndex, setPolymerAt, setProperty, stripNoAtoms, writeFasta, writeFasta, writeList, writeList, writePTS, writePTS, writeYAPF, writeYAPF |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Field Detail |
---|
public static final boolean USE_LENGTH_INFO
public static final boolean CLASS_AA
public static final boolean CLASS_2ARY
public static final boolean CLASS_STRONG
public int nstats
public SimMatrix r_SM
public SimMatrix SM
public SimMatrix CSM
public CorrectMatrix[] CSM1
public double cutoff_2ary
public double cutoff_lvl2
public double[] cutoff_class
public TPSet.NetVars vars
Constructor Detail |
---|
public TPSet()
public TPSet(TPSet q)
Method Detail |
---|
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class PolymerSet
public final void predict2aryHE(NeuralNet net)
public final void predictLvl2HE(NeuralNet net)
public final void predictClassRaw(NeuralNet cnet4, NeuralNet[] cnet1)
public final void compute2arySM(int which, int sample)
PredClassProfile.compute2arySM(int, int)
public final void computeClassSM()
public final void predict2ary(NeuralNet net, int sample, Printf outfile)
public final void predictLvl2(NeuralNet net, int sample, Printf outfile)
public final void predictClassDirectly(Printf outfile)
public final void predictClass(NeuralNet cnet4, NeuralNet[] cnet1, Printf outfile)
public final double fcut2ary(NeuralNet net, int sample, Printf outfile)
public final double fcutLvl2(NeuralNet net, int sample, Printf outfile)
public final void fcutClass(NeuralNet cnet4, NeuralNet[] cnet1, Printf outfile)
public final void smooth(int num)
public final void translate2ary()
public final void translateEA()
public final void translateClass()
public final void filterPred()
public void newSM(int x)
public final void deleteSM()
public final void clearSM()
public final void addSM(TPSet x)
public final void copyLvl1HE()
public final void findInputs()
public final void copyUnreducedStats(int sample)
public final java.lang.String name2ary(int i)
public final void print2aryStats(Printf outfile)
public final void print2aryByClass(Printf outfile)
public final void print2aryUnreduced(Printf outfile)
public final void printClassStats(Printf outfile)
public final void printDirectClassStats(Printf outfile)
public final void print2ary(Printf outfile, int sample)
public final void printClass(Printf outfile)
public final void printDirectClassPrediction(Printf outfile)
public final void estAccyCount(IMatrix ea_h, IMatrix ea_e, IMatrix ea_c)
public final void estAccy(IMatrix ea_h, IMatrix ea_e, IMatrix ea_c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |