|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttrans.roc.MethodTester
Application for scoring '.sgr' files for positives and negatives in relation to known (spike in) data.
Constructor Summary | |
MethodTester(java.lang.String[] args)
|
Method Summary | |
void |
binSgrs()
Runs through an array of Sgr[] noting whether it falls in the positive regions or not positive regions |
void |
blankPositives()
Resets the positive regions to their instantiation state. |
void |
calculateBinFDRs()
Runs through all the bins calculating and setting fdrs for each. |
Bin |
findBin(Sgr sgr)
Finds an appropriate bin given an sgr object |
static double |
fractionPositive(java.util.ArrayList doubles,
double scoreCutOff,
double divider)
Given an ArrayList of Double, calculates the fraction that is >= scoreCutOff. |
static void |
main(java.lang.String[] args)
|
void |
makeBins()
|
void |
makePositives()
|
void |
makePositives(java.io.File regions)
|
static Sgr[] |
parseSgrFile(java.io.File sgrFile,
boolean zeroNaNOrInfinityScores)
Reads in an Sgr file. |
static int |
positive(Positive[] pos,
Sgr sgr)
Checks to see if an sgr object is one of the positives, if not returns -1, otherwise returns index number. |
boolean |
resetStartStop()
Scans the bins to determine the optimal start and stop for the next round. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodTester(java.lang.String[] args)
Method Detail |
public void calculateBinFDRs()
public void binSgrs()
public static int positive(Positive[] pos, Sgr sgr)
public Bin findBin(Sgr sgr)
public static void main(java.lang.String[] args)
public static double fractionPositive(java.util.ArrayList doubles, double scoreCutOff, double divider)
public void makeBins()
public void makePositives()
public void blankPositives()
public void makePositives(java.io.File regions)
public static Sgr[] parseSgrFile(java.io.File sgrFile, boolean zeroNaNOrInfinityScores)
public boolean resetStartStop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |