Package jebl.evolution.alignments
Class ResampledAlignment
- java.lang.Object
-
- jebl.evolution.alignments.ResampledAlignment
-
- Direct Known Subclasses:
BootstrappedAlignment,JackknifedAlignment
public class ResampledAlignment extends java.lang.Object implements Alignment
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 Constructor Description ResampledAlignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPatternCount()intgetPatternLength()java.util.List<Pattern>getPatterns()Get a list of all the patternsSequencegetSequence(Taxon taxon)java.util.List<Sequence>getSequenceList()java.util.Set<Sequence>getSequences()SequenceTypegetSequenceType()intgetSiteCount()java.util.List<Taxon>getTaxa()voidinit(Alignment srcAlignment, int[] siteIndices)Setup resampled alignment.
-
-
-
Method Detail
-
init
public void init(Alignment srcAlignment, int[] siteIndices)
Setup resampled alignment.- Parameters:
srcAlignment- sample sites from this alignmentsiteIndices- Use this set to construct the resampled alignment
-
getSequenceList
public java.util.List<Sequence> getSequenceList()
- Specified by:
getSequenceListin interfaceAlignment
-
getPatternCount
public int getPatternCount()
- Specified by:
getPatternCountin interfacePatterns
-
getPatternLength
public int getPatternLength()
- Specified by:
getPatternLengthin interfacePatterns
-
getPatterns
public java.util.List<Pattern> getPatterns()
Description copied from interface:PatternsGet a list of all the patterns- Specified by:
getPatternsin interfacePatterns- Returns:
- the list
-
getTaxa
public java.util.List<Taxon> getTaxa()
-
getSequenceType
public SequenceType 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
public java.util.Set<Sequence> getSequences()
- Specified by:
getSequencesin interfaceSequences
-
getSequence
public Sequence getSequence(Taxon taxon)
- Specified by:
getSequencein interfaceSequences
-
-