Package org.helm.notation2
Class Nucleotide
java.lang.Object
org.helm.notation2.Nucleotide
- All Implemented Interfaces:
Serializable
public class Nucleotide extends Object implements Serializable
This is a data model class for nucleotide
- Author:
- ZHANGTIANHONG
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static intENDING_POSITION_TYPEstatic intMIDDLE_POSITION_TYPEstatic intSTARTING_POSITION_TYPE -
Constructor Summary
Constructors Constructor Description Nucleotide()Nucleotide(String notation, int postionType)Nucleotide(String symbol, String notation)Nucleotide(String symbol, String notation, int postionType) -
Method Summary
Modifier and Type Method Description static NucleotidefromJSON(String json)MonomergetBaseMonomer()get the base monomer, the return value could be null if this nucleotide does not have a baseMonomergetBaseMonomer(MonomerStore monomerStore)get the base monomer, the return value could be null if this nucleotide does not have a baseStringgetLinkerNotation()This method returns the HELM notation for nucleotide linkerStringgetNaturalAnalog()return the natural analog of this nucleotideStringgetNaturalAnalog(MonomerStore monomerStore)return the natural analog of this nucleotideStringgetNotation()StringgetNucleosideNotation()This method returns the HELM notation for nucleosideMonomergetPhosphateMonomer()return the phosphate monomer of this nucleotideMonomergetPhosphateMonomer(MonomerStore monomerStore)return the phosphate monomer of this nucleotideintgetPositionType()MonomergetSugarMonomer()get the sugar monomer, the return value could be null if the "nucleotide" does not has a sugarMonomergetSugarMonomer(MonomerStore monomerStore)get the sugar monomer, the return value could be null if the "nucleotide" does not has a sugarStringgetSymbol()booleanisModified()voidsetModified(boolean modified)Deprecated.voidsetNaturalAnalog(String naturalAnalog)Deprecated.voidsetNotation(String notation)voidsetPositionType(int positionType)voidsetSymbol(String symbol)StringtoJSON()booleanunmodifiedWithoutPhosphate()Returns true if the nucleotide is unmodified except for a missing phosphate group.
-
Field Details
-
STARTING_POSITION_TYPE
public static final int STARTING_POSITION_TYPE- See Also:
- Constant Field Values
-
MIDDLE_POSITION_TYPE
public static final int MIDDLE_POSITION_TYPE- See Also:
- Constant Field Values
-
ENDING_POSITION_TYPE
public static final int ENDING_POSITION_TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Nucleotide
public Nucleotide() -
Nucleotide
-
Nucleotide
-
Nucleotide
-
-
Method Details
-
getPositionType
public int getPositionType() -
setPositionType
public void setPositionType(int positionType) -
getSymbol
-
setSymbol
-
isModified
public boolean isModified() -
unmodifiedWithoutPhosphate
public boolean unmodifiedWithoutPhosphate()Returns true if the nucleotide is unmodified except for a missing phosphate group. If the nucleotide notation is empty, it returns true.- Returns:
- true or false
-
setModified
Deprecated. -
getNotation
-
setNotation
-
getNaturalAnalog
return the natural analog of this nucleotide- Returns:
- natural Analog or X if natural analog is not available
-
getNaturalAnalog
return the natural analog of this nucleotide- Parameters:
monomerStore- - store in which base monomer is located- Returns:
- natural Analog or X if natural analog is not available
-
setNaturalAnalog
Deprecated. -
getPhosphateMonomer
return the phosphate monomer of this nucleotide- Returns:
- phosphate monomer
-
getPhosphateMonomer
return the phosphate monomer of this nucleotide- Parameters:
monomerStore- - store in which phosphate monomer is located- Returns:
- phosphate monomer
-
getBaseMonomer
get the base monomer, the return value could be null if this nucleotide does not have a base- Returns:
- base monomer, could be null
-
getBaseMonomer
get the base monomer, the return value could be null if this nucleotide does not have a base- Parameters:
monomerStore- - store in which base monomer is located- Returns:
- base monomer, could be null
-
getSugarMonomer
get the sugar monomer, the return value could be null if the "nucleotide" does not has a sugar- Returns:
- sugar monomer
-
getSugarMonomer
get the sugar monomer, the return value could be null if the "nucleotide" does not has a sugar- Parameters:
monomerStore- - store in which sugar monomer is located- Returns:
- sugar monomer
-
getLinkerNotation
This method returns the HELM notation for nucleotide linker- Returns:
- linker notation
-
getNucleosideNotation
This method returns the HELM notation for nucleoside- Returns:
- nucleodie notation
-
fromJSON
-
toJSON
-