public final class ConservationFormatter
extends java.lang.Object
| Constructor and Description |
|---|
ConservationFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
formatResults(java.util.Map<compbio.data.sequence.ConservationMethod,double[]> scores,
java.io.OutputStream outStream)
Use this method to save the conservation results into a file.
|
static void |
formatResults(java.util.Map<compbio.data.sequence.ConservationMethod,double[]> scores,
java.lang.String outFilePath,
Format format,
java.util.List<compbio.data.sequence.FastaSequence> alignment)
Formats and prints results.
|
public static void formatResults(java.util.Map<compbio.data.sequence.ConservationMethod,double[]> scores,
java.lang.String outFilePath,
Format format,
java.util.List<compbio.data.sequence.FastaSequence> alignment)
throws java.io.IOException
formatResults(Map, OutputStream)scores - the results on the calculation, the Map with Method keys and
double[] values.outFilePath - the path to the output file. Optional. If null System.out is
used.format - the output format. Optional. Defaults to
Format.RESULT_NO_ALIGNMENTalignment - the alignment for which score was calculatedjava.io.IOException - if the file cannot be written/created for whatever reason.java.lang.NullPointerException - if the alignment is nullpublic static void formatResults(java.util.Map<compbio.data.sequence.ConservationMethod,double[]> scores,
java.io.OutputStream outStream)
formatResults(Map, String, Format, List)
where the first parameter is scores, the second is a name of the file,
third if Format.RESULT_NO_ALIGNMENT and the fourth is null.scores - the results of the calculation - the
MapoutStream - the stream to write the results to. Please note that the
method leaves this stream open. It is up to the caller to
close it!