public class NexusWriter<S extends org.biojava3.core.sequence.template.Sequence<C>,C extends org.biojava3.core.sequence.template.Compound> extends AbstractAlignmentWriter<S,C>
Alignment
to a stream in Nexus format. The result contains a TAXA, a CHARACTERS and
a SETS block (if the specified alignment contains any character set).Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMAND_TERMINATOR |
static java.lang.String |
COMMENT_END |
static java.lang.String |
COMMENT_START |
static java.lang.String |
DATATYPE_CONTINUOUS |
static java.lang.String |
DATATYPE_DNA |
static java.lang.String |
DATATYPE_NUCLEOTIDE |
static java.lang.String |
DATATYPE_PROTEIN |
static java.lang.String |
DATATYPE_RNA |
static java.lang.String |
DATATYPE_STANDARD |
WHITESPACE_REPLACEMENT
Constructor and Description |
---|
NexusWriter(java.lang.String matrixDataType)
Creates a new instance of this class with "
- " as gap data and "? as missing data character. |
NexusWriter(java.lang.String matrixDataType,
char gapCharacter,
char missingCharacter)
Creates a new instance of this class.
|
NexusWriter(java.lang.String matrixDataType,
char gapCharacter,
char missingCharacter,
UniqueNameMap nameMap)
Creates a new instance of this class.
|
NexusWriter(java.lang.String matrixDataType,
UniqueNameMap nameMap)
Creates a new instance of this class with "
- " as gap data and "? as missing data character. |
Modifier and Type | Method and Description |
---|---|
void |
write(Alignment<S,C> alignment,
java.io.OutputStream stream) |
getNameMap, write
public static final java.lang.String COMMAND_TERMINATOR
public static final java.lang.String COMMENT_START
public static final java.lang.String COMMENT_END
public static final java.lang.String DATATYPE_STANDARD
public static final java.lang.String DATATYPE_DNA
public static final java.lang.String DATATYPE_RNA
public static final java.lang.String DATATYPE_NUCLEOTIDE
public static final java.lang.String DATATYPE_PROTEIN
public static final java.lang.String DATATYPE_CONTINUOUS
public NexusWriter(java.lang.String matrixDataType, char gapCharacter, char missingCharacter, UniqueNameMap nameMap)
matrixDataType
- the data type specified in the Nexus FORMAT
command (Nexus allows
STANDARD
, DNA
, , NUCLEOTIDE
, PROTEIN
or CONTINUOUS
.)gapCharacter
- the character coding a gap in the alignmentmissingCharacter
- the character coding missing data in the alignmentnameMap
- used to translate sequence names, if necessarypublic NexusWriter(java.lang.String matrixDataType, UniqueNameMap nameMap)
-
" as gap data and "?
as missing data character.matrixDataType
- the data type specified in the Nexus FORMAT
command (Nexus allows
STANDARD
, DNA
, , NUCLEOTIDE
, PROTEIN
or CONTINUOUS
.)nameMap
- used to translate sequence names, if necessarypublic NexusWriter(java.lang.String matrixDataType, char gapCharacter, char missingCharacter)
matrixDataType
- the data type specified in the Nexus FORMAT
command (Nexus allows
STANDARD
, DNA
, , NUCLEOTIDE
, PROTEIN
or CONTINUOUS
.)gapCharacter
- the character coding a gap in the alignmentmissingCharacter
- the character coding missing data in the alignmentpublic NexusWriter(java.lang.String matrixDataType)
-
" as gap data and "?
as missing data character.matrixDataType
- the data type specified in the Nexus FORMAT
command (Nexus allows
STANDARD
, DNA
, , NUCLEOTIDE
, PROTEIN
or CONTINUOUS
.)