|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--AFLPcore.Operation
|
+--AFLPcore.ScoreFunction
|
+--AFLPcore.SegregatingScore
This scores each bin by assigning different labels to the differnet cutoff regions. A cutoff region is a region between two cutoffs, or between the cutoff and the zero level. For example, in a bin with one cutoff, lanes that have a peak above the cutoff might be labeled "A", and those below "B". For a bin with two cutoffs, those below both may be "B", those between the two would be "h", and those above both would be "A". The options can be used to set the number of levels and the labels. If the number of cutoff levels for a lane does not match the number expected by this function, an error will be thrown. Also, those peaks that are above a cutoff are marked, and are then used to calculate the mean and standard deviation of the values in the bin. It also will count the number of each label that occur in a bin.
Cutoff,
Lane| Fields inherited from class AFLPcore.Operation |
descript, helpFile, name, options |
| Constructor Summary | |
SegregatingScore()
Creates a new segregating score function. |
|
| Method Summary | |
java.lang.String[] |
getChoices(int numLevels)
Gives the labels that the scoring function can assign. |
java.lang.String |
getDescription()
Gives a one sentence description of this score function. |
java.lang.String |
getHelpFile()
Gives a file that is the help file for this scoring function |
java.lang.String[] |
getInfo(java.lang.String[] tags,
DataList peaks)
This returns a set of strings that describes the overall scoring of the bin. |
java.lang.String |
getName()
Gives the name of this segregating score function. |
Option[] |
getOptions()
Gives the options for this scoring. |
void |
invert()
This switches the labels that will be used to there opposite. |
void |
read(java.io.DataInputStream in)
Reads in the properties of this class from the specified input stream. |
java.lang.String |
score(Cutoff cutoff,
DataList peaks)
Scores a lane by seeing if any of the peaks cross the highest cutoff, and then labeling it appropriately. |
void |
setOptions(Option[] opts)
Sets the option to the specified values. |
void |
write(java.io.DataOutputStream out)
Writes all of the information this class needs to store in order to be recreated. |
| Methods inherited from class AFLPcore.ScoreFunction |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SegregatingScore()
| Method Detail |
public java.lang.String score(Cutoff cutoff,
DataList peaks)
score in class ScoreFunctioncutoff - the cutoff used to determine the labelspeaks - the peaks in a region to compare to the cutoffScoringFailure - occurs if the number of levels in the
cutoff do not match the number of levels that the function is
expecting. This number can be changed by setting the options for
this function.getOptions()
public java.lang.String[] getInfo(java.lang.String[] tags,
DataList peaks)
Mean: 98.38 StdDev: 0.06 #A: 20 #B: 14 from 20/20 peaks
getInfo in class ScoreFunctiontags - the label for each lane.peaks - the peaks that were marked by the score method.public java.lang.String[] getChoices(int numLevels)
getChoices in class ScoreFunctionAFLPcore.ScoreFunctionnumLevels - the number of levels that the score function needs
to accomodate.public Option[] getOptions()
getOptions in class Operationpublic void setOptions(Option[] opts)
setOptions in class Operationopts - the options as described above.java.lang.IllegalArgumentException - if the number of options does not
match 1 plus the number of labels. This means that changing the
number of levels and the labels will require several calls to this
method.public void invert()
invert in class ScoreFunctionpublic java.lang.String getName()
getName in class Operationpublic java.lang.String getDescription()
getDescription in class Operationpublic java.lang.String getHelpFile()
getHelpFile in class Operation
public void write(java.io.DataOutputStream out)
throws java.io.IOException
read can recreate the essential properties of this
class.write in class ScoreFunctionout - the destination to write the data to.java.io.IOException - occurs when a problem is encountered when
writing to the stream.
public void read(java.io.DataInputStream in)
throws java.io.IOException
write. This
will retrieve this classes state from the input stream. All of the
current data in this class will be replaced by the data from the
stream.read in class ScoreFunctionin - the input stream with the data for the class.java.io.IOException - occurs when a problem is encountered when
writing to the stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||