public class PhylipWriter<S extends org.biojava3.core.sequence.template.Sequence<C>,C extends org.biojava3.core.sequence.template.Compound> extends AbstractAlignmentWriter<S,C>
PHYLIPFileFormat written by
Richard Holland, Tobias Thierer and Jim Balhoff, who provided the source code under LGPL.)| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NAME_LENGTH |
WHITESPACE_REPLACEMENT| Constructor and Description |
|---|
PhylipWriter() |
PhylipWriter(boolean replaceWhiteSpace) |
PhylipWriter(boolean replaceWhiteSpace,
int maxNameLength) |
PhylipWriter(UniqueNameMap nameMap)
Note that certain parameter sets for the specified name map might lead to an invalid output of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(Alignment<S,C> alignment,
java.io.OutputStream stream)
Writes the specified alignment in sequential Phylip format.
|
getNameMap, writepublic static final int DEFAULT_MAX_NAME_LENGTH
public PhylipWriter()
public PhylipWriter(boolean replaceWhiteSpace)
public PhylipWriter(boolean replaceWhiteSpace, int maxNameLength)
public PhylipWriter(UniqueNameMap nameMap)
nameMap - public void write(Alignment<S,C> alignment, java.io.OutputStream stream) throws java.lang.Exception
java.lang.ExceptionAlignmentWriter.write(info.bioinfweb.commons.bio.biojava3.alignment.template.Alignment, java.io.OutputStream)