public static class Motif.Helix extends java.lang.Object implements IMotif
From this definition, it follows that a helix may be composed of either inter- or intra-molecular pairs but never both, and that a helix can include bases from at most two RNA strands.
Due to this definition, the only information required to store a helix unambiguously are the first and last bases of the series on either strand. Let these be called n5 and n3 (for the 5' and 3' bases respectively). It follows that n5 must belong to same strand as n3. Similarly n5.pairedTo must belong to the same strand as n3.pairedTo, but this is not necessarily the same strand that n5 and n3 belong to.
Modifier and Type | Field and Description |
---|---|
(package private) Nuc |
nuc5
The 5'-most nucleotide in the helix.
|
(package private) int |
pairCount
The number of basepairs in the helix.
|
Modifier | Constructor and Description |
---|---|
protected |
Helix(Nuc nuc5,
int pairCount) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
bondIsNextInHelix(Bond prev,
Bond current,
ObjTools.RefInt orientation)
Determines whether the "current" bond is immediately after the "prev" bond in a helix.
|
static java.util.List<Motif.Helix> |
findAll(RnaScene scene)
Find all distinct helices in specified list of strands.
|
Bond |
first() |
java.util.Collection<Nuc> |
getBases()
Get a set of all nucleotides included in the group.
|
static Motif.Helix |
getHelix(Nuc nuc)
Return the helix that contains the given nuc or null if nuc is not in a helix (ie.
|
Bond |
getPair(int index) |
RnaScene |
getScene() |
boolean |
isClockwise() |
protected static boolean |
isHelixBond(Bond b) |
boolean |
isHybrid()
Whether or not the helix contains inter-molecular pairs
(i.e.
|
boolean |
isParallel() |
Bond |
last() |
Bond |
lastPair() |
int |
size()
Get the number of base-pairs in the helix (which is half the number of nucleotides).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator, transformAll
Nuc nuc5
int pairCount
protected Helix(Nuc nuc5, int pairCount)
private static boolean bondIsNextInHelix(Bond prev, Bond current, ObjTools.RefInt orientation)
public static java.util.List<Motif.Helix> findAll(RnaScene scene)
public Bond first()
public java.util.Collection<Nuc> getBases()
INucGroup
public static Motif.Helix getHelix(Nuc nuc)
public Bond getPair(int index)
public RnaScene getScene()
public boolean isClockwise()
protected static boolean isHelixBond(Bond b)
public boolean isHybrid()
public boolean isParallel()
public Bond last()
public Bond lastPair()
public int size()