cadnano.fileio.lattice module¶
-
class
HoneycombDnaPart¶ Bases:
objectSCAF_LOW = [[1, 11], [8, 18], [4, 15]] SCAF_HIGH = [[2, 12], [9, 19], [5, 16]] STAP_LOW = [[6, 16], [3, 13], [10, 20]] STAP_HIGH = [[7, 17], [4, 14], [0, 11]]
# from 0: DR U DL aka 210 90 330 SCAF_LOW = [[1, 12], [8, 19], [5, 15]] SCAF_HIGH = [[2, 13], [9, 20], [6, 16]] STAP_LOW = [[17], [3], [10]] STAP_HIGH = [[18], [4], [11]]
-
HELICAL_PITCH= 10.5¶
-
STEP= 21¶
-
SUB_STEP_SIZE= 7.0¶
-
TURNS_PER_STEP= 2.0¶
-
TWIST_OFFSET= -34.285714285714285¶
-
TWIST_PER_BASE= 34.285714285714285¶
-
static
isEvenParity(row, column)¶
-
static
isOddParity(row, column)¶
-
static
latticeCoordToPositionXY(radius, row, column, scale_factor=1.0)¶ make sure radius is a float
-
static
legacyLatticeCoordToPositionXY(radius, row, column, scale_factor=1.0)¶ make sure radius is a float
-
static
positionToLatticeCoord(radius, x, y, scale_factor=1.0)¶
-
static
positionToLatticeCoordRound(radius, x, y, round_up_row, round_up_col, scale_factor=1.0)¶
-
-
class
SquareDnaPart¶ Bases:
objectSCAF_LOW = [[4, 26, 15], [18, 28, 7], [10, 20, 31], [2, 12, 23]] SCAF_HIGH = [[5, 27, 16], [19, 29, 8], [11, 21, 0], [3, 13, 24]] STAP_LOW = [[31], [23], [15], [7]] STAP_HIGH = [[0], [24], [16], [8]]
-
HELICAL_PITCH= 10.666666666666666¶
-
STEP= 32¶
-
SUB_STEP_SIZE= 8.0¶
-
TURNS_PER_STEP= 3.0¶
-
TWIST_OFFSET= 196.875¶
-
TWIST_PER_BASE= 33.75¶
-
static
isEvenParity(row, column)¶
-
static
isOddParity(row, column)¶
-
static
latticeCoordToPositionXY(radius, row, column, scale_factor=1.0)¶
-
static
legacyLatticeCoordToPositionXY(radius, row, column, scale_factor=1.0)¶
-
static
positionToLatticeCoord(radius, x, y, scale_factor=1.0)¶
-
static
positionToLatticeCoordRound(radius, x, y, scale_factor=1.0)¶
-
