pal.alignment
public class ConcatenatedAnnotatedAlignment extends AbstractAlignment implements AnnotationAlignment
IdGroup.Utils
idGroup, 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, whichIdNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlignedSequenceString, getDataType, getSequenceCount, getSiteCount
getIdCount, getIdentifier, setIdentifier, whichIdNumber
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 producedjava.lang.IllegalArgumentException
public char getData(int seq, int site)
getData
in interface Alignment
getData
in class AbstractAlignment
public DataType getDataType(int site)
getDataType
in interface AnnotationAlignment
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 void sortSites()
public void report(java.io.PrintWriter out)
Report
report
in interface AnnotationAlignment
report
in interface Report
report
in class AbstractAlignment
out
- output stream