public class DuplicationAlignment
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Alignment |
fromFile(java.io.File f)
Creates a duplication alignment from a file.
|
static Alignment |
fromFile(java.io.File f,
Ambiguous ambig)
Creates a duplication alignment which contains ambiguous data.
|
static void |
writeFile(Alignment a,
java.io.File f)
Writes a alignment to a file in the duplication alignment format described
above.
|
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
string).f - The input fileInputException - Thrown if there is a problem with the input fileAlignmentException - Thrown if any family contains the wrong number
of speciespublic 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 any family contains the wrong number
of speciespublic static void writeFile(Alignment a, java.io.File f) throws OutputException
a - The alignment to write to the file. Need not be a duplication alignmentf - The file to write toOutputException - Thrown if there is a problem creating the file