Class: Structure

Structure()

Draw a structure

Constructor

new Structure()

Source:

Extends

Methods

addBP(i, j)

Add additional basepair (i, j) The function check whether (i, j) fit planar unless the flag noplanar is set
Parameters:
Name Type Description
i int | ModelBase index of ModelBase object of i
j int | ModelBase index of ModelBase object of j
Inherited From:
Source:

addBPAux(i)

Add aux basepair (i, j)
Parameters:
Name Type Description
i int | ModelBase -
Inherited From:
Source:

applyBasesStyle(style, …bases)

Apply base style to given bases The function assigns a number (the order) to given ModelBaseStyle object Bases will be grouped with class `basegroup${number}`
Parameters:
Name Type Attributes Description
style ModelBaseStyle base style to apply
bases ModelBase | int <repeatable>
bases (could be either ModelBase object or the index in baseList) to apply on
Inherited From:
Source:

createCy(container)

Create cytoscape drawing
Parameters:
Name Type Description
container Element where to draw cytoscape
Source:

cyOfBPs()

Return basepair to draw in cytoscape format
Inherited From:
Source:

cyOfBackbones()

Return backbones to draw in cytoscape format
Inherited From:
Source:

cyOfBaseNum()

Return base number to draw in cytoscape format
Inherited From:
Source:

cyOfBases()

Return bases to draw in cytoscape format
Inherited From:
Source:

elOfAuxBPs()

Returns aux basepair in cytoscape edge element list with classes set to basepair and auxbp
Inherited From:
Source:

elOfBackbones()

Returns backbone in cytoscape edge element list with classes set to backbone
Inherited From:
Source:

elOfBases()

Returns bases in cytoscape node element list
Inherited From:
Source:

elOfPlanarBPs()

Returns planar basepair in cytoscape edge element list with classes set to basepair and planarbp
Inherited From:
Source:

elOfSingleBP()

Returns cytoscape edge element for one single bp
Inherited From:
Source:

setConfig(cfg)

Set drawing configuration
Parameters:
Name Type Description
cfg VARNAConfig configuration to draw
Inherited From:
Source:

styleOfBPs()

Return basepair style in cytoscape format
Inherited From:
Source:

styleOfBackbones()

Return backbone style in cytoscape format
Inherited From:
Source:

styleOfBases()

Returns base style in cytoscape style
Inherited From:
Source:

(static) fromEBIJson(n, data, seq)

Create Drawing from ebi basepair interaction json
Parameters:
Name Type Description
n int RNA length
data json basepair interaction produced by FR3D
seq string sequence
Source: