public static class Motif.Loop extends Motif.Segment implements IMotif
Modifier and Type | Class and Description |
---|---|
static class |
Motif.Loop.LoopType |
Modifier and Type | Field and Description |
---|---|
private Motif.Loop.LoopType |
type |
end, start
Constructor and Description |
---|
Loop() |
Loop(Nuc start,
Nuc end) |
Loop(Nuc start,
Nuc end,
Motif.Loop.LoopType type) |
Modifier and Type | Method and Description |
---|---|
private static Motif.Loop.LoopType |
calcLoopType(Motif.Loop l) |
static java.util.List<Motif.Loop> |
findAll(RnaScene scene)
Find all distinct single-stranded regions in specified list of strands.
|
static Motif.Loop |
getLoop(Nuc nuc)
Return the single-stranded region (loop) that contains the given nuc or null if nuc is not in a loop (i.e.
|
static java.util.List<Bond> |
getMultiBranchBasePairs(Nuc n) |
static java.util.List<Bond> |
getMultiBranchBasePairs(Nuc n,
boolean includeExteriorLoop) |
static java.util.List<Bond> |
getMultiBranchBasePairs(Nuc n,
boolean includeExteriorLoop,
Bond.MultiLoopRole basePairRole)
Retrieve a list of all bonds that are part of a multi-branch loop.
|
Motif.Loop.LoopType |
getType() |
java.lang.String |
toString() |
getBases, getNuc3, getNuc5, getNucAt, orderNucs, size, swapNucs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBases, iterator, transformAll
private Motif.Loop.LoopType type
public Loop()
public Loop(Nuc start, Nuc end, Motif.Loop.LoopType type)
private static Motif.Loop.LoopType calcLoopType(Motif.Loop l)
public static java.util.List<Motif.Loop> findAll(RnaScene scene)
public static Motif.Loop getLoop(Nuc nuc)
public static java.util.List<Bond> getMultiBranchBasePairs(Nuc n, boolean includeExteriorLoop)
public static java.util.List<Bond> getMultiBranchBasePairs(Nuc n, boolean includeExteriorLoop, Bond.MultiLoopRole basePairRole)
n
- Any nucleotide in the multi-branch loop.
Note that if n is paired, it is technically possible for it to be simultaneously in two
adjacent multi-branch loops (assuming it belongs to a "helix" containing only a single base-pair).
For this reason, it is better to pass an unpaired nucleotide in for n, to avoid any ambiguity.includeExteriorLoop
- if false, null is returned if the given nucleotide is part of an exterior loop.
Otherwise all the branches starting at or after n will be included in the returned list
(but those BEFORE n will not be.)basePairRole
- Only applies when n is paired and the bases in either direction are unpaired (or paired
to bases in different helices than n).
(i.e. n is in a helix comprised of a single pair).
This parameter imfluences how the basepair is interpreted -- as an exit or entrance pair.public Motif.Loop.LoopType getType()
public java.lang.String toString()
toString
in class java.lang.Object