Package pal.alignment
Class StrippedAlignment
- java.lang.Object
-
- pal.alignment.AbstractAlignment
-
- pal.alignment.StrippedAlignment
-
- Direct Known Subclasses:
StrippedAnnotatedAlignment
public class StrippedAlignment extends AbstractAlignment
takes an alignment and repeatedly removes sites- Version:
- $Id: StrippedAlignment.java,v 1.6 2002/02/27 22:25:59 matt Exp $
- Author:
- Korbinian Strimmer
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pal.misc.IdGroup
IdGroup.Utils
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]aliasprotected boolean[]notDroppedprotected AlignmentrawAlignmentprotected intrawNumSites-
Fields inherited from class pal.alignment.AbstractAlignment
idGroup, numSeqs, numSites
-
-
Constructor Summary
Constructors Constructor Description StrippedAlignment(Alignment raw)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddropSite(int s)drop a sitechargetData(int seq, int site)sequence alignment at (sequence, site)voidremoveConstantSites()remove constant sitesvoidremoveGaps()remove sites with gapsvoidremoveNoninformativeSites()remove noninformative sitesvoidremoveSites(char c)remove site that contain a specified charactervoidremoveUnknowns()remove sites with unknowns-
Methods inherited from class pal.alignment.AbstractAlignment
getAlignedSequenceString, getChar, getDataType, getIdCount, getIdentifier, getLength, getSequenceCount, getSiteCount, getState, getStates, guessDataType, isGap, isUnknownState, report, setDataType, setIdentifier, toString, whichIdNumber
-
-
-
-
Field Detail
-
rawAlignment
protected Alignment rawAlignment
-
rawNumSites
protected int rawNumSites
-
alias
protected int[] alias
-
notDropped
protected boolean[] notDropped
-
-
Constructor Detail
-
StrippedAlignment
public StrippedAlignment(Alignment raw)
Constructor- Parameters:
raw- original alignment
-
-
Method Detail
-
getData
public char getData(int seq, int site)sequence alignment at (sequence, site)- Specified by:
getDatain interfaceAlignment- Specified by:
getDatain classAbstractAlignment
-
dropSite
public void dropSite(int s)
drop a site- Parameters:
s- site of original alignment
-
removeSites
public void removeSites(char c)
remove site that contain a specified character- Parameters:
c- character that will cause the removal of a site
-
removeGaps
public void removeGaps()
remove sites with gaps
-
removeUnknowns
public void removeUnknowns()
remove sites with unknowns
-
removeConstantSites
public void removeConstantSites()
remove constant sites
-
removeNoninformativeSites
public void removeNoninformativeSites()
remove noninformative sites
-
-