Skip to content
Snippets Groups Projects
Commit 67b9abe6 authored by joan's avatar joan
Browse files

rename

parent a7163fb0
No related branches found
No related tags found
No related merge requests found
from Rot_Table import * from RotTable import *
from Traj3D import * from Traj3D import *
def main(): def main():
rot_table = Rot_Table() rot_table = RotTable()
traj = Traj3D() traj = Traj3D()
traj.compute("AAAGGATCTTCTTGAGATCCTTTTTTTCTGCGCGTAATCTGCTGCCAGTAAACGAAAAAACCGCCTGGGGAGGCGGTTTAGTCGAAGGTTAAGTCAG", rot_table) traj.compute("AAAGGATCTTCTTGAGATCCTTTTTTTCTGCGCGTAATCTGCTGCCAGTAAACGAAAAAACCGCCTGGGGAGGCGGTTTAGTCGAAGGTTAAGTCAG", rot_table)
......
import mathutils import mathutils
import math import math
class Rot_Table: class RotTable:
"""Represents the rotation table""" """Represents the rotation table"""
__ORIGINAL_ROT_TABLE = {\ __ORIGINAL_ROT_TABLE = {\
...@@ -40,12 +40,12 @@ class Rot_Table: ...@@ -40,12 +40,12 @@ class Rot_Table:
################### ###################
def getTwist(self, dinucleotide): def getTwist(self, dinucleotide):
return Rot_Table.__ORIGINAL_ROT_TABLE[dinucleotide][0] return RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][0]
def getWedge(self, dinucleotide): def getWedge(self, dinucleotide):
return Rot_Table.__ORIGINAL_ROT_TABLE[dinucleotide][1] return RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][1]
def getDirection(self, dinucleotide): def getDirection(self, dinucleotide):
return Rot_Table.__ORIGINAL_ROT_TABLE[dinucleotide][2] return RotTable.__ORIGINAL_ROT_TABLE[dinucleotide][2]
################### ###################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment