public class ResultsEvaluator
extends java.lang.Object
Constructor and Description |
---|
ResultsEvaluator() |
Modifier and Type | Method and Description |
---|---|
static void |
generateSpecialStats(Motif[] motifs,
Motif known,
Stopwatch timer,
java.lang.String filename,
Scorer scorer)
A special stat generative function for testing ambiguizers.
|
static void |
generateStats(MotifComparator comp,
Motif[] motifs,
Motif[] knownMotifs,
Stopwatch stopwatch,
java.lang.String filename,
Scorer scorer,
java.lang.String testVal)
The core stats generating function; this produces the sum files we've been using, which include a summary of all the known motifs and
which found motifs match (if any) FP/FN counts, restricted FP/FN counts, etc.
|
static double |
scoreFalsePositives(Motif[] motifs,
Motif[] knownMotifs,
MotifComparator comp,
int lowestRank)
Computes the number of false positives, as determined by the number of the first lowestRank elements in motifs tha are not in
knownMotifs, as determined by comp's equality test.
|
static RankedMotifPair[] |
scoreKnownMotifs(Motif[] motifs,
Motif[] knownMotifs,
MotifComparator comp,
Scorer scorer)
Finds foundMotif - knownMotif mapping and returns the result as a RankedMotifPair[].
|
static MotifList |
summarizePhis(java.lang.Object[] motifs,
java.lang.Object known,
Scorer scorer,
int numScored,
java.io.BufferedWriter out,
java.lang.String source)
Given a list of motifs that is assumed to be sorted, we will calculate the phi score of each motif against the known motif, writing the
first numScored to out, along with the highest scoring motif in the entire set, and returning that motif that has the highest phi score
and is one of the first numScored motifs; the returned motif has its score field set to its phi score.
|
public static void generateSpecialStats(Motif[] motifs, Motif known, Stopwatch timer, java.lang.String filename, Scorer scorer)
knownMotif.score knownMotif.sequence highestSig MotifofHighestSig maxPhi[in top 3] motifOfBestPhi rankOfBestPhi millisecsRunTime numberOfScorerLookups <pre> This is tab delimited and printed to filename.
public static void generateStats(MotifComparator comp, Motif[] motifs, Motif[] knownMotifs, Stopwatch stopwatch, java.lang.String filename, Scorer scorer, java.lang.String testVal) throws java.io.IOException
java.io.IOException
public static double scoreFalsePositives(Motif[] motifs, Motif[] knownMotifs, MotifComparator comp, int lowestRank)
public static RankedMotifPair[] scoreKnownMotifs(Motif[] motifs, Motif[] knownMotifs, MotifComparator comp, Scorer scorer)
public static MotifList summarizePhis(java.lang.Object[] motifs, java.lang.Object known, Scorer scorer, int numScored, java.io.BufferedWriter out, java.lang.String source) throws java.io.IOException
java.io.IOException