public class SimpleAnnotatedAlignment extends SimpleAlignment implements AnnotationAlignment
IdGroup.Utils| Modifier and Type | Field and Description |
|---|---|
int |
chromosome
used to designate chromosome
|
float |
chromosomePosition
used to designate position along chromosome
|
java.lang.String |
locusName
used to designate locus name
|
char[] |
positionType
used to designate position Type
|
float[] |
weightedPosition
used to designate weighted position; accounts for gaps
|
idGroup, numSeqs, numSites| Constructor and Description |
|---|
SimpleAnnotatedAlignment(Alignment a)
Clone constructor from an unannotated alignment.
|
SimpleAnnotatedAlignment(AnnotationAlignment a)
Clone constructor.
|
SimpleAnnotatedAlignment(AnnotationAlignment a,
IdGroup newGroup)
This constructor will subset the alignment based on the taxa in IdGroup
|
SimpleAnnotatedAlignment(Identifier[] ids,
java.lang.String[] sequences,
java.lang.String gaps,
DataType dt)
This constructor creates a basic SimpleAnnotatedAlignment.
|
SimpleAnnotatedAlignment(IdGroup group,
java.lang.String[] sequences,
DataType dt)
This constructor creates a basic SimpleAnnotatedAlignment.
|
SimpleAnnotatedAlignment(IdGroup group,
java.lang.String[] sequences,
java.lang.String gaps,
DataType dt)
This constructor creates a basic SimpleAnnotatedAlignment.
|
| 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 (for SimpleAnnotatedAlignment there is only one 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 |
report(java.io.PrintWriter out)
print human readable report (e.g., on parameters and associated model)
|
void |
setChromosome(int chromosome)
Sets chromosome
|
void |
setChromosomePosition(float position)
Set the position along chromosome
|
void |
setLocusName(java.lang.String locusName)
Sets the name of the locus
|
void |
setPositionType(int site,
char posType)
Set thes position type (eg.
|
void |
setWeightedLocusPosition(int site,
float weightedPos)
Sets the weighted position along the gene (handles gaps)
|
getAlignedSequenceString, getDatagetChar, 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, whichIdNumberpublic float chromosomePosition
public int chromosome
public float[] weightedPosition
public char[] positionType
public java.lang.String locusName
public SimpleAnnotatedAlignment(Alignment a)
public SimpleAnnotatedAlignment(AnnotationAlignment a)
public SimpleAnnotatedAlignment(AnnotationAlignment a, IdGroup newGroup)
public SimpleAnnotatedAlignment(Identifier[] ids, java.lang.String[] sequences, java.lang.String gaps, DataType dt)
public SimpleAnnotatedAlignment(IdGroup group, java.lang.String[] sequences, DataType dt)
public float getChromosomePosition(int site)
getChromosomePosition in interface AnnotationAlignmentpublic void setChromosomePosition(float position)
public int getChromosome(int site)
getChromosome in interface AnnotationAlignmentpublic void setChromosome(int chromosome)
public float getWeightedLocusPosition(int site)
getWeightedLocusPosition in interface AnnotationAlignmentpublic void setWeightedLocusPosition(int site,
float weightedPos)
public int getLocusPosition(int site)
getLocusPosition in interface AnnotationAlignmentpublic char getPositionType(int site)
getPositionType in interface AnnotationAlignmentpublic void setPositionType(int site,
char posType)
public java.lang.String getLocusName(int site)
getLocusName in interface AnnotationAlignmentpublic void setLocusName(java.lang.String locusName)
public DataType getDataType(int site)
getDataType in interface AnnotationAlignmentpublic void report(java.io.PrintWriter out)
Reportreport in interface AnnotationAlignmentreport in interface Reportreport in class AbstractAlignmentout - output stream