Package pl.poznan.put.structure
Class BasePair
java.lang.Object
pl.poznan.put.structure.BasePair
- All Implemented Interfaces:
Serializable
,Comparable<BasePair>
- Direct Known Subclasses:
ImmutableBasePair
@Immutable
public abstract class BasePair
extends Object
implements Serializable, Comparable<BasePair>
A pairing between two nucleotides' bases.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final BasePair
invert()
final boolean
is5to3()
static boolean
isCanonicalPair
(PdbResidue left, PdbResidue right) Checks if two residues are canonical base pairs by means of (1) distance between atoms which form hydrogen bonds and (2) checking if two bases face each other.abstract PdbNamedResidueIdentifier
left()
abstract PdbNamedResidueIdentifier
right()
final String
toString()
-
Constructor Details
-
BasePair
public BasePair()
-
-
Method Details
-
isCanonicalPair
Checks if two residues are canonical base pairs by means of (1) distance between atoms which form hydrogen bonds and (2) checking if two bases face each other.- Parameters:
left
- First residue.right
- Second residue.- Returns:
- True if there is a pair of C-G, A-U or G-U.
-
left
- Returns:
- The first residue.
-
right
- Returns:
- The second residue.
-
invert
-
is5to3
public final boolean is5to3()- Returns:
- True if the first residue is before the second one in 5'-3' order.
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<BasePair>
-