Skip to content

Commit

Permalink
Add AugmentedAlignment interface #530
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Oct 16, 2024
1 parent 05567bd commit 1d07a5e
Showing 1 changed file with 16 additions and 0 deletions.
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);

}

0 comments on commit 1d07a5e

Please sign in to comment.