Base

Contents

Base#

class Base(c2_coords, c4_coords, c6_coords, midpoint_coords)[source]#

Bases: object

Represents a nucleotide base with x, y, z coordinates for C2, C4, and C6 atoms, and their average position at a single frame.

This class defines a data type ‘Base’ that consists of coordinates for the atoms C2, C4, and C6, as well as the midpoint of these atoms for a single residue at a single frame.

Attributes:
c2_coordsVector

(x, y, z) coordinates for the atom C2.

c4_coordsVector

(x, y, z) coordinates for the atom C4.

c6_coordsVector

(x, y, z) coordinates for the atom C6.

midpoint_coordsVector

(x, y, z) coordinates representing the midpoint of C2, C4, and C6.

__init__(c2_coords, c4_coords, c6_coords, midpoint_coords)[source]#

Initialize a Base instance.

Parameters:
c2_coordstuple

(x, y, z) coordinates for C2.

c4_coordstuple

(x, y, z) coordinates for C4.

c6_coordstuple

(x, y, z) coordinates for C6.

midpoint_coordstuple

(x, y, z) coordinates for the midpoint.