|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.distance.Distance
public class Distance
A class that calculates the distance and similarity score between two alignments
Constructor Summary | |
---|---|
Distance()
|
Method Summary | |
---|---|
static double |
AMA(java.util.ArrayList<java.lang.String> A,
java.util.ArrayList<java.lang.String> B)
Does the same as the distance(ArrayList, ArrayList) but outputs a more
meaningful number since it is between 0 and 1. 1 means we have the same alignments while 0 means they are as distance as possible. |
static double |
AMA(java.lang.String[] A,
java.lang.String[] B)
The same as AMA(ArrayList, ArrayList) but here you can use arrays instead of lists |
static double |
amaScoreToDistance(java.util.ArrayList<java.lang.String> sequences,
double amaScore)
Given a set of sequences and an AMA score, returns the corresponding distance. |
static int |
distance(java.util.ArrayList<java.lang.String> A,
java.util.ArrayList<java.lang.String> B)
Calculates the distance between two alignments, if the function returns 0, the alignments are the same. |
static int |
distance(java.lang.String[] A,
java.lang.String[] B)
So we can use Strings instead of list |
static double |
sequenceSimilarityScore(java.util.List<java.lang.String> A)
Calculates the similarity of the sequences. |
static double |
sequenceSimilarityScore(java.lang.String[] A)
Overloading the sequenceSimilarityScore method so one can use arrays instead of lists |
static java.util.ArrayList<java.lang.Double> |
spaceAMA(java.util.ArrayList<java.lang.String[]> allAlignments)
Used when determining the step rate in the automation of the MCMC. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Distance()
Method Detail |
---|
public static double amaScoreToDistance(java.util.ArrayList<java.lang.String> sequences, double amaScore)
sequences
- sequences (possibly having gaps)amaScore
- similarity score between 0 and 1
public static int distance(java.lang.String[] A, java.lang.String[] B)
distance(ArrayList, ArrayList)
public static int distance(java.util.ArrayList<java.lang.String> A, java.util.ArrayList<java.lang.String> B)
A
- The first alignmentB
- The second alignment
public static double AMA(java.lang.String[] A, java.lang.String[] B)
AMA(ArrayList, ArrayList)
but here you can use arrays instead of lists
public static double AMA(java.util.ArrayList<java.lang.String> A, java.util.ArrayList<java.lang.String> B)
distance(ArrayList, ArrayList)
but outputs a more
meaningful number since it is between 0 and 1. 1 means we have the same alignments while 0 means they are as distance as possible.
A
- The first alignmentB
- The second alignment
public static double sequenceSimilarityScore(java.lang.String[] A)
public static double sequenceSimilarityScore(java.util.List<java.lang.String> A)
A
- List of strings where each string is a sequence ()
public static java.util.ArrayList<java.lang.Double> spaceAMA(java.util.ArrayList<java.lang.String[]> allAlignments)
allAlignments
- List of alignments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |