public class AlignmentBuilder
extends java.lang.Object
Constructor | Description |
---|---|
AlignmentBuilder(int initialCapacity) |
The constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
addSequence(int[] states,
java.lang.String name) |
Add sequence data to store
|
void |
clearAll() |
Remove all currently stored sequences.
|
Alignment |
generateAlignment(DataType dt) |
Build an alignment based on sequences stored.
|
public AlignmentBuilder(int initialCapacity)
initialCapacity
- The initial amount of space to allocate for sequence storage (dynamically adjusts if number of sequences exceeds capacity)public void clearAll()
public Alignment generateAlignment(DataType dt)
dt
- The datatype of the sequence datapublic void addSequence(int[] states, java.lang.String name)
states
- The states of the sequence (builder assumes all state arrays are equal length)name
- The name of the sequence