|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.alignment.AbstractAlignment
pal.alignment.StrippedAlignment
pal.alignment.StrippedAnnotatedAlignment
public class StrippedAnnotatedAlignment
This is the stripped implementation of the Annotation interface, which is designed to provide stripped and annotated alignments. This annotation can include information on chromosomal location, site positions, locus name, and the type of position (exon, intron, etc.) This class also add some methods for stripping sites based on frequency, count, and a range of positions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.misc.IdGroup |
|---|
IdGroup.Utils |
| Field Summary | |
|---|---|
protected int |
firstSite
|
protected int |
lastSite
|
protected int |
minimumCount
|
protected double |
minimumProportion
|
| Fields inherited from class pal.alignment.StrippedAlignment |
|---|
alias, notDropped |
| Fields inherited from class pal.alignment.AbstractAlignment |
|---|
idGroup, numSeqs, numSites |
| Fields inherited from interface pal.alignment.Alignment |
|---|
GAP, GAP_TLA, GAPS, UNKNOWN, UNKNOWN_TLA |
| Constructor Summary | |
|---|---|
StrippedAnnotatedAlignment(AnnotationAlignment a)
Simple constructor |
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class pal.alignment.StrippedAlignment |
|---|
dropSite, getData, removeConstantSites, removeGaps, removeNoninformativeSites, removeSites, removeUnknowns |
| Methods inherited from class pal.alignment.AbstractAlignment |
|---|
getAlignedSequenceString, getChar, getDataType, getIdCount, getIdentifier, getLength, getSequenceCount, getSiteCount, getState, getStates, guessDataType, isGap, isUnknownState, setDataType, setIdentifier, toString, whichIdNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pal.alignment.Alignment |
|---|
getAlignedSequenceString, getData, getDataType, getSequenceCount, getSiteCount |
| Methods inherited from interface pal.misc.IdGroup |
|---|
getIdCount, getIdentifier, setIdentifier, whichIdNumber |
| Field Detail |
|---|
protected double minimumProportion
protected int minimumCount
protected int firstSite
protected int lastSite
| Constructor Detail |
|---|
public StrippedAnnotatedAlignment(AnnotationAlignment a)
| Method Detail |
|---|
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 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 AnnotationAlignmentreport in interface Reportreport in class AbstractAlignmentout - output stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||