diff --git a/RotTable.py b/RotTable.py index 55d87b0f33583ab5d4442176b2d6475ac186d041..bcee29580aa9f90f53a240c4dafd995d6596a82b 100644 --- a/RotTable.py +++ b/RotTable.py @@ -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 diff --git a/__pycache__/RotTable.cpython-37.pyc b/__pycache__/RotTable.cpython-37.pyc index eace4b1c9a198d349c22181322d81371595ca2d7..77ac689bc55b7a2da3f537139c1edf0282d17f75 100644 Binary files a/__pycache__/RotTable.cpython-37.pyc and b/__pycache__/RotTable.cpython-37.pyc differ diff --git a/__pycache__/Traj3D.cpython-37.pyc b/__pycache__/Traj3D.cpython-37.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f7109d9eed1cccc1d2977773da0f78ab514515c7 Binary files /dev/null and b/__pycache__/Traj3D.cpython-37.pyc differ