|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodele.Alignement
public class Alignement
This class to make alignments possible in searching Palindrome's and helix.
We can consider the two sequences as the same, the alignment is made with
first sequence from beginning (5') to end (3') and the other from
the end (3') to the beginning (5') [ReverseAlignment].
Then to find / recover scoring pairwise in the scoring matrix.
NOTE : in case of use of P-DCFold algorithm : {seq1 == seq2}.
Field Summary | |
---|---|
private static int |
AU
Score for match between two nucleotides / bases. |
private static int |
B5GU
Special score for GU pair when configuration. |
private static int |
GC
Score for match between two nucleotides / bases. |
private static int |
GU
Score for match between two nucleotides / bases. |
private static boolean |
H5AA
When GA or AA opposition before helix. |
private static boolean |
H5GA
When GA or AA opposition before helix. |
private static double |
lbmin
Minimal length of loop (global / static). |
private static double |
lpmin
Minimal length of Palindrome (global / static). |
private int[][] |
matrice
Alignment matrix. |
private static boolean |
pairwise
To test if a pairwise has happend precedently. |
private PalindromeListe |
palindromes
List of the Palindrome's. |
private static int |
R5GU
Special score for GU pair when configuration. |
private Sequence |
sequence1
Sequence of the alignment. |
private Sequence |
sequence2
Sequence of the alignment. |
private static boolean |
YR
For calculating the score when GU after a YR or RY match. |
Constructor Summary | |
---|---|
Alignement(Sequence sequence)
Deprecated. Not easy to well understand it without source code. |
|
Alignement(Sequence sequence,
double lpmin,
double lbmin)
Deprecated. Not easy to well understand it without source code. |
|
Alignement(Sequence sequence1,
Sequence sequence2)
Constructor of the alignment. lpmin is set to 3.0 and lbmin to 4.0. |
|
Alignement(Sequence sequence1,
Sequence sequence2,
double lpmin,
double lbmin)
Constructor of the alignment with given lpmin. |
Method Summary | |
---|---|
boolean |
equals(Alignement toCompare)
To know if instance of the class and an other are the same. |
static double |
getLbmin()
|
static double |
getLpmin()
|
int[][] |
getMatrice()
To get the score matrix. |
int |
getMatriceScore(int i,
int j)
To get a score at a specific position in the score matrix of reverse alignment. |
Palindrome |
getPalindrome(int score)
To get a Palindrome with a given score. |
Palindrome |
getPalindrome(int i,
int j)
To get Palindrome from a score at a specific position in the matrix. |
PalindromeListe |
getPalindromes()
To get the PalindromeListe of Palindrome's calculating by current instance of Alignment. |
Sequence |
getSequence1()
|
Sequence |
getSequence2()
|
boolean |
hasSameSequences()
To know if the two Sequence's reverse aligned are the same. |
static void |
init()
Deprecated. Not to use in other cases... |
private void |
initialise()
Initialization of the scoring matrix. |
static boolean |
isGoodPalindrome(int beg,
int end,
int len)
To know if a palindrome has to be selected or not, with criteria of length and loop (minimal length of palindrome and loop). |
static int |
maxInt(int[] tabInt)
To find a maximum int in a group of int (0 if group have no member). |
private void |
recoverPalindromes()
Searching for Palindrome's, only on the half of the matrix score. |
static int |
score(char x,
char y)
Scoring alignment between two char of two sequences. |
static int |
scoreBasic(char x,
char y)
Getting a score from two (2) bases. |
static void |
setLbmin(double lbmin)
|
static void |
setLpmin(double lpmin)
|
private void |
working()
Alignment work here, this is a research of Palindrome (normal and reverse sense). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int GU
private static final int AU
private static final int GC
private static final int B5GU
private static final int R5GU
private static boolean YR
private static boolean H5GA
private static boolean H5AA
private static boolean pairwise
B5GU
,
score(char, char)
private int[][] matrice
private Sequence sequence1
private Sequence sequence2
private PalindromeListe palindromes
private static double lpmin
Algorithms.getLongPalindMin()
private static double lbmin
Algorithms.getLongBoucleMin()
Constructor Detail |
---|
public Alignement(Sequence sequence)
sequence
- Sequence to reverse align against itselfAlignement(Sequence, Sequence)
,
initialise()
,
working()
,
recoverPalindromes()
public Alignement(Sequence sequence, double lpmin, double lbmin)
sequence
- Sequence to reverse align against itselfAlignement(Sequence, Sequence, double, double)
,
initialise()
,
working()
,
recoverPalindromes()
public Alignement(Sequence sequence1, Sequence sequence2)
sequence1
- First sequence.sequence2
- Second sequence.initialise()
,
working()
,
recoverPalindromes()
public Alignement(Sequence sequence1, Sequence sequence2, double lpmin, double lbmin)
sequence1
- First sequence.sequence2
- Second sequence.lpmin
- (double)Minimal length of Palindrome's to find.lbmin
- (double)Minimal length of loop's to find.initialise()
,
working()
,
recoverPalindromes()
Method Detail |
---|
public static void init()
YR
,
H5AA
,
H5GA
,
pairwise
public int getMatriceScore(int i, int j)
i
- (int) number of the line.j
- (int) number of the column.
public int[][] getMatrice()
public Palindrome getPalindrome(int i, int j)
i
- (int) number of the line.j
- (int) number of the column.
getPalindrome(int)
public Palindrome getPalindrome(int score)
score
- (int)
public PalindromeListe getPalindromes()
public Sequence getSequence1()
public Sequence getSequence2()
public static double getLpmin()
public static void setLpmin(double lpmin)
public static double getLbmin()
public static void setLbmin(double lbmin)
public boolean hasSameSequences()
public boolean equals(Alignement toCompare)
toCompare
- An other Alignment.
private void initialise()
Alignement(Sequence, Sequence)
,
Alignement(Sequence, Sequence, double, double)
private void working()
Alignement(Sequence, Sequence)
,
Alignement(Sequence, Sequence, double, double)
private void recoverPalindromes()
Alignement(Sequence, Sequence)
,
Alignement(Sequence, Sequence, double, double)
,
isGoodPalindrome(int, int, int)
public static boolean isGoodPalindrome(int beg, int end, int len)
beg
- (int)Beginning of palindrome.end
- (int)End of palindrome.len
- (int)Length of Palindrome
lpmin
,
lbmin
,
Algorithms.getLongPalindMin()
,
Algorithms.getLongBoucleMin()
,
Algorithms.setLongPalindMin(int)
,
Algorithms.setLongBoucleMin(int)
,
recoverPalindromes()
public static int score(char x, char y)
x
- char of first sequence.y
- char of second sequence.
working()
public static int scoreBasic(char x, char y)
x
- (char)y
- (char)
score(char, char)
public static int maxInt(int[] tabInt)
tabInt
- int[]
working()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |