public class GenericAlignment
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Alignment |
fromFile(java.io.File f)
Creates a sequence alignment from a file.
|
static Alignment |
fromFile(java.io.File f,
Ambiguous ambig)
Creates a sequence alignment from a file with ambiguous data.
|
static void |
writeFile(Alignment a,
java.io.File f)
Writes a alignment to a file in the format described in
fromFile(java.io.File). |
public static Alignment fromFile(java.io.File f) throws InputException, AlignmentException
*class* is
assumed not to be a taxa but rather gives the class of each site (which can be any
single character).f - The input fileInputException - Thrown if there is a problem reading the fileAlignmentException - Thrown if there is something wrong with the alignment, e.g.
different length sequencespublic static Alignment fromFile(java.io.File f, Ambiguous ambig) throws InputException, AlignmentException
fromFile(java.io.File)f - The input fileambig - Description o the ambiguous dataInputException - Thrown if there is a problem with the input fileAlignmentException - Thrown if there is something wrong with the alignment, e.g.
different length sequencespublic static void writeFile(Alignment a, java.io.File f) throws OutputException
fromFile(java.io.File).a - The alignment to write to the file. Need not be a sequence alignmentf - The file to write toOutputException - Thrown if there is a problem creating the file