Skip to content
Snippets Groups Projects
Commit 2aefd980 authored by Nihama Sandra Ayumi's avatar Nihama Sandra Ayumi
Browse files

comments added in RotTable

parent 7dcbab36
No related branches found
No related tags found
No related merge requests found
......@@ -24,18 +24,21 @@ class RotTable:
"TT": [35.62, 7.2, -154, 0.06, 0.6, 0]\
}
# get the angles in each axis (x, y, z), considering the deviation
def __init__(self):
self.rot_table = {}
for dinucleotide in RotTable.__ORIGINAL_ROT_TABLE:
self.rot_table[dinucleotide] = RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][:3]
self.alea()
# get a random deviation, considering the "limits" given in the last 3 columns
# of __ORIGINAL_ROT_TABLE
def alea(self):
for dinucleotide in RotTable.__ORIGINAL_ROT_TABLE:
for i in range(2):
self.rot_table[dinucleotide][i] += numpy.random.uniform(low = -RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][i+3], high= RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][i+3])
# return __ORIGINAL_ROT_TABLE
def orta(self):
return self.__ORIGINAL_ROT_TABLE
......
No preview for this file type
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment