-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AugmentedAlignment interface #530
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
lphy-base/src/main/java/lphy/base/evolution/alignment/AugmentedAlignment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package lphy.base.evolution.alignment; | ||
|
||
/** | ||
* Guide to create an alignment containing the internal node sequences. | ||
*/ | ||
public interface AugmentedAlignment<T> extends TaxaCharacterMatrix<T> { | ||
|
||
/** | ||
* @param sequenceId the index of sequences, tips are from 0 to (ntaxa - 1), | ||
* internal nodes are the rest, and root index is the last. | ||
* @param position the site position. | ||
* @return the integer state at the given coordinate of this alignment. | ||
*/ | ||
T getState(int sequenceId, int position); | ||
|
||
} |