public class RnaScene
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
boolean |
drawFlipped
Whether this nucleotides were drawn flipped (Clockwise) or normal (Counter-Clockwise)
|
SceneDrawMode |
drawMode |
History<HistoryState> |
history |
private java.util.List<Nuc> |
nucs |
StrandList |
strands |
java.lang.String |
title |
Constructor and Description |
---|
RnaScene() |
Modifier and Type | Method and Description |
---|---|
Bond |
addBond(Bond.BondInfo bond) |
private Bond |
addBond(Bond b) |
Bond |
addBond(int nuc1,
int nuc2,
BondType type) |
Bond |
addBond(Nuc nuc1,
Nuc nuc2) |
Bond |
addBond(Nuc nuc1,
Nuc nuc2,
BondType type) |
Strand |
addStrand() |
java.util.List<Nuc> |
allNucs()
Returns a read-only list of all nucleotides.
|
void |
breakBond(Bond b) |
void |
breakBonds(int... nucIndices) |
int[] |
buildStrandIndex(int start,
int gapBetweenStrands)
Creates a lookup-index where element[I] is the starting nuclotide index of the nucleotide belonging to strand[I].
|
void |
clearBonds() |
void |
colorize(SceneColorizer c) |
void |
copyBonds(RnaScene copyFrom) |
void |
divideStrand(Nuc n) |
Strand |
firstStrand() |
java.util.List<Bond> |
getBonds() |
java.util.List<Bond> |
getBonds(boolean includePseudo) |
java.util.List<Bond> |
getBonds(java.lang.Iterable<Nuc> region,
boolean includePseudo)
Get all bonds associated with nucleotides in the specified region, which can be a Strand or a Motif etc.
|
Motif.Branch |
getBranch(Nuc nuc) |
Motif.Domain |
getDomain(Nuc nuc) |
java.util.List<Motif.Helix> |
getHelices()
Returns the list of helices in the RNA scene
|
Motif.Helix |
getHelix(Nuc nuc) |
Motif.Loop |
getLoop(Nuc nuc) |
java.util.List<Motif.Loop> |
getLoops() |
java.util.List<Motif.MultiLoop> |
getMultiLoops(int minimumBranches,
boolean includeExterior) |
Nuc |
getNuc(int index) |
int |
getNucCount() |
RnaSceneState |
getState() |
Strand |
getStrand(int strandIndex) |
Strand |
getStrand(int strandIndex,
boolean createIfNotExisting) |
boolean |
hasBonds() |
void |
identifyPseudoknots() |
void |
joinStrands(Strand s1,
Strand s2) |
void |
loadState(RnaSceneState state) |
Nuc |
nucAtSceneIndex(int index) |
void |
removeNucs(Nuc[] nucs) |
Strand |
secondStrand() |
public boolean drawFlipped
public SceneDrawMode drawMode
public History<HistoryState> history
private java.util.List<Nuc> nucs
public StrandList strands
public java.lang.String title
public Bond addBond(Bond.BondInfo bond)
public Strand addStrand()
public java.util.List<Nuc> allNucs()
public void breakBond(Bond b)
public void breakBonds(int... nucIndices)
public int[] buildStrandIndex(int start, int gapBetweenStrands)
buildStrandIndex(0, 0) => int[] { 0, 10, 15 }
.. i.e. nucs: { S1{0-9}, S2{10-14}, S3{15-22} }
buildStrandIndex(0, 3) => int[] { 0, 13, 21 }
.. i.e. nucs: { S1{0-9}, S2{13-17}, S3{21-28} }
buildStrandIndex(1, 3) => int[] { 1, 14, 22 }
.. i.e. nucs: { S1{1-10}, S2{14-18}, S3{22-29} }start
- The desired index of the first nucleotide in the first strand.gapBetweenStrands
- The number of index positions to skip between strands (i.e. if inter-molecular linkers need to be inserted)public void clearBonds()
public void colorize(SceneColorizer c)
public void copyBonds(RnaScene copyFrom)
public void divideStrand(Nuc n)
public Strand firstStrand()
public java.util.List<Bond> getBonds()
public java.util.List<Bond> getBonds(boolean includePseudo)
public java.util.List<Bond> getBonds(java.lang.Iterable<Nuc> region, boolean includePseudo)
public Motif.Branch getBranch(Nuc nuc)
public Motif.Domain getDomain(Nuc nuc)
public java.util.List<Motif.Helix> getHelices()
public Motif.Helix getHelix(Nuc nuc)
public Motif.Loop getLoop(Nuc nuc)
public java.util.List<Motif.Loop> getLoops()
public java.util.List<Motif.MultiLoop> getMultiLoops(int minimumBranches, boolean includeExterior)
public Nuc getNuc(int index)
public int getNucCount()
public RnaSceneState getState()
public Strand getStrand(int strandIndex)
public Strand getStrand(int strandIndex, boolean createIfNotExisting)
public boolean hasBonds()
public void identifyPseudoknots()
public void loadState(RnaSceneState state)
public Nuc nucAtSceneIndex(int index)
public void removeNucs(Nuc[] nucs)
public Strand secondStrand()