java.io.Serializable
, Alignment
, AnnotationAlignment
, IdGroup
, Report
public class SimpleAnnotatedAlignment extends SimpleAlignment implements AnnotationAlignment
IdGroup.Utils
Modifier and Type | Field | 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 | 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,
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.
|
Modifier and Type | Method | 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)
|
getChar, getDataType, getIdCount, getIdentifier, getLength, getSequenceCount, getSiteCount, getState, getStates, guessDataType, isGap, isUnknownState, setDataType, setIdentifier, toString, whichIdNumber
getAlignedSequenceString, getData, getDataType, getSequenceCount, getSiteCount
getIdCount, getIdentifier, setIdentifier, whichIdNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlignedSequenceString, getData
public 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 AnnotationAlignment
public void setChromosomePosition(float position)
public int getChromosome(int site)
getChromosome
in interface AnnotationAlignment
public void setChromosome(int chromosome)
public float getWeightedLocusPosition(int site)
getWeightedLocusPosition
in interface AnnotationAlignment
public void setWeightedLocusPosition(int site, float weightedPos)
public int getLocusPosition(int site)
getLocusPosition
in interface AnnotationAlignment
public char getPositionType(int site)
getPositionType
in interface AnnotationAlignment
public void setPositionType(int site, char posType)
public java.lang.String getLocusName(int site)
getLocusName
in interface AnnotationAlignment
public void setLocusName(java.lang.String locusName)
public DataType getDataType(int site)
getDataType
in interface AnnotationAlignment
public void report(java.io.PrintWriter out)
Report
report
in interface AnnotationAlignment
report
in interface Report
report
in class AbstractAlignment
out
- output stream