|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodele.Base
public class Base
A class for codification and input memory sequences. At start, it was only for cible sequences (original sequences were used as test char sequences in some parts of algorithms - profil computed data).
Sequence
Field Summary | |
---|---|
private char |
acgt
|
private int |
position
|
Constructor Summary | |
---|---|
Base(char base,
int position)
Standard constructor to record a sequence in Base structure without gaps for example. |
Method Summary | |
---|---|
boolean |
equals(Base toCompare)
To know if instance of the class and an other are the same. |
char |
getBase()
|
int |
getPosition()
|
static boolean |
isBase(char base)
To test if a char symbolize a nucleotids, all nucleotidic code is tested as UPPERCASE. |
static boolean |
isBaseOrGap(char base)
To test if nucleotids or gap / indel symbolized with '-'. |
static boolean |
matchBases(Base x,
Base y)
To know if two Base's can go together. |
static boolean |
matchBases(char x,
char y)
To know if two nucleotids (char) can go together. |
static boolean |
matchBasesGap(Base x,
Base y)
To know if two Base's can go together (including gap's). |
static boolean |
matchBasesGap(char x,
char y)
To know if two nucleotids (char) can go together (including gap's). |
static int |
scoreBases(char x,
char y)
Score for two nuleotids (char): Watson-Cricks and Wooble accepted. |
void |
setBase(char base)
|
void |
setPosition(int pos)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private char acgt
private int position
Constructor Detail |
---|
public Base(char base, int position)
base
- charposition
- intMethod Detail |
---|
public char getBase()
public int getPosition()
public void setBase(char base)
public void setPosition(int pos)
public boolean equals(Base toCompare)
toCompare
- An other Base.
public static boolean isBase(char base)
Adenine | A |
Thymine | T |
Guanine | G |
Cytosine | C |
Uracile | U |
Inosine | I |
Purine : Adenine or Guanine | R |
Pyrimidine : Thymine or Cytosine | Y |
Weak Hydrogen bonds : Adenine or Thymine | W |
Keto in major groove : Thymine or Guanine | K |
Strong hydrogen bonds : Cytosine or Guanine | S |
Amino in major groove : Adenine or Cytosine | M |
Not Adenine | B |
Not Thymine | V |
Not Cytosine | D |
Not Guanine | H |
Any | N |
Gap / Indel | - |
base
- char
public static boolean isBaseOrGap(char base)
base
- charpublic static int scoreBases(char x, char y)
x
- chary
- char
public static boolean matchBases(char x, char y)
x
- chary
- char
public static boolean matchBasesGap(char x, char y)
x
- chary
- char
public static boolean matchBases(Base x, Base y)
x
- Basey
- Base
public static boolean matchBasesGap(Base x, Base y)
x
- Basey
- Base
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |