|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodele.Palindrome
public class Palindrome
This class define object which are part of sequences found in
auto reverse alignment and cearching structure with positive score.
Old name of this class : Palindrome1 and fusion of
Palindrome1cible and Palindrome1test
Some protected methods : use in inheritant classe(s),
following indications of aim of these old classe(s).
Field Summary | |
---|---|
private int[] |
carac_max
Cible : Maximum characteristics ? |
private int[] |
carac_min
Cible : Minimum characteristics ? |
private int |
conservationInSequences
Cible : Number of conservation in sequences" |
private int |
count
For counting each time Palindrome / Helix is present. |
private boolean |
indeci
"Cible : Undecided" (default is false). |
private double |
longMut
Second rate of selection. |
private int |
longueur
Palindrome length. |
private int |
longueur1
Test : Length of complementary reverse 5' repetition. |
private int |
longueur2
Test : Length of complementary reverse 3' repetition. |
private Sequence |
mainSequence
Use when checking Conservation and relevance of palindrome. |
private int |
nombre_palindromes
Cible : Number of represented palindromes. |
private int |
nombreErreur
Nomber of errors. |
private int |
nombreMutationDouble
Nombres de Mutations Doubles (compensatoires). |
private int |
nombreMutationSimple
Nombres de Mutations Simples (consistantes). |
private double |
pertinence
Palindrome relevance [FR : pertinence]. |
private double |
poid
Palindrome weight. |
private int |
positionDebut
Position of the Palindrome on sequence (begin and end). |
private int |
positionFin
Position of the Palindrome on sequence (begin and end). |
private double |
pourcentage_conservation
Cible : Conservation rate / percentage (default is 1). |
private int |
realLength
Cible : "Real length" |
private double |
score
Palindrome score (S or M[i,j]). |
private double |
taux
Rate of selection. |
private int |
typeCritere
Cible : criterion type (default is TAUX_MUT == 3) |
Constructor Summary | |
---|---|
Palindrome(int debut,
int fin,
int longueur)
Short constructor with beginning, end and length of Palindrome. |
|
Palindrome(int debut,
int fin,
int longueur,
double score)
The complete constructor of an Palindrome Object. |
|
Palindrome(int debut,
int fin,
int longueur,
int typeCritere)
The complete constructor of a cible Palindrome. |
|
Palindrome(int debut,
int fin,
int longueur,
int longueur2,
boolean diff)
The complete constructor of a test Palindrome. |
Method Summary | |
---|---|
void |
change_position_debut(int pos)
|
void |
change_position_fin(int pos)
|
void |
changer_carac_max(int quelle_carac,
int nv_carac)
|
void |
changer_carac_min(int quelle_carac,
int nv_carac)
|
void |
changer_conservation(int conservation)
|
void |
changer_indeci(boolean b)
|
void |
changer_longueur_Reelle(int longueur)
|
void |
changer_longueur(int longueur)
|
void |
changer_nb_pal(int nv)
|
void |
changer_pourcentage_conservation(double nv)
|
boolean |
chevauchant(Palindrome p)
Deprecated. see also chevauchant(Palindrome, Palindrome) and equivalence(Palindrome, Palindrome) |
static boolean |
chevauchant(Palindrome pal1,
Palindrome pal2)
Cible : "Following methods sorted by use order in ADN1 Class". (17) "to know if two palindrome are crossed together" |
static Palindrome[] |
choisir_meilleur(int nb,
Palindrome[] tabpal)
Deprecated. [unused] Calling method ADN1cible.verifier_Conservation(Palindrome1cible, Palindrome1test, double, double, int, ADN1test[]) is not maintained in OtherAlgorithmsStefan ... |
void |
computeNumbers(Palindrome current)
This procedure to compute compensatory and single mutations number, and errors number between a test Palindrome (current instance) and a cible Palindrome. |
Palindrome |
copie()
Cible : To get a clone of the current instance of PalindromeCible. |
void |
countPlusPlus()
|
boolean |
equals(Palindrome toCompare)
To know if instance of the class and an other are the same. |
static boolean |
equivalence(Palindrome helix1,
Palindrome helix2)
To know if two helix are equivalent : (helix1 in helix2) or (helix2 in helix1). |
static boolean |
est_Compatible(Palindrome pal1,
Palindrome pal2)
Cible : "Following methods sorted by use order in ADN1 Class". (5) "To know if two palindromes are compatibles" After reading the code, not sure that fully correct... |
boolean |
est_indeci()
|
int |
getCount()
|
double |
getLongMut()
|
int |
getNombreErreur()
|
int |
getNombreMutationDouble()
|
int |
getNombreMutationSimple()
|
double |
getPertinence()
|
double |
getPoid()
|
int |
getPositionDebut()
|
int |
getPositionFin()
|
double |
getScore()
|
Sequence |
getSequence()
|
double |
getTaux()
|
boolean |
inclu_dans(Palindrome p)
Cible : "Following methods sorted by use order in ADN1 Class". (16) "this method to know if current instance is included in argument with common pairwise " |
boolean |
isCompatible(Palindrome with)
|
boolean |
isCompatibleWith(Palindrome other)
Deprecated. not exact... (see tests) |
boolean |
isScore(int score)
To check if current Palindrome has a given score. |
boolean |
isSelected(int Lmin)
Deprecated. DCFold => PDCFold |
boolean |
isSelectedCible(double Lmin,
double Stest,
boolean conservation)
For selection of Palindrome cible, if conservation is true : equation 4.11, else 4.12. |
boolean |
isSelectedTest(double Lmin)
For selection of Palindrome test. |
int |
length()
Length of the current instance of Palindrome. |
void |
nbErreursPlusPlus()
|
void |
nbMutDoublePlusPlus()
|
void |
nbMutSimplePlusPlus()
|
int |
nombre_sequence_conserve()
|
double |
quel_critere()
|
int |
quel_nb_pal()
|
double |
quel_pourcentage_conservation()
|
int |
quel_type_critere()
|
int |
quelle_carac_max(int i)
|
int |
quelle_carac_min(int i)
|
int |
quelle_longueur_reelle()
|
int |
quelle_longueur1()
|
int |
quelle_longueur2()
|
int |
quelle_position_debut()
|
int |
quelle_position_fin()
|
int |
rechercher_approx(java.util.Vector tabPal)
Deprecated. see also PalindromeListe.rechercher_approx(Palindrome) and PalindromeListe.whichPositionApprox(Palindrome) |
int |
rechercher(java.util.Vector tabPal)
Deprecated. see also PalindromeListe.rechercher(Palindrome) and PalindromeListe.whichPosition(Palindrome) |
static boolean |
rssh(Palindrome helix1,
Palindrome helix2)
To know if on two helix (Palindrome here), the second is included into the first. |
void |
setCountZero()
|
protected void |
setLength(int length)
|
void |
setLongMut(double longMut)
|
void |
setNombreErreur(int nombreErreur)
|
void |
setNombreMutationDouble(int nombreMutationDouble)
|
void |
setNombreMutationSimple(int nombreMutationSimple)
|
void |
setPertinence(double pertinence)
|
void |
setPoid(double poid)
|
protected void |
setPositionDebut(int positionDebut)
|
protected void |
setPositionFin(int positionFin)
|
void |
setScore(double score)
|
void |
setSequence(Sequence mainSequence)
|
void |
setTaux(double taux)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int longueur
private int positionDebut
private int positionFin
private int nombreMutationDouble
private int nombreMutationSimple
private int nombreErreur
private double score
private double poid
longMut
,
Palindrome(int, int, int)
,
Palindrome(int, int, int, double)
,
isSelectedTest(double)
,
isSelectedCible(double, double, boolean)
private double pertinence
isSelectedCible(double, double, boolean)
private double taux
isSelectedCible(double, double, boolean)
private double longMut
pertinence
,
isSelectedCible(double, double, boolean)
private Sequence mainSequence
Alignement.recoverPalindromes()
private int count
Algorithms.commonPrediction(Sequence, SequenceListe[])
private int realLength
private int[] carac_max
private int[] carac_min
private int nombre_palindromes
private int conservationInSequences
private boolean indeci
private double pourcentage_conservation
private int typeCritere
private int longueur1
private int longueur2
Constructor Detail |
---|
public Palindrome(int debut, int fin, int longueur)
debut
- (int) beginfin
- (int) endlongueur
- (int) lengthsetPoid(double)
public Palindrome(int debut, int fin, int longueur, double score)
debut
- (int) beginfin
- (int) endlongueur
- (int) lengthscore
- (double) ( == Alignement#matrice[i][j])Alignement.recoverPalindromes()
public Palindrome(int debut, int fin, int longueur, int typeCritere)
debut
- (int) beginfin
- (int) endlongueur
- (int) lengthtypeCritere
- (int) criterion typeAlignement.recoverPalindromes()
public Palindrome(int debut, int fin, int longueur, int longueur2, boolean diff)
debut
- (int) beginfin
- (int) endlongueur
- (int) lengthlongueur2
- (int) length2diff
- (boolean) [not used, just to make difference with Palindrome(int, int, int, int)]Alignement.recoverPalindromes()
Method Detail |
---|
public int length()
public int getPositionDebut()
public int getPositionFin()
public int getNombreMutationSimple()
public int getNombreMutationDouble()
public int getNombreErreur()
public double getPoid()
public double getPertinence()
public double getTaux()
public void setTaux(double taux)
public double getLongMut()
public void setLongMut(double longMut)
protected void setPositionDebut(int positionDebut)
protected void setPositionFin(int positionFin)
protected void setLength(int length)
public void setNombreMutationSimple(int nombreMutationSimple)
public void setNombreMutationDouble(int nombreMutationDouble)
public void setNombreErreur(int nombreErreur)
public void setPoid(double poid)
public void setPertinence(double pertinence)
public Sequence getSequence()
public void setSequence(Sequence mainSequence)
public double getScore()
public void setScore(double score)
public void nbMutDoublePlusPlus()
public void nbMutSimplePlusPlus()
public void nbErreursPlusPlus()
public boolean isSelected(int Lmin)
Lmin
- The value to compare with (int).
public boolean isSelectedTest(double Lmin)
Lmin
- The value to Compute with (double)
Algorithms.checkConservation(Palindrome, SequenceListe, int)
public boolean isSelectedCible(double Lmin, double Stest, boolean conservation)
Lmin
- (double) The value to compare withStest
- (int) Score Average of tests palindromesconservation
- (boolean)
Algorithms.searchAnchorPoints(modele.Sequence, modele.Alignement, double, modele.SequenceListe, int, int)
,
computeNumbers(Palindrome)
public boolean isScore(int score)
score
- The score to test (int).
public boolean isCompatibleWith(Palindrome other)
other
- PalindromeCibleAlgorithms.compatibilityTreatment(modele.PalindromeListe)
,
isCompatible(Palindrome)
public boolean isCompatible(Palindrome with)
public void computeNumbers(Palindrome current)
current
- One Palindrome of cible Sequence.Algorithms.searchAnchorPoints(modele.Sequence, modele.Alignement, double, modele.SequenceListe, int, int)
,
Algorithms.checkConservation(modele.Palindrome, modele.SequenceListe, int)
public int getCount()
public void setCountZero()
public void countPlusPlus()
public boolean equals(Palindrome toCompare)
toCompare
- An other Palindrome.
public static boolean rssh(Palindrome helix1, Palindrome helix2)
helix1
- First Palindromehelix2
- Second Palindrome
Algorithms.commonPrediction(Sequence, SequenceListe[]).
public static boolean equivalence(Palindrome helix1, Palindrome helix2)
helix1
- Palindromehelix2
- Palindrome
Algorithms.commonPrediction(Sequence, SequenceListe[]).
,
rssh(Palindrome, Palindrome)
public int quelle_position_debut()
public int quelle_position_fin()
public int quelle_longueur_reelle()
public double quel_pourcentage_conservation()
public boolean est_indeci()
public int quelle_carac_max(int i)
public int quelle_carac_min(int i)
public int quel_nb_pal()
public int quel_type_critere()
public double quel_critere()
public void change_position_debut(int pos)
public void change_position_fin(int pos)
public void changer_longueur(int longueur)
public void changer_longueur_Reelle(int longueur)
public void changer_pourcentage_conservation(double nv)
public void changer_indeci(boolean b)
public void changer_carac_max(int quelle_carac, int nv_carac)
public void changer_carac_min(int quelle_carac, int nv_carac)
public void changer_nb_pal(int nv)
public static boolean est_Compatible(Palindrome pal1, Palindrome pal2)
pal1
- (Palindrome1cible)pal2
- (Palindrome1cible)
OtherAlgorithmsStefan.incompatibilite_plusieurs_choix(PalindromeListeListe, int, int, int, double, boolean, int)
,
OtherAlgorithmsStefan.incompatibilite_un_choix(Palindrome[], int, int)
,
AlgorithmsStefan.incompatibilite_plusieurs_choix(PalindromeListeListe, int, int, int, double, boolean, int)
,
AlgorithmsStefan.incompatibilite_un_choix(Palindrome[], int, int)
,
isCompatible(Palindrome)
public boolean inclu_dans(Palindrome p)
p
- (Palindrome)
PalindromeListe.rechercher_approx(Palindrome)
,
OtherAlgorithmsStefan.incompatibilite_plusieurs_choix(PalindromeListeListe, int, int, int, double, boolean, int)
,
OtherAlgorithmsStefan.incompatibilite_un_choix(Palindrome[], int, int)
,
OtherAlgorithmsStefan.palindromes_communs(Palindrome[], Palindrome[], boolean)
,
XXX ??deprecated?? see also {@linkplain Palindrome#rssh(Palindrome, Palindrome)}
public boolean chevauchant(Palindrome p)
p
- (Palindrome)
AlgorithmsStefan.resultat_commun(PalindromeListeListe)
public static boolean chevauchant(Palindrome pal1, Palindrome pal2)
pal1
- (Palindrome)pal2
- (Palindrome)
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe)
,
AlgorithmsStefan.resultat_commun(PalindromeListeListe)
,
equivalence(Palindrome, Palindrome)
public int rechercher(java.util.Vector tabPal)
tabPal
- (Vector)
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe)
,
AlgorithmsStefan.resultat_commun(PalindromeListeListe)
public int rechercher_approx(java.util.Vector tabPal)
tabPal
- (Vector)
OtherAlgorithmsStefan.resultat_commun(PalindromeListeListe)
,
AlgorithmsStefan.resultat_commun(PalindromeListeListe)
public Palindrome copie()
OtherAlgorithmsStefan.computing(SequenceListe[], Sequence, boolean, boolean)
,
AlgorithmsStefan.computing(SequenceListe[], Sequence, boolean, boolean)
public void changer_conservation(int conservation)
public int nombre_sequence_conserve()
public int quelle_longueur1()
public int quelle_longueur2()
public static Palindrome[] choisir_meilleur(int nb, Palindrome[] tabpal)
OtherAlgorithmsStefan
...
nb
- (int) number of palindrome to choosetabpal
- (Palindromes1test[])
ADN1cible.verifier_Conservation(Palindrome1cible, Palindrome1test, double, double, int, ADN1test[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |