|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object compbio.data.sequence.Score
@Immutable public class Score
A value class for AACon annotation results storage
Constructor Summary | |
---|---|
Score(ConservationMethod method,
List<Float> scores)
Instantiate the Score |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
ConservationMethod |
getMethod()
Returns the ConservationMethod |
List<Float> |
getScores()
The column scores for the alignment |
int |
hashCode()
|
String |
toString()
|
static void |
write(Set<Score> scores,
OutputStream output)
Outputs the List of Score objects into the Output stream. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Score(ConservationMethod method, List<Float> scores)
method
- the ConservationMethod with which scores
were
calculatedscores
- the actual conservation values for each column of the
alignmentMethod Detail |
---|
public ConservationMethod getMethod()
public List<Float> getScores()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public static void write(Set<Score> scores, OutputStream output) throws IOException
#MethodName <space separated list of values>
For example:
#KABAT 0.2 0.3 0.2 0 0.645 0.333 1 1 0 0
#SMERFS 0.645 0.333 1 1 0 0 0.2 0.3 0.2 0
The maximum precision for values is 3 digits, but can be less.
scores
- the list of scores to outputoutput
- the stream to output the data to
IOException
- if the OutputStream cannot be written into
NullPointerException
- if the output stream is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |