public class ConcatenatedAnnotatedAlignment extends AbstractAlignment implements AnnotationAlignment
IdGroup.UtilsidGroup, numSeqs, numSites| Constructor and Description |
|---|
ConcatenatedAnnotatedAlignment(AnnotationAlignment[] list,
boolean mergeByID,
boolean union)
concatenate alignments
|
| Modifier and Type | Method and Description |
|---|---|
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
|
getAlignedSequenceString, 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, getDataType, getSequenceCount, getSiteCountgetIdCount, getIdentifier, setIdentifier, whichIdNumberpublic 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 producedjava.lang.IllegalArgumentExceptionpublic 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)
Reportreport in interface AnnotationAlignmentreport in interface Reportreport in class AbstractAlignmentout - output stream