Class: Protein

Protein

new Protein(obj)

Represents a protein model.
Parameters:
Name Type Description
obj Object Protein options {[seq, ang || coord]}.
Properties
Name Type Description
seq String String with the aminoacid's type sequence.
ang Array The angle sequence in radians.
coord Array The aminocids coordinates (x, y).
Source:

Methods

getAngle(n)

Return an array with the angle sequence.
Parameters:
Name Type Description
n int [Optional] The float precision (Number of digits after the decimal point).
Source:

getCoord()

Return an array with the aminocids coordinates (x, y).
Source:

getSeq()

Return an string with the aminoacid's type sequence.
Source:

render(ctx)

Render the protein in a canvas.
Parameters:
Name Type Description
ctx Context The canvas context in witch the protein will be rendered.
Source: