DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES = ['DC', 'DT', 'DU']
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES = {
    "C1'": "C1'",
    "C1*": "C1'",
    "C2": "C2",
    "C2'": "C2'",
    "C2*": "C2'",
    "C3'": "C3'",
    "C3*": "C3'",
    "C4'": "C4'",
    "C4*": "C4'",
    "C5'": "C5'",
    "C5*": "C5'",
    "C6": "C6",
    "N1": "N1",
    "O3'": "O3'",
    "O3*": "O3'",
    "O4'": "O4'",
    "O4*": "O4'",
    "O5'": "O5'",
    "O5*": "O5'",
    "P": "P"
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES = {
    "C1'": 0,
    "C2": 0,
    "C2'": 0,
    "C3'": 0,
    "C4'": 0,
    "C5'": 0,
    "C6": 0,
    "N1": 0,
    "O3'": 0,
    "O4'": 0,
    "O5'": 0
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION = [
    ("C1'", "C2'", 2.0, 0, 0),
    ("C2'", "C3'", 2.0, 0, 0),
    ("C3'", "C4'", 2.0, 0, 0),
    ("C4'", "O4'", 2.0, 0, 0),
    ("C1'", "O4'", 2.0, 0, 0),
    ("C3'", "O3'", 2.0, 0, 0),
    ("C4'", "C5'", 2.0, 0, 0),
    ("C5'", "O5'", 2.0, 0, 0),
    ("C1'", 'N1', 2.0, 0, 0),
    ("O3'", 'P', 2.5, 0, 1)
]
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION = [
    ("O5'", 'P', 2.5, 0, 0)
]
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE = {
    'measure': 'euclidean_angles',
    'restraint_names': ["aC4'C5'O5'", "aC4'C3'O3'", "aN1C1'C2'", "aC1'N1C2", "aC1'N1C6", "aN1C1'O4'", "aC2'C1'O4'", "aC2'C3'O3'", "aC1'C2'C3'", "aC2'C3'C4'", "aC3'C4'O4'", "aC1'O4'C4'", "aC3'C4'C5'", "aC5'C4'O4'"]
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE = {
    'measure': 'euclidean_angles',
    'restraint_names': ["tO4'C1'N1C2", "tC3'C4'C5'O5'", "pC1'C2'C3'C4'O4'"]
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_RESTRAINTS = [
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==All=All',
        'restraints': [['dist', "dC5'O5'", ["C5'", "O5'"], 1.421, 0.011], ['dist', "dC1'C2'", ["C1'", "C2'"], 1.525, 0.012], ['dist', "dC2'C3'", ["C2'", "C3'"], 1.523, 0.011]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_RESTRAINTS = [
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Gamma=gauche+',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 111.5, 1.7]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], -60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Gamma=gauche-',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 109.7, 1.8]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 180, 21.25]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Gamma=trans',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 110.0, 1.9]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Gamma=gauche+',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 112.8, 1.7]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], -60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Gamma=gauche-',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 111.0, 0.8]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 180, 21.25]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Gamma=trans',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 111.1, 1.6]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_RESTRAINTS = [
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti',
        'restraints': [['angle', "aC4'C3'O3'", ["C4'", "C3'", "O3'"], 110.7, 2.3]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn',
        'restraints': [['angle', "aC4'C3'O3'", ["C4'", "C3'", "O3'"], 109.8, 2.1]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_RESTRAINTS = [
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Base=pyrimidine',
        'restraints': [   ['angle', "aN1C1'C2'", ['N1', "C1'", "C2'"], None, None, None, None, "pyrimidine-N1-C1'-C2' or N9-C1'-C2'.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['angle', "aC1'N1C2", ["C1'", 'N1', 'C2'], None, None, None, None, "pyrimidine-C1'-N1-C2 or C1'-N9-C4.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['angle', "aC1'N1C6", ["C1'", 'N1', 'C6'], None, None, None, None, "pyrimidine-C1'-N1-C6 or C1'-N9-C8.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['angle', "aN1C1'O4'", ['N1', "C1'", "O4'"], None, None, None, None, "pyrimidine-N1-C1'-O4' or N9-C1'-O4'.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_RESTRAINTS = [
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Conformation=C2'-endo",
        'restraints': [['dist', "dC3'C4'", ["C3'", "C4'"], 1.527, 0.01], ['angle', "aC2'C1'O4'", ["C2'", "C1'", "O4'"], 106.0, 0.8]]
    },
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Conformation=C3'-endo",
        'restraints': [['dist', "dC3'C4'", ["C3'", "C4'"], 1.52, 0.009], ['angle', "aC2'C1'O4'", ["C2'", "C1'", "O4'"], 107.3, 0.6]]
    },
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Conformation=Other',
        'restraints': [['dist', "dC3'C4'", ["C3'", "C4'"], 1.531, 0.009], ['angle', "aC2'C1'O4'", ["C2'", "C1'", "O4'"], 106.2, 1.3]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_RESTRAINTS = [{
        'conditions': [], 'name': 'deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose', 'restraints': [['dist', "dC4'O4'", ["C4'", "O4'"], 1.445, 0.009]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_RESTRAINTS = [
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=anti__Conformation=C2'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 109.4, 2.4]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=anti__Conformation=C3'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 113.4, 2.1]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Conformation=Other',
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 111.9, 2.5]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=syn__Conformation=C2'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 110.1, 2.2]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=syn__Conformation=C3'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 114.2, 0.9]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Conformation=Other',
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 113.0, 1.7]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_RESTRAINTS = [
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose__Conformation=C2'-endo",
        'restraints': [   ['angle', "aC1'C2'C3'", ["C1'", "C2'", "C3'"], None, None, None, None, "deoxyribose-C2'-endo-C1'-C2'-C3'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC2'C3'C4'", ["C2'", "C3'", "C4'"], None, None, None, None, "deoxyribose-C2'-endo-C2'-C3'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC3'C4'O4'", ["C3'", "C4'", "O4'"], None, None, None, None, "deoxyribose-C2'-endo-C3'-C4'-O4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC1'O4'C4'", ["C1'", "O4'", "C4'"], None, None, None, None, "deoxyribose-C2'-endo-C1'-O4'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]]]
    },
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose__Conformation=C3'-endo",
        'restraints': [   ['angle', "aC1'C2'C3'", ["C1'", "C2'", "C3'"], None, None, None, None, "deoxyribose-C3'-endo-C1'-C2'-C3'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC2'C3'C4'", ["C2'", "C3'", "C4'"], None, None, None, None, "deoxyribose-C3'-endo-C2'-C3'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC3'C4'O4'", ["C3'", "C4'", "O4'"], None, None, None, None, "deoxyribose-C3'-endo-C3'-C4'-O4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC1'O4'C4'", ["C1'", "O4'", "C4'"], None, None, None, None, "deoxyribose-C3'-endo-C1'-O4'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]]]
    },
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose__Conformation=Other',
        'restraints': [   ['angle', "aC1'C2'C3'", ["C1'", "C2'", "C3'"], None, None, None, None, "deoxyribose-Other-C1'-C2'-C3'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC2'C3'C4'", ["C2'", "C3'", "C4'"], None, None, None, None, "deoxyribose-Other-C2'-C3'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC3'C4'O4'", ["C3'", "C4'", "O4'"], None, None, None, None, "deoxyribose-Other-C3'-C4'-O4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC1'O4'C4'", ["C1'", "O4'", "C4'"], None, None, None, None, "deoxyribose-Other-C1'-O4'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_RESTRAINTS = [
    {
        'conditions': [['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Gamma=gauche+',
        'restraints': [['dist', "dC4'C5'", ["C4'", "C5'"], 1.508, 0.009], ['angle', "aC3'C4'C5'", ["C3'", "C4'", "C5'"], 115.7, 1.2], ['angle', "aC5'C4'O4'", ["C5'", "C4'", "O4'"], 109.4, 1.0]]
    },
    {
        'conditions': [['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], -60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Gamma=gauche-',
        'restraints': [['dist', "dC4'C5'", ["C4'", "C5'"], 1.518, 0.009], ['angle', "aC3'C4'C5'", ["C3'", "C4'", "C5'"], 114.5, 1.2], ['angle', "aC5'C4'O4'", ["C5'", "C4'", "O4'"], 107.8, 0.9]]
    },
    {
        'conditions': [['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 180, 21.25]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Gamma=trans',
        'restraints': [['dist', "dC4'C5'", ["C4'", "C5'"], 1.509, 0.01], ['angle', "aC3'C4'C5'", ["C3'", "C4'", "C5'"], 113.8, 1.3], ['angle', "aC5'C4'O4'", ["C5'", "C4'", "O4'"], 109.9, 1.2]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_RESTRAINTS = [
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==All=All',
        'restraints': [   ['dist', "dC1'N1", ["C1'", 'N1'], None, None, None, None, "All-C1'-N1 or C1'-N9.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['dist', "dC1'O4'", ["C1'", "O4'"], None, None, None, None, "All-C1'-O4'.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]]]
    }
]
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES = ['DC', 'DT', 'DU']
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_PDB_CODES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_PDB_CODES

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES = {
    "C1'": "C1'",
    "C1*": "C1'",
    "C2": "C2",
    "C2'": "C2'",
    "C2*": "C2'",
    "C3'": "C3'",
    "C3*": "C3'",
    "C4'": "C4'",
    "C4*": "C4'",
    "C5'": "C5'",
    "C5*": "C5'",
    "C6": "C6",
    "N1": "N1",
    "O3'": "O3'",
    "O3*": "O3'",
    "O4'": "O4'",
    "O4*": "O4'",
    "O5'": "O5'",
    "O5*": "O5'",
    "P": "P"
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_ATOM_NAMES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_NAMES

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES = {
    "C1'": 0,
    "C2": 0,
    "C2'": 0,
    "C3'": 0,
    "C4'": 0,
    "C5'": 0,
    "C6": 0,
    "N1": 0,
    "O3'": 0,
    "O4'": 0,
    "O5'": 0
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_ATOM_RES = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ATOM_RES

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION = [
    ("C1'", "C2'", 2.0, 0, 0),
    ("C2'", "C3'", 2.0, 0, 0),
    ("C3'", "C4'", 2.0, 0, 0),
    ("C4'", "O4'", 2.0, 0, 0),
    ("C1'", "O4'", 2.0, 0, 0),
    ("C3'", "O3'", 2.0, 0, 0),
    ("C4'", "C5'", 2.0, 0, 0),
    ("C5'", "O5'", 2.0, 0, 0),
    ("C1'", 'N1', 2.0, 0, 0),
    ("O3'", 'P', 2.5, 0, 1)
]
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_REQUIRED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_REQUIRED_CONDITION

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION = [
    ("O5'", 'P', 2.5, 0, 0)
]
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_DISALLOWED_CONDITION = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISALLOWED_CONDITION

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE = {
    'measure': 'euclidean_angles',
    'restraint_names': ["aC4'C5'O5'", "aC4'C3'O3'", "aN1C1'C2'", "aC1'N1C2", "aC1'N1C6", "aN1C1'O4'", "aC2'C1'O4'", "aC2'C3'O3'", "aC1'C2'C3'", "aC2'C3'C4'", "aC3'C4'O4'", "aC1'O4'C4'", "aC3'C4'C5'", "aC5'C4'O4'"]
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_DISTANCE_MEASURE

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE = {
    'measure': 'euclidean_angles',
    'restraint_names': ["tO4'C1'N1C2", "tC3'C4'C5'O5'", "pC1'C2'C3'C4'O4'"]
}
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE
DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_CONDITION_DISTANCE_MEASURE = DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONDITION_DISTANCE_MEASURE

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_RESTRAINTS = [
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==All=All',
        'restraints': [['dist', "dC5'O5'", ["C5'", "O5'"], 1.421, 0.011], ['dist', "dC1'C2'", ["C1'", "C2'"], 1.525, 0.012], ['dist', "dC2'C3'", ["C2'", "C3'"], 1.523, 0.011]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_GAMMA_RESTRAINTS = [
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Gamma=gauche+',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 111.5, 1.7]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], -60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Gamma=gauche-',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 109.7, 1.8]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 180, 21.25]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Gamma=trans',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 110.0, 1.9]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Gamma=gauche+',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 112.8, 1.7]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], -60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Gamma=gauche-',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 111.0, 0.8]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 180, 21.25]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Gamma=trans',
        'restraints': [['angle', "aC4'C5'O5'", ["C4'", "C5'", "O5'"], 111.1, 1.6]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_RESTRAINTS = [
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti',
        'restraints': [['angle', "aC4'C3'O3'", ["C4'", "C3'", "O3'"], 110.7, 2.3]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn',
        'restraints': [['angle', "aC4'C3'O3'", ["C4'", "C3'", "O3'"], 109.8, 2.1]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_BASE_FUNC_OF_TORSION_CHI_RESTRAINTS = [
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Base=pyrimidine',
        'restraints': [   ['angle', "aN1C1'C2'", ['N1', "C1'", "C2'"], None, None, None, None, "pyrimidine-N1-C1'-C2' or N9-C1'-C2'.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['angle', "aC1'N1C2", ["C1'", 'N1', 'C2'], None, None, None, None, "pyrimidine-C1'-N1-C2 or C1'-N9-C4.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['angle', "aC1'N1C6", ["C1'", 'N1', 'C6'], None, None, None, None, "pyrimidine-C1'-N1-C6 or C1'-N9-C8.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['angle', "aN1C1'O4'", ['N1', "C1'", "O4'"], None, None, None, None, "pyrimidine-N1-C1'-O4' or N9-C1'-O4'.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CONFORMATION_RESTRAINTS = [
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Conformation=C2'-endo",
        'restraints': [['dist', "dC3'C4'", ["C3'", "C4'"], 1.527, 0.01], ['angle', "aC2'C1'O4'", ["C2'", "C1'", "O4'"], 106.0, 0.8]]
    },
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Conformation=C3'-endo",
        'restraints': [['dist', "dC3'C4'", ["C3'", "C4'"], 1.52, 0.009], ['angle', "aC2'C1'O4'", ["C2'", "C1'", "O4'"], 107.3, 0.6]]
    },
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Conformation=Other',
        'restraints': [['dist', "dC3'C4'", ["C3'", "C4'"], 1.531, 0.009], ['angle', "aC2'C1'O4'", ["C2'", "C1'", "O4'"], 106.2, 1.3]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_RESTRAINTS = [{
        'conditions': [], 'name': 'deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose', 'restraints': [['dist', "dC4'O4'", ["C4'", "O4'"], 1.445, 0.009]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_CHI_CONFORMATION_RESTRAINTS = [
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=anti__Conformation=C2'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 109.4, 2.4]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=anti__Conformation=C3'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 113.4, 2.1]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 180, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=anti__Conformation=Other',
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 111.9, 2.5]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=syn__Conformation=C2'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 110.1, 2.2]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5], ['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Chi=syn__Conformation=C3'-endo",
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 114.2, 0.9]]
    },
    {
        'conditions': [['torsion', "tO4'C1'N1C2", ["O4'", "C1'", 'N1', 'C2'], 0, 22.5]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Chi=syn__Conformation=Other',
        'restraints': [['angle', "aC2'C3'O3'", ["C2'", "C3'", "O3'"], 113.0, 1.7]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_SUGAR_CONFORMATION_FUNC_OF_TAU_MAX_RESTRAINTS = [
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 162, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose__Conformation=C2'-endo",
        'restraints': [   ['angle', "aC1'C2'C3'", ["C1'", "C2'", "C3'"], None, None, None, None, "deoxyribose-C2'-endo-C1'-C2'-C3'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC2'C3'C4'", ["C2'", "C3'", "C4'"], None, None, None, None, "deoxyribose-C2'-endo-C2'-C3'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC3'C4'O4'", ["C3'", "C4'", "O4'"], None, None, None, None, "deoxyribose-C2'-endo-C3'-C4'-O4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC1'O4'C4'", ["C1'", "O4'", "C4'"], None, None, None, None, "deoxyribose-C2'-endo-C1'-O4'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]]]
    },
    {
        'conditions': [['pseudorotation', "pC1'C2'C3'C4'O4'", ["C1'", "C2'", "C3'", "C4'", "O4'"], 18, 4.5]],
        'name': "deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose__Conformation=C3'-endo",
        'restraints': [   ['angle', "aC1'C2'C3'", ["C1'", "C2'", "C3'"], None, None, None, None, "deoxyribose-C3'-endo-C1'-C2'-C3'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC2'C3'C4'", ["C2'", "C3'", "C4'"], None, None, None, None, "deoxyribose-C3'-endo-C2'-C3'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC3'C4'O4'", ["C3'", "C4'", "O4'"], None, None, None, None, "deoxyribose-C3'-endo-C3'-C4'-O4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC1'O4'C4'", ["C1'", "O4'", "C4'"], None, None, None, None, "deoxyribose-C3'-endo-C1'-O4'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]]]
    },
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Sugar=deoxyribose__Conformation=Other',
        'restraints': [   ['angle', "aC1'C2'C3'", ["C1'", "C2'", "C3'"], None, None, None, None, "deoxyribose-Other-C1'-C2'-C3'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC2'C3'C4'", ["C2'", "C3'", "C4'"], None, None, None, None, "deoxyribose-Other-C2'-C3'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC3'C4'O4'", ["C3'", "C4'", "O4'"], None, None, None, None, "deoxyribose-Other-C3'-C4'-O4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]],
                          ['angle', "aC1'O4'C4'", ["C1'", "O4'", "C4'"], None, None, None, None, "deoxyribose-Other-C1'-O4'-C4'.pickle", ['tau_max', ["C1'", "C2'", "C3'", "C4'", "O4'"]]]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_GAMMA_RESTRAINTS = [
    {
        'conditions': [['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Gamma=gauche+',
        'restraints': [['dist', "dC4'C5'", ["C4'", "C5'"], 1.508, 0.009], ['angle', "aC3'C4'C5'", ["C3'", "C4'", "C5'"], 115.7, 1.2], ['angle', "aC5'C4'O4'", ["C5'", "C4'", "O4'"], 109.4, 1.0]]
    },
    {
        'conditions': [['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], -60, 8.75]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Gamma=gauche-',
        'restraints': [['dist', "dC4'C5'", ["C4'", "C5'"], 1.518, 0.009], ['angle', "aC3'C4'C5'", ["C3'", "C4'", "C5'"], 114.5, 1.2], ['angle', "aC5'C4'O4'", ["C5'", "C4'", "O4'"], 107.8, 0.9]]
    },
    {
        'conditions': [['torsion', "tC3'C4'C5'O5'", ["C3'", "C4'", "C5'", "O5'"], 180, 21.25]],
        'name': 'deoxyribose_pyrimidine_terminal_C5==Gamma=trans',
        'restraints': [['dist', "dC4'C5'", ["C4'", "C5'"], 1.509, 0.01], ['angle', "aC3'C4'C5'", ["C3'", "C4'", "C5'"], 113.8, 1.3], ['angle', "aC5'C4'O4'", ["C5'", "C4'", "O4'"], 109.9, 1.2]]
    }
]

DEOXYRIBOSE_PYRIMIDINE_TERMINAL_C5_ALL_FUNC_OF_TORSION_CHI_RESTRAINTS = [
    {
        'conditions': [],
        'name': 'deoxyribose_pyrimidine_terminal_C5==All=All',
        'restraints': [   ['dist', "dC1'N1", ["C1'", 'N1'], None, None, None, None, "All-C1'-N1 or C1'-N9.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]],
                          ['dist', "dC1'O4'", ["C1'", "O4'"], None, None, None, None, "All-C1'-O4'.pickle", ['torsion_chi', ["O4'", "C1'", 'N1', 'C2']]]]
    }
]