|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodele.Sequence
public class Sequence
This class to define a nucleic sequence / alignment
in different outpout format. Some variables are useful only
in SSCA Algorithm and are initialized by default at 0.0
because of Getters and Setters associated with...
Old name of this class : ADN1 and fusion of
ADN1cible and Sequence
Field Summary | |
---|---|
private double |
combiGUGC
SA : GU and GC combination effect [(4/4) helix alignment selection]. |
private double |
effetGC
SA : GC effect [(2/4) helix alignment selection]. |
private double |
effetGU
SA : GU effect [(1/4) helix alignment selection]. |
private double |
effetGUGC
SA : GU and GC effect [(3/4) helix alignment selection]. |
private double |
homologie
Percentage of homology / identity with cible sequence. |
private double |
indels
Percentage of insertions / deletions with cible sequence. |
private double |
indeterminate
Percentage of indetermination comparing with cible sequence. |
private int |
lengthAlign
Alignment length. |
private int |
longueur
Sequence length, without gap / indel count. |
private java.lang.String |
nom
Name of the sequence |
private static int |
nombreDecimale
Numbers of maximum elements of a real number (double) after dot / comma. |
private double[] |
score
Tab of scores of current sequence of length 7. |
private Base[] |
sequenceBase
Base tabled/ formatted sequence without gap's/ indel's. |
private char[] |
sequenceChar
Char tabled / formatted sequence without gap's / indel's. |
private java.lang.String |
sequenceString
Original String alignment / sequence. |
private double |
variabilite
SI : Identity score against cible [variability selection]. |
Constructor Summary | |
---|---|
Sequence()
Default constructor (empty name and sequence). |
|
Sequence(java.lang.String nom,
java.lang.String sequence)
Name and whole sequence constructor. |
Method Summary | |
---|---|
int |
calcul_Taille(Palindrome pal)
COMPATIBLE PALINDROME SEARCH "This method to compute internal sequence length at step i. |
void |
change_score(double[] sc)
To change current score of test sequence. |
java.lang.Object |
clone()
To get a copy of the current Sequence (only name and sequence). |
static java.lang.String |
convertBasesToString(Base[] subsequence)
To get a String from a Base[] (maybe useful after getting a subsequence). |
static java.lang.String |
convertDecimale(double number)
To convert a double to a specific length after dot / comma (default is 3) : returning String to visualize. |
boolean |
equals(Sequence toCompare)
To know if instance of the class and an other are the same. |
boolean |
est_Une_Base(char base)
Deprecated. Replace by use of Base.isBaseOrGap(char)... |
Sequence |
externalSequence(Palindrome P)
To get the external Sequence of a Palindrome on a Sequence. |
Base |
getBase(int position)
To get the Base at position [position] in the table of Base's. |
char |
getBaseAt(int position)
To get the character at position [position] in the alignment. |
char |
getBaseChar(int position)
To get the char of the Base at position [position] in the Base table. |
char |
getBaseIn(int position)
To get the character at position [position] in the table of character's. |
int |
getBasePos(int position)
To get the original position of the Base at position [position] in the Base table. |
Sequence |
getCarbonCopy()
==================================================================== |
double |
getCombiGUGC()
|
double |
getEffetGC()
|
double |
getEffetGU()
|
double |
getEffetGUGC()
|
double |
getHomologie()
|
double |
getIndels()
|
double |
getIndeterminate()
|
java.lang.String |
getNom()
|
static int |
getNombreDecimale()
|
double |
getScore(int var)
Return a score in the following (default is homology). |
java.lang.String |
getSequence()
|
Base[] |
getSequenceBase()
|
java.lang.String |
getSequenceBaseToString()
|
char[] |
getSequenceChar()
|
java.lang.String |
getSequenceCharToString()
|
java.lang.String |
getSequenceToString()
|
Base[] |
getSubSequence(int debut,
int fin)
To get a subsequence of the sequence (not of the alignment), start from 0 (positions debut AND fin are included). |
double |
getVariabilite()
|
Sequence |
internalSequence(Palindrome P)
To get the internal sequence of a palindrome on a Sequence. |
int |
length()
|
int |
lengthAlign()
|
static double |
limitDecimale(double number)
To convert a double to a specific length after dot / comma (default is 3) : returning double (could be useful). |
void |
mettre_etoile(Palindrome[] structure)
PSEUDOKNOTS SEARCH "This method to put stars (*) in found palindromes in aim to find pseudoknots" CIBLE SEQUENCE |
java.lang.String |
pourcentageBases()
Sum the percentage of each nucleotide. |
private void |
putSequence(java.lang.String sequence)
Factorization of input in memory of the sequence. |
double[] |
quel_score()
TEST SEQUENCE |
char |
quelle_base(int pos)
To get a Base at a specific position. |
int |
quelle_longueur_cible()
To get the length of the sequence. |
int |
quelle_longueur_test()
Length of aligned sequence (gap's included). |
void |
removeSubSequence(int debut,
int fin)
To remove a subSequence to the Base and Char Sequence, then including of alignment (removing bases replacing with gap's). |
void |
setCombiGUGC(double combiGUGC)
|
void |
setEffetGC(double effetGC)
|
void |
setEffetGU(double effetGU)
|
void |
setEffetGUGC(double effetGUGC)
|
void |
setHomologie(double homologie)
|
void |
setIndels(double indels)
|
void |
setIndeterminate(double indeterminate)
|
void |
setNom(java.lang.String nom)
|
static void |
setNombreDecimale(int nombreDecimale)
|
void |
setScore(int var,
double val)
Return a score in the following (default is homology). |
void |
setVariabilite(double variabilite)
|
java.lang.String |
toString(int debut,
int fin)
SOME SHOW FOR VIEW "To visualize considered sequence [current instance]" CIBLE SEQUENCE |
Base |
une_base(int position)
To get a Base at a specific position. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String nom
private int longueur
private int lengthAlign
private Base[] sequenceBase
private char[] sequenceChar
private java.lang.String sequenceString
private double variabilite
Algorithms.algoSSCA(Sequence, SequenceListe)
private double effetGU
Algorithms.algoSSCA(Sequence, SequenceListe)
private double effetGC
Algorithms.algoSSCA(Sequence, SequenceListe)
private double effetGUGC
Algorithms.algoSSCA(Sequence, SequenceListe)
private double combiGUGC
Algorithms.algoSSCA(Sequence, SequenceListe)
private double homologie
Algorithms.algoSSCA(Sequence, SequenceListe)
private double indels
Algorithms.algoSSCA(Sequence, SequenceListe)
private double indeterminate
Algorithms.algoSSCA(Sequence, SequenceListe)
private static int nombreDecimale
getNombreDecimale()
,
setNombreDecimale(int)
,
convertDecimale(double)
private double[] score
Constructor Detail |
---|
public Sequence()
public Sequence(java.lang.String nom, java.lang.String sequence)
nom
- Stringsequence
- StringputSequence(String)
Method Detail |
---|
private void putSequence(java.lang.String sequence)
sequence
- StringSequence(String, String)
public void setNom(java.lang.String nom)
public java.lang.String getNom()
public int length()
public int lengthAlign()
public java.lang.String getSequence()
public Base[] getSequenceBase()
public java.lang.String getSequenceToString()
public java.lang.String getSequenceBaseToString()
public char[] getSequenceChar()
public java.lang.String getSequenceCharToString()
public Base[] getSubSequence(int debut, int fin)
debut
- Beginning of the seusequence in the sequence.fin
- End of the subsequence in the sequence.
convertBasesToString(Base[])
public static java.lang.String convertBasesToString(Base[] subsequence)
subsequence
- Base[] of subsequence (for example).
getSubSequence(int, int)
public Base getBase(int position)
position
- int
Base
,
sequenceBase
public char getBaseIn(int position)
position
- int
sequenceChar
public char getBaseAt(int position)
position
- int
sequenceString
public char getBaseChar(int position)
position
- int
Base.getBase()
,
sequenceBase
public int getBasePos(int position)
position
- int
Base.getPosition()
,
sequenceBase
,
lengthAlign
public java.lang.String pourcentageBases()
public void removeSubSequence(int debut, int fin)
debut
- Beginning of removing (excluded).fin
- End of removing (excluded).Algorithms.newSequenceDeduction(modele.Sequence, modele.PalindromeListe)
public Sequence internalSequence(Palindrome P)
P
- Palindrome.
getSequence()
,
getSequenceBaseToString()
,
getSequenceCharToString()
public Sequence externalSequence(Palindrome P)
P
- Palindrome.
removeSubSequence(int, int)
,
getSequence()
,
getSequenceBaseToString()
,
getSequenceCharToString()
public double getVariabilite()
public double getEffetGC()
public double getEffetGU()
public double getEffetGUGC()
public double getCombiGUGC()
public double getHomologie()
public double getIndels()
public double getIndeterminate()
public double getScore(int var)
var
- (int)
SequenceListe.sortByDecreasing(int)
public void setScore(int var, double val)
var
- (int)val
- (double)public void setVariabilite(double variabilite)
public void setEffetGC(double effetGC)
public void setEffetGU(double effetGU)
public void setEffetGUGC(double effetGUGC)
public void setCombiGUGC(double combiGUGC)
public void setHomologie(double homologie)
public void setIndels(double indels)
public void setIndeterminate(double indeterminate)
public boolean equals(Sequence toCompare)
toCompare
- An other Sequence.
public java.lang.Object clone()
clone
in class java.lang.Object
public static java.lang.String convertDecimale(double number)
number
- (double)
getNombreDecimale()
,
setNombreDecimale(int)
,
nombreDecimale
public static double limitDecimale(double number)
number
- (double)
getNombreDecimale()
,
setNombreDecimale(int)
,
nombreDecimale
public static int getNombreDecimale()
public static void setNombreDecimale(int nombreDecimale)
public Base une_base(int position)
position
- (int)
ADN1cible.une_base(int)
public int quelle_longueur_cible()
ADN1cible.quelle_longueur()
public int calcul_Taille(Palindrome pal)
pal
- (Palinrome1cible)
AlgorithmsStefan.diviser_regner(Palindrome[], Sequence, Sequence[], int, int, int, int, boolean, int)
,
AlgorithmsStefan.recherche_Pseudonoeud(Sequence, Base[], Sequence[], boolean, int, int)
,
OtherAlgorithmsStefan.diviser_regner(Palindrome[], Sequence, Sequence[], int, int, int, int, boolean, int)
,
OtherAlgorithmsStefan.recherche_Pseudonoeud(Sequence, Base[], Sequence[], boolean, int, int)
,
XXX ??deprecated?? original from (Stefan Engelen)'s implementation
public void mettre_etoile(Palindrome[] structure)
structure
- (PalindromeCible[])AlgorithmsStefan.calcul_Resultat(Sequence, Sequence[], int, boolean, boolean)
,
AlgorithmsStefan.recherche_Pseudonoeud(Sequence, Base[], Sequence[], boolean, int, int)
,
OtherAlgorithmsStefan.calcul_Resultat(Sequence, Sequence[], int, boolean, boolean)
,
OtherAlgorithmsStefan.recherche_Pseudonoeud(Sequence, Base[], Sequence[], boolean, int, int)
,
Interface5.setInterface(origincomment.ADN1cible, origincomment.ADN1test[], int, int, int, int, int)
,
ADN1cible.mettre_etoile(int)
,
OriginAlgorithmsStefan.mettre_etoile(origincomment.ADN1cible, int)
public java.lang.String toString(int debut, int fin)
debut
- (int) beginfin
- (int) end
ADN1cible.afficher_Caracteristique()
,
ADN1cible.toString(int, int)
,
Interface12.setInterface(Profil, String, Palindrome1cible, int)
public double[] quel_score()
public void change_score(double[] sc)
sc
- (double[7])public char quelle_base(int pos)
pos
- (int)
ADN1test.quelle_base(int)
public int quelle_longueur_test()
ADN1cible.quelle_longueur()
public boolean est_Une_Base(char base)
base
- (char)
ADN1.est_Une_Base(char)
public Sequence getCarbonCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |