Package jebl.evolution.alignments
Class ResampledAlignment
java.lang.Object
jebl.evolution.alignments.ResampledAlignment
- Direct Known Subclasses:
BootstrappedAlignment,JackknifedAlignment
Date: 17/01/2006
Time: 08:08:44
- Version:
- $Id: ResampledAlignment.java 482 2006-10-25 06:30:57Z twobeers $ Provide a re-sampled alignment. This means an alignment constructed by choosing a set of sites from the source alignment and concataneting them. The set may be of any length and may contain duplications (sampling with replacment). Due to Java restrictions on constructors, class is implemented using delegation.
- Author:
- Joseph Heled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintGet a list of all the patternsgetSequence(Taxon taxon) intgetTaxa()voidSetup resampled alignment.
-
Constructor Details
-
ResampledAlignment
public ResampledAlignment()
-
-
Method Details
-
init
Setup resampled alignment.- Parameters:
srcAlignment- sample sites from this alignmentsiteIndices- Use this set to construct the resampled alignment
-
getSequenceList
- Specified by:
getSequenceListin interfaceAlignment
-
getPatternCount
public int getPatternCount()- Specified by:
getPatternCountin interfacePatterns
-
getPatternLength
public int getPatternLength()- Specified by:
getPatternLengthin interfacePatterns
-
getPatterns
Description copied from interface:PatternsGet a list of all the patterns- Specified by:
getPatternsin interfacePatterns- Returns:
- the list
-
getTaxa
-
getSequenceType
- Specified by:
getSequenceTypein interfacePatterns- Returns:
- the data type of the states in these site patterns.
-
getSiteCount
public int getSiteCount()- Specified by:
getSiteCountin interfaceAlignment
-
getSequences
- Specified by:
getSequencesin interfaceSequences
-
getSequence
- Specified by:
getSequencein interfaceSequences
-