GenomeScene

GenomeScene

new GenomeScene()

Source:

Extends

  • EventEmitter

Classes

GenomeScene

Members

chromData

Source:
Set data

(readonly) chromData

Source:

Methods

addToScene(sceneopt) → {GenomeScene}

Source:
add genome scene to a renderable scene. If not designated, will add to current parent application's scene.
Parameters:
Name Type Attributes Description
scene THREE.scene <optional>
THREE.scene to add
Returns:
return current object
Type
GenomeScene

getChromPositions(chromKey, startopt, endopt) → {Array}

Source:
get chromosome's positions points array.
Parameters:
Name Type Attributes Default Description
chromKey *
start number <optional>
0
end number <optional>
1
Returns:
[THREE.Vector3] path points array.
Type
Array

loadGenomeMesh()

Source:
Generate genome mesh, making an offset and add the mesh to base object.

moveToCenter()

Source:
Move the genome object to (0, 0, 0)

sceneObject() → {THREE.Object3D}

Source:
return an object that can be rendered in THREE.scene
Returns:
Type
THREE.Object3D

setChromHighlight(chromKey, start, end, coloropt)

Source:
Highlight part of a chromosome, actually this function adds a extrude line.
Parameters:
Name Type Attributes Description
chromKey *
start number [0-1]
end number [0-1]
color THREE.Color <optional>
color of the new extrude mesh.

setResolution(width, height)

Source:
Set resolution params, may update line materials
Parameters:
Name Type Description
width number viewport width
height number viewport height