pal.alignment
public class StrippedAnnotatedAlignment extends StrippedAlignment implements AnnotationAlignment
IdGroup.Utils
Modifier and Type | Field and Description |
---|---|
protected int |
firstSite |
protected int |
lastSite |
protected int |
minimumCount |
protected double |
minimumProportion |
alias, notDropped
idGroup, numSeqs, numSites
Constructor and Description |
---|
StrippedAnnotatedAlignment(AnnotationAlignment a)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getChromosome(int site)
Returns chromosome
|
float |
getChromosomePosition(int site)
Return the position along chromosome
|
DataType |
getDataType(int site)
Returns the datatype
|
java.lang.String |
getLocusName(int site)
Returns the name of the locus
|
int |
getLocusPosition(int site)
Return the position along the locus (ignores gaps)
|
char |
getPositionType(int site)
Returns position type (eg.
|
float |
getWeightedLocusPosition(int site)
Return the weighted position along the gene (handles gaps)
|
void |
removeConstantSitesIgnoreGapsMissing()
remove constant sites but ignore gaps and missing data (- and ?)
|
void |
removeSitesBasedOnFreqIgnoreGapsMissing(double minimumProportion,
int minimumCount)
remove sites based on minimum frequency (the count of good bases)
and based on the proportion of good sites different from consensus
|
void |
removeSitesOutsideRange(int firstSite,
int lastSite)
Remove sites based on site position (excluded sites are
|
void |
report(java.io.PrintWriter out)
print human readable report (e.g., on parameters and associated model)
|
dropSite, getData, removeConstantSites, removeGaps, removeNoninformativeSites, removeSites, removeUnknowns
getAlignedSequenceString, getChar, getDataType, getIdCount, getIdentifier, getLength, getSequenceCount, getSiteCount, getState, getStates, guessDataType, isGap, isUnknownState, setDataType, setIdentifier, toString, whichIdNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlignedSequenceString, getData, getDataType, getSequenceCount, getSiteCount
getIdCount, getIdentifier, setIdentifier, whichIdNumber
protected double minimumProportion
protected int minimumCount
protected int firstSite
protected int lastSite
public StrippedAnnotatedAlignment(AnnotationAlignment a)
public float getChromosomePosition(int site)
getChromosomePosition
in interface AnnotationAlignment
public int getChromosome(int site)
getChromosome
in interface AnnotationAlignment
public float getWeightedLocusPosition(int site)
getWeightedLocusPosition
in interface AnnotationAlignment
public int getLocusPosition(int site)
getLocusPosition
in interface AnnotationAlignment
public char getPositionType(int site)
getPositionType
in interface AnnotationAlignment
public java.lang.String getLocusName(int site)
getLocusName
in interface AnnotationAlignment
public DataType getDataType(int site)
getDataType
in interface AnnotationAlignment
public void removeSitesOutsideRange(int firstSite, int lastSite)
firstSite
- first site to keep in the rangelastSite
- last site to keep in the rangepublic void removeConstantSitesIgnoreGapsMissing()
public void removeSitesBasedOnFreqIgnoreGapsMissing(double minimumProportion, int minimumCount)
minimumProportion
- minimum proportion of sites different from the consensusminimumCount
- minimum number of sequences with a good bases (not - or ?)public void report(java.io.PrintWriter out)
Report
report
in interface AnnotationAlignment
report
in interface Report
report
in class AbstractAlignment
out
- output stream