Methods
-
angToCoord(coord)
-
Converts AB model Angle sequences to Coordinates sequences
Parameters:
Name Type Description coordArray Length of the desired sequence. -
Ann(seq, ang, l)
-
Algorithm inspired in Simulated Annealing
Parameters:
Name Type Description seqString String with the aminoacid's type sequence. angArray The angle sequence in radians. lint The limit of loops (stop criteria). -
C(i, j)
-
Calculates the coefficient "C" from a AB model pair (AB model energy calculation)
Parameters:
Name Type Description iString Type of the first aminoacid model ("A" or "B"). jString Type of the second aminoacid model ("A" or "B"). -
coordToAng(coord)
-
Converts AB model Coordinates sequences to Angle sequences
Parameters:
Name Type Description coordArray Length of the desired sequence. -
distance(Point, Point)
-
Calculates euclidean distance between two points
Parameters:
Name Type Description Pointi An object with x and y values ({x: Float, y: Float}) Pointj Another object with x and y values -
Ela(seq, ang, l, parameter, pop, parent, ang_num, rigs, rigf, rigm, rign, rigx, effs, efff)
-
Estimated Learning Algorithm
Parameters:
Name Type Description seqString String with the aminoacid's type sequence. angArray The angle sequence in radians. lint The limit of loops (stop criteria). parameterObject The parameters object {rigidity: Array, efficiency: Array}. popint The size of the population (number of solutions per loop). parentfloat The percentage of the population that will be reference to new solutions. ang_numint Number of angles changed per solution. rigsstring The expression that changes rigidity on successes. rigfstring The expression that changes rigidity on fails. rigmfloat Maximum value for rigidity. rignint Number of neightbors affected by rigidity. rigxstring The expression that changes neightbors rigidity value. effsstring The expression that changes efficiency on successes. efffstring The expression that changes efficiency on fails. -
energy(Protein)
-
Calculates the energy of a AB model protein
Parameters:
Name Type Description Proteinprotein A protein in AB model with a series of aminoacids -
fibonacci(l)
-
Fibonacci sequence with AB Model
Parameters:
Name Type Description lInt Length of the desired sequence. -
gaussRandom(e)
-
Gaussian Random with polar method - Sheldon Ross (pp. 464, 6ed)
Parameters:
Name Type Description eString Converts a Real Sequence to AB Model. A: [I, V, L, P, C, M, G] B: [D, E, F, H, K, N, Q, R, S, T, W, Y] -
onError(e)
-
Prints Error events to the debug console
Parameters:
Name Type Description eError Object with error degub info. -
realToAb(e)
-
Converts Real protein sequences to AB Model sequences - A: [I, V, L, P, C, M, G] B: [D, E, F, H, K, N, Q, R, S, T, W, Y]
Parameters:
Name Type Description eString Converts a Real Sequence to AB Model.