|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.alignment.AbstractAlignment
pal.alignment.ConcatenatedAnnotatedAlignment
public class ConcatenatedAnnotatedAlignment
This is an annotation version of the ConcatenatedAlignment Unlike normal ConcatenatedAlignment, it permits for merges with different numbers of sequences. It will merge by either union or intersection. Missing taxa will return missing values on getData.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface pal.misc.IdGroup |
|---|
IdGroup.Utils |
| Field Summary |
|---|
| 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 | |
|---|---|
ConcatenatedAnnotatedAlignment(AnnotationAlignment[] list,
boolean mergeByID,
boolean union)
concatenate alignments |
|
| Method Summary | |
|---|---|
int |
getChromosome(int site)
Returns chromosome |
float |
getChromosomePosition(int site)
Return the position along chromosome |
char |
getData(int seq,
int site)
sequence alignment at (sequence, site) |
DataType |
getDataType(int site)
Return the datatype for a given site, which can differ between source alignments |
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 |
report(java.io.PrintWriter out)
print human readable report (e.g., on parameters and associated model) |
void |
sortSites()
sort the sites by chromosome, then by chromosomal location, and final locusPosition |
| 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, getDataType, getSequenceCount, getSiteCount |
| Methods inherited from interface pal.misc.IdGroup |
|---|
getIdCount, getIdentifier, setIdentifier, whichIdNumber |
| Constructor Detail |
|---|
public ConcatenatedAnnotatedAlignment(AnnotationAlignment[] list,
boolean mergeByID,
boolean union)
throws java.lang.IllegalArgumentException
list - array with alignments to concatenatemergeByID - if true it will be by ID nameunion - if true it will create the union of the list, if false the intersection will be produced
java.lang.IllegalArgumentException| Method Detail |
|---|
public char getData(int seq,
int site)
getData in interface AlignmentgetData in class AbstractAlignmentpublic DataType getDataType(int site)
getDataType in interface AnnotationAlignmentpublic 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 void sortSites()
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 | |||||||||