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, notDroppedidGroup, 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, removeUnknownsgetAlignedSequenceString, getChar, getDataType, getIdCount, getIdentifier, getLength, getSequenceCount, getSiteCount, getState, getStates, guessDataType, isGap, isUnknownState, setDataType, setIdentifier, toString, whichIdNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlignedSequenceString, getData, getDataType, getSequenceCount, getSiteCountgetIdCount, getIdentifier, setIdentifier, whichIdNumberprotected double minimumProportion
protected int minimumCount
protected int firstSite
protected int lastSite
public StrippedAnnotatedAlignment(AnnotationAlignment a)
public float getChromosomePosition(int site)
getChromosomePosition in interface AnnotationAlignmentpublic int getChromosome(int site)
getChromosome in interface AnnotationAlignmentpublic float getWeightedLocusPosition(int site)
getWeightedLocusPosition in interface AnnotationAlignmentpublic int getLocusPosition(int site)
getLocusPosition in interface AnnotationAlignmentpublic char getPositionType(int site)
getPositionType in interface AnnotationAlignmentpublic java.lang.String getLocusName(int site)
getLocusName in interface AnnotationAlignmentpublic DataType getDataType(int site)
getDataType in interface AnnotationAlignmentpublic 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)
Reportreport in interface AnnotationAlignmentreport in interface Reportreport in class AbstractAlignmentout - output stream