Constructor and Description |
---|
SequenceAlignment(java.io.File f)
Creates a sequence alignment from a file.
|
SequenceAlignment(java.io.File f,
Ambiguous ambig)
Creates a sequence alignment from a file with ambiguouis data.
|
Modifier and Type | Method and Description |
---|---|
static void |
writeFile(Alignment a,
java.io.File f)
Writes a alignment to a file in the format described in
SequenceAlignment(java.io.File) . |
public SequenceAlignment(java.io.File f) throws InputException, AlignmentException
f
- The input fileInputException
- Thrown if there is a problem reading the fileAlignmentException
- Thrown if there issomething wrong with the alignment, e.g.
different length sequencespublic SequenceAlignment(java.io.File f, Ambiguous ambig) throws InputException, AlignmentException
SequenceAlignment(java.io.File)
f
- The input fileambig
- Desription o the ambiguous dataInputException
- Thrown if there is a problem with the input fileAlignmentException
- Thrown if there issomething wrong with the alignment, e.g.
different length sequencespublic static void writeFile(Alignment a, java.io.File f) throws OutputException
SequenceAlignment(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