|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.io.MultipleAlignmentInputSequence
public class MultipleAlignmentInputSequence
an input sequence where each element represents one column of a multiple alignment.
| Nested Class Summary | |
|---|---|
class |
MultipleAlignmentInputSequence.MultipleAlignmentColumn
represents the column of the alignment at a given position on the reference sequence |
| Constructor Summary | |
|---|---|
MultipleAlignmentInputSequence(java.util.List<java.lang.String> speciesNames,
java.util.List<java.lang.String> consensuses,
java.lang.String refSpecies,
RootedBinaryPhylogeneticTree tree)
constructs a multiple alignment input sequence. |
|
MultipleAlignmentInputSequence(java.lang.String refSpecies,
RootedBinaryPhylogeneticTree tree)
|
|
| Method Summary | |
|---|---|
char |
characterInPaddedAlignment(int consensusPosition,
int speciesNumber)
|
int |
con2refLeft(int cpos)
|
int |
con2refRight(int cpos)
|
int |
getColumnUniqueHash(int conpos)
|
InputSequence<?> |
getComponent(java.lang.String name)
For input sequences that are a composite of several different input objects, returns a particular component of the input. |
int |
getConsensusLength()
|
java.util.List<java.lang.String> |
getConsensusSeqs()
|
PhylogeneticTreeFelsensteinOrder |
getFelsensteinOrder()
|
int |
getNumSpecies()
|
java.util.List<java.lang.String> |
getSpeciesNames()
|
RootedBinaryPhylogeneticTree |
getTree()
|
MultipleAlignmentInputSequence.MultipleAlignmentColumn |
getX(int ix)
retrieves the input value at a position in the input sequence. |
int |
length()
Returns the length of this sequence |
java.util.Collection<java.lang.String> |
listComponents()
For input sequences that are a composite of several different input objects, returns a list of the names of the components in this input sequence. |
int |
numSpecies()
|
int |
ref2con(int pos)
|
InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn> |
subSequence(int start,
int end)
tTakes a subinterval of the input sequence with given start-end coordinates which are relative coordinates, 1-based, and inclusive. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleAlignmentInputSequence(java.lang.String refSpecies,
RootedBinaryPhylogeneticTree tree)
public MultipleAlignmentInputSequence(java.util.List<java.lang.String> speciesNames,
java.util.List<java.lang.String> consensuses,
java.lang.String refSpecies,
RootedBinaryPhylogeneticTree tree)
speciesNames - a list of the names of the species in the alignmentsconsensuses - a list of the consensus sequences for each species. The consensus sequences shoudl form a multiple alignment, including gaps.tree - a tree of all the species in the alignment with branch lengths.| Method Detail |
|---|
public int getNumSpecies()
public MultipleAlignmentInputSequence.MultipleAlignmentColumn getX(int ix)
InputSequence
getX in interface InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn>ix - the index position at which to get the input. This is a zero-based index.
public int length()
InputSequence
length in interface InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn>public InputSequence<?> getComponent(java.lang.String name)
InputSequenceUnsupportedOperationException.
getComponent in interface InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn>name - the name of the input component to return
public java.util.Collection<java.lang.String> listComponents()
InputSequence
listComponents in interface InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn>public int con2refLeft(int cpos)
public int con2refRight(int cpos)
public int ref2con(int pos)
public char characterInPaddedAlignment(int consensusPosition,
int speciesNumber)
public int numSpecies()
public InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn> subSequence(int start,
int end)
InputSequence
An implementation that does not support subsetting should throw an UnsupportedOperationException
subSequence in interface InputSequence<MultipleAlignmentInputSequence.MultipleAlignmentColumn>start - the 1-based index of the first position of the input to retrieve.end - the 1-based index of the last position of the input to retrieve.
public java.util.List<java.lang.String> getSpeciesNames()
public java.util.List<java.lang.String> getConsensusSeqs()
public int getColumnUniqueHash(int conpos)
public int getConsensusLength()
public RootedBinaryPhylogeneticTree getTree()
public PhylogeneticTreeFelsensteinOrder getFelsensteinOrder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||