Exemplo n.º 1
0
 def __init__(self, protein=None, n_jobs=-1, version=1, spr=0, **kwargs):
     self.protein = protein
     self.n_jobs = n_jobs
     self.version = version
     self.spr = spr
     model = randomforest(n_estimators=500,
                          oob_score=True,
                          n_jobs=n_jobs,
                          **kwargs)
     if version == 1:
         cutoff = 12
         descriptors = close_contacts(protein,
                                      cutoff=cutoff,
                                      protein_types=protein_atomic_nums,
                                      ligand_types=ligand_atomic_nums)
     elif version == 2:
         cutoff = np.array([0, 2, 4, 6, 8, 10, 12])
         descriptors = close_contacts(protein,
                                      cutoff=cutoff,
                                      protein_types=protein_atomic_nums,
                                      ligand_types=ligand_atomic_nums)
     elif version == 3:
         cutoff = 12
         cc = close_contacts(protein,
                             cutoff=cutoff,
                             protein_types=protein_atomic_nums,
                             ligand_types=ligand_atomic_nums)
         vina = autodock_vina_descriptor(protein)
         descriptors = ensemble_descriptor((vina, cc))
     super(rfscore, self).__init__(model,
                                   descriptors,
                                   score_title='rfscore_v%i' % self.version)
Exemplo n.º 2
0
Arquivo: binana.py Projeto: DrewG/oddt
 def __init__(self, protein = None):
     """ Descriptor build from binana script (as used in NNScore 2.0
     
     Parameters
     ----------
         protein: oddt.toolkit.Molecule object (default=None)
             Protein object to be used while generating descriptors.
     """
     self.protein = protein
     self.vina = autodock_vina(protein)
     # Close contacts descriptor generators
     cc_4_types = (('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'), ('A', 'FE'), ('A', 'HD'), ('A', 'MG'), ('A', 'MN'), ('A', 'N'), ('A', 'NA'), ('A', 'OA'), ('A', 'SA'), ('A', 'ZN'), ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'), ('C', 'C'), ('C', 'CL'), ('C', 'F'), ('C', 'HD'), ('C', 'MG'), ('C', 'MN'), ('C', 'N'), ('C', 'NA'), ('C', 'OA'), ('C', 'SA'), ('C', 'ZN'), ('CL', 'FE'), ('CL', 'HD'), ('CL', 'MG'), ('CL', 'N'), ('CL', 'OA'), ('CL', 'ZN'), ('F', 'HD'), ('F', 'N'), ('F', 'OA'), ('F', 'SA'), ('FE', 'HD'), ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'), ('HD', 'I'), ('HD', 'MG'), ('HD', 'MN'), ('HD', 'N'), ('HD', 'NA'), ('HD', 'OA'), ('HD', 'P'), ('HD', 'S'), ('HD', 'SA'), ('HD', 'ZN'), ('MG', 'NA'), ('MG', 'OA'), ('MN', 'N'), ('MN', 'OA'), ('N', 'N'), ('N', 'NA'), ('N', 'OA'), ('N', 'SA'), ('N', 'ZN'), ('NA', 'OA'), ('NA', 'SA'), ('NA', 'ZN'), ('OA', 'OA'), ('OA', 'SA'), ('OA', 'ZN'), ('S', 'ZN'), ('SA', 'ZN'), ('A', 'BR'), ('A', 'I'), ('A', 'P'), ('A', 'S'), ('BR', 'N'), ('BR', 'SA'), ('C', 'FE'), ('C', 'I'), ('C', 'P'), ('C', 'S'), ('CL', 'MN'), ('CL', 'NA'), ('CL', 'P'), ('CL', 'S'), ('CL', 'SA'), ('CU', 'HD'), ('CU', 'N'), ('FE', 'NA'), ('FE', 'SA'), ('I', 'N'), ('I', 'OA'), ('MG', 'N'), ('MG', 'P'), ('MG', 'S'), ('MG', 'SA'), ('MN', 'NA'), ('MN', 'P'), ('MN', 'S'), ('MN', 'SA'), ('N', 'P'), ('N', 'S'), ('NA', 'P'), ('NA', 'S'), ('OA', 'P'), ('OA', 'S'), ('P', 'S'), ('P', 'SA'), ('P', 'ZN'), ('S', 'SA'), ('SA', 'SA'), ('A', 'CU'), ('C', 'CD') )
     cc_4_rec_types, cc_4_lig_types = zip(*cc_4_types)
     self.cc_4 = cc_4_nn = close_contacts(protein, cutoff=4, protein_types=cc_4_rec_types, ligand_types=cc_4_lig_types, mode='atom_types_ad4', aligned_pairs=True)
     cc_25_types = [('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'), ('A', 'FE'), ('A', 'HD'), ('A', 'MG'), ('A', 'MN'), ('A', 'N'), ('A', 'NA'), ('A', 'OA'), ('A', 'SA'), ('A', 'ZN'), ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'), ('C', 'C'), ('C', 'CL'), ('C', 'F'), ('C', 'HD'), ('C', 'MG'), ('C', 'MN'), ('C', 'N'), ('C', 'NA'), ('C', 'OA'), ('C', 'SA'), ('C', 'ZN'), ('CD', 'OA'), ('CL', 'FE'), ('CL', 'HD'), ('CL', 'MG'), ('CL', 'N'), ('CL', 'OA'), ('CL', 'ZN'), ('F', 'HD'), ('F', 'N'), ('F', 'OA'), ('F', 'SA'), ('F', 'ZN'), ('FE', 'HD'), ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'), ('HD', 'I'), ('HD', 'MG'), ('HD', 'MN'), ('HD', 'N'), ('HD', 'NA'), ('HD', 'OA'), ('HD', 'P'), ('HD', 'S'), ('HD', 'SA'), ('HD', 'ZN'), ('MG', 'NA'), ('MG', 'OA'), ('MN', 'N'), ('MN', 'OA'), ('N', 'N'), ('N', 'NA'), ('N', 'OA'), ('N', 'SA'), ('N', 'ZN'), ('NA', 'OA'), ('NA', 'SA'), ('NA', 'ZN'), ('OA', 'OA'), ('OA', 'SA'), ('OA', 'ZN'), ('S', 'ZN'), ('SA', 'ZN')]
     cc_25_rec_types, cc_25_lig_types = zip(*cc_25_types)
     self.cc_25 = close_contacts(protein, cutoff=2.5, protein_types=cc_25_rec_types, ligand_types=cc_25_lig_types, mode='atom_types_ad4', aligned_pairs=True)
Exemplo n.º 3
0
    def __init__(self, protein = None):
        """ Descriptor build from binana script (as used in NNScore 2.0

        Parameters
        ----------
            protein: oddt.toolkit.Molecule object (default=None)
                Protein object to be used while generating descriptors.
        """
        self.protein = protein
        self.vina = oddt_vina_descriptor(protein, vina_scores = ['vina_affinity', 'vina_gauss1', 'vina_gauss2', 'vina_repulsion', 'vina_hydrophobic', 'vina_hydrogen'])
        # Close contacts descriptor generators
        cc_4_types = (('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'), ('A', 'FE'), ('A', 'HD'), ('A', 'MG'), ('A', 'MN'), ('A', 'N'), ('A', 'NA'), ('A', 'OA'), ('A', 'SA'), ('A', 'ZN'), ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'), ('C', 'C'), ('C', 'CL'), ('C', 'F'), ('C', 'HD'), ('C', 'MG'), ('C', 'MN'), ('C', 'N'), ('C', 'NA'), ('C', 'OA'), ('C', 'SA'), ('C', 'ZN'), ('CL', 'FE'), ('CL', 'HD'), ('CL', 'MG'), ('CL', 'N'), ('CL', 'OA'), ('CL', 'ZN'), ('F', 'HD'), ('F', 'N'), ('F', 'OA'), ('F', 'SA'), ('FE', 'HD'), ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'), ('HD', 'I'), ('HD', 'MG'), ('HD', 'MN'), ('HD', 'N'), ('HD', 'NA'), ('HD', 'OA'), ('HD', 'P'), ('HD', 'S'), ('HD', 'SA'), ('HD', 'ZN'), ('MG', 'NA'), ('MG', 'OA'), ('MN', 'N'), ('MN', 'OA'), ('N', 'N'), ('N', 'NA'), ('N', 'OA'), ('N', 'SA'), ('N', 'ZN'), ('NA', 'OA'), ('NA', 'SA'), ('NA', 'ZN'), ('OA', 'OA'), ('OA', 'SA'), ('OA', 'ZN'), ('S', 'ZN'), ('SA', 'ZN'), ('A', 'BR'), ('A', 'I'), ('A', 'P'), ('A', 'S'), ('BR', 'N'), ('BR', 'SA'), ('C', 'FE'), ('C', 'I'), ('C', 'P'), ('C', 'S'), ('CL', 'MN'), ('CL', 'NA'), ('CL', 'P'), ('CL', 'S'), ('CL', 'SA'), ('CU', 'HD'), ('CU', 'N'), ('FE', 'NA'), ('FE', 'SA'), ('I', 'N'), ('I', 'OA'), ('MG', 'N'), ('MG', 'P'), ('MG', 'S'), ('MG', 'SA'), ('MN', 'NA'), ('MN', 'P'), ('MN', 'S'), ('MN', 'SA'), ('N', 'P'), ('N', 'S'), ('NA', 'P'), ('NA', 'S'), ('OA', 'P'), ('OA', 'S'), ('P', 'S'), ('P', 'SA'), ('P', 'ZN'), ('S', 'SA'), ('SA', 'SA'), ('A', 'CU'), ('C', 'CD') )
        cc_4_rec_types, cc_4_lig_types = zip(*cc_4_types)
        self.cc_4 = cc_4_nn = close_contacts(protein, cutoff=4, protein_types=cc_4_rec_types, ligand_types=cc_4_lig_types, mode='atom_types_ad4', aligned_pairs=True)
        cc_25_types = [('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'), ('A', 'FE'), ('A', 'HD'), ('A', 'MG'), ('A', 'MN'), ('A', 'N'), ('A', 'NA'), ('A', 'OA'), ('A', 'SA'), ('A', 'ZN'), ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'), ('C', 'C'), ('C', 'CL'), ('C', 'F'), ('C', 'HD'), ('C', 'MG'), ('C', 'MN'), ('C', 'N'), ('C', 'NA'), ('C', 'OA'), ('C', 'SA'), ('C', 'ZN'), ('CD', 'OA'), ('CL', 'FE'), ('CL', 'HD'), ('CL', 'MG'), ('CL', 'N'), ('CL', 'OA'), ('CL', 'ZN'), ('F', 'HD'), ('F', 'N'), ('F', 'OA'), ('F', 'SA'), ('F', 'ZN'), ('FE', 'HD'), ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'), ('HD', 'I'), ('HD', 'MG'), ('HD', 'MN'), ('HD', 'N'), ('HD', 'NA'), ('HD', 'OA'), ('HD', 'P'), ('HD', 'S'), ('HD', 'SA'), ('HD', 'ZN'), ('MG', 'NA'), ('MG', 'OA'), ('MN', 'N'), ('MN', 'OA'), ('N', 'N'), ('N', 'NA'), ('N', 'OA'), ('N', 'SA'), ('N', 'ZN'), ('NA', 'OA'), ('NA', 'SA'), ('NA', 'ZN'), ('OA', 'OA'), ('OA', 'SA'), ('OA', 'ZN'), ('S', 'ZN'), ('SA', 'ZN')]
        cc_25_rec_types, cc_25_lig_types = zip(*cc_25_types)
        self.cc_25 = close_contacts(protein, cutoff=2.5, protein_types=cc_25_rec_types, ligand_types=cc_25_lig_types, mode='atom_types_ad4', aligned_pairs=True)
Exemplo n.º 4
0
 def __init__(self, protein = None, n_jobs = -1, version = 1, spr = 0, **kwargs):
     self.protein = protein
     self.n_jobs = n_jobs
     self.version = version
     self.spr = spr
     model = randomforest(n_estimators = 500, oob_score = True, n_jobs = n_jobs, **kwargs)
     if version == 1:
         cutoff = 12
         descriptors = close_contacts(protein, cutoff = cutoff, protein_types = protein_atomic_nums, ligand_types = ligand_atomic_nums)
     elif version == 2:
         cutoff = np.array([ 0,  2,  4,  6,  8, 10, 12])
         descriptors = close_contacts(protein, cutoff = cutoff, protein_types = protein_atomic_nums, ligand_types = ligand_atomic_nums)
     elif version == 3:
         cutoff = 12
         cc = close_contacts(protein, cutoff = cutoff, protein_types = protein_atomic_nums, ligand_types = ligand_atomic_nums)
         vina = autodock_vina_descriptor(protein)
         descriptors = ensemble_descriptor((vina, cc))
     super(rfscore,self).__init__(model, descriptors, score_title = 'rfscore')
Exemplo n.º 5
0
 def __init__(self, protein=None, n_jobs=-1, version=1, spr=0, **kwargs):
     self.protein = protein
     self.n_jobs = n_jobs
     self.version = version
     self.spr = spr
     if version == 1:
         cutoff = 12
         mtry = 6
         descriptors = close_contacts(protein,
                                      cutoff=cutoff,
                                      protein_types=protein_atomic_nums,
                                      ligand_types=ligand_atomic_nums)
     elif version == 2:
         cutoff = np.array([0, 2, 4, 6, 8, 10, 12])
         mtry = 14
         descriptors = close_contacts(protein,
                                      cutoff=cutoff,
                                      protein_types=protein_atomic_nums,
                                      ligand_types=ligand_atomic_nums)
     elif version == 3:
         cutoff = 12
         mtry = 6
         cc = close_contacts(protein,
                             cutoff=cutoff,
                             protein_types=protein_atomic_nums,
                             ligand_types=ligand_atomic_nums)
         vina_scores = [
             'vina_gauss1', 'vina_gauss2', 'vina_repulsion',
             'vina_hydrophobic', 'vina_hydrogen', 'vina_num_rotors'
         ]
         vina = oddt_vina_descriptor(protein, vina_scores=vina_scores)
         descriptors = ensemble_descriptor((vina, cc))
     model = randomforest(n_estimators=500,
                          oob_score=True,
                          n_jobs=n_jobs,
                          max_features=mtry,
                          bootstrap=True,
                          min_samples_split=6,
                          **kwargs)
     super(rfscore, self).__init__(model,
                                   descriptors,
                                   score_title='rfscore_v%i' % self.version)
Exemplo n.º 6
0
 def __init__(self, protein = None, n_jobs = -1, **kwargs):
     self.protein = protein
     self.n_jobs = n_jobs
     model = randomforest(n_estimators = 500, oob_score = True, n_jobs = n_jobs, **kwargs)
     descriptors = close_contacts(protein, cutoff = cutoff, protein_types = protein_atomic_nums, ligand_types = ligand_atomic_nums)
     super(rfscore,self).__init__(model, descriptors, score_title = 'rfscore')
Exemplo n.º 7
0
    def __init__(self, protein=None):
        """ Descriptor build from binana script (as used in NNScore 2.0

        Parameters
        ----------
            protein: oddt.toolkit.Molecule object (default=None)
                Protein object to be used while generating descriptors.
        """
        self.protein = protein
        self.titles = []
        self.vina = oddt_vina_descriptor(protein,
                                         vina_scores=[
                                             'vina_gauss1', 'vina_gauss2',
                                             'vina_repulsion',
                                             'vina_hydrophobic',
                                             'vina_hydrogen'
                                         ])
        self.titles += self.vina.titles
        # Close contacts descriptor generators
        cc_4_types = (('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'),
                      ('A', 'FE'), ('A', 'HD'), ('A', 'MG'), ('A', 'MN'),
                      ('A', 'N'), ('A', 'NA'), ('A', 'OA'), ('A', 'SA'),
                      ('A', 'ZN'), ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'),
                      ('C', 'C'), ('C', 'CL'), ('C', 'F'), ('C', 'HD'), ('C',
                                                                         'MG'),
                      ('C', 'MN'), ('C', 'N'), ('C', 'NA'), ('C', 'OA'),
                      ('C', 'SA'), ('C', 'ZN'), ('CL', 'FE'), ('CL', 'HD'),
                      ('CL', 'MG'), ('CL', 'N'), ('CL', 'OA'), ('CL', 'ZN'),
                      ('F', 'HD'), ('F', 'N'), ('F', 'OA'), ('F', 'SA'),
                      ('FE', 'HD'), ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'),
                      ('HD', 'I'), ('HD', 'MG'), ('HD', 'MN'), ('HD', 'N'),
                      ('HD', 'NA'), ('HD', 'OA'), ('HD', 'P'), ('HD', 'S'),
                      ('HD', 'SA'), ('HD', 'ZN'), ('MG', 'NA'), ('MG', 'OA'),
                      ('MN', 'N'), ('MN', 'OA'), ('N', 'N'), ('N', 'NA'),
                      ('N', 'OA'), ('N', 'SA'), ('N', 'ZN'), ('NA', 'OA'),
                      ('NA', 'SA'), ('NA', 'ZN'), ('OA', 'OA'), ('OA', 'SA'),
                      ('OA', 'ZN'), ('S', 'ZN'), ('SA', 'ZN'), ('A', 'BR'),
                      ('A', 'I'), ('A', 'P'), ('A', 'S'), ('BR', 'N'), ('BR',
                                                                        'SA'),
                      ('C', 'FE'), ('C', 'I'), ('C', 'P'), ('C', 'S'), ('CL',
                                                                        'MN'),
                      ('CL', 'NA'), ('CL', 'P'), ('CL', 'S'), ('CL', 'SA'),
                      ('CU', 'HD'), ('CU', 'N'), ('FE', 'NA'), ('FE', 'SA'),
                      ('I', 'N'), ('I', 'OA'), ('MG', 'N'), ('MG', 'P'), ('MG',
                                                                          'S'),
                      ('MG', 'SA'), ('MN', 'NA'), ('MN', 'P'), ('MN', 'S'),
                      ('MN', 'SA'), ('N', 'P'), ('N', 'S'), ('NA', 'P'), ('NA',
                                                                          'S'),
                      ('OA', 'P'), ('OA',
                                    'S'), ('P', 'S'), ('P', 'SA'), ('P', 'ZN'),
                      ('S', 'SA'), ('SA', 'SA'), ('A', 'CU'), ('C', 'CD'))
        cc_4_rec_types, cc_4_lig_types = zip(*cc_4_types)
        self.titles += ['cc_%s.%s_4' % (t1, t2) for t1, t2 in cc_4_types]
        self.cc_4 = cc_4_nn = close_contacts(protein,
                                             cutoff=4,
                                             protein_types=cc_4_rec_types,
                                             ligand_types=cc_4_lig_types,
                                             mode='atom_types_ad4',
                                             aligned_pairs=True)

        self.ele_types = (
            ('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'), ('A', 'FE'),
            ('A', 'HD'), ('A', 'MG'), ('A', 'MN'), ('A', 'N'), ('A', 'NA'),
            ('A', 'OA'), ('A', 'SA'), ('A', 'ZN'),
            ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'), ('C', 'C'),
            ('C', 'CL'), ('C', 'F'), ('C', 'HD'), ('C', 'MG'),
            ('C', 'MN'), ('C', 'N'), ('C', 'NA'), ('C', 'OA'), ('C', 'SA'),
            ('C', 'ZN'), ('CL', 'FE'), ('CL', 'HD'), ('CL', 'MG'),
            ('CL', 'N'), ('CL', 'OA'), ('CL', 'ZN'), ('F', 'HD'),
            ('F', 'N'), ('F', 'OA'), ('F', 'SA'), ('F', 'ZN'), ('FE', 'HD'),
            ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'), ('HD',
                                                      'I'), ('HD',
                                                             'MG'), ('HD',
                                                                     'MN'),
            ('HD', 'N'), ('HD', 'NA'), ('HD', 'OA'), ('HD', 'P'),
            ('HD', 'S'), ('HD', 'SA'), ('HD', 'ZN'), ('MG', 'NA'), ('MG',
                                                                    'OA'),
            ('MN', 'N'), ('MN',
                          'OA'), ('N', 'N'), ('N', 'NA'), ('N', 'OA'), ('N',
                                                                        'SA'),
            ('N', 'ZN'), ('NA', 'OA'), ('NA', 'SA'), ('NA', 'ZN'), ('OA',
                                                                    'OA'),
            ('OA',
             'SA'), ('OA',
                     'ZN'), ('S', 'ZN'), ('SA',
                                          'ZN'), ('A', 'BR'), ('A', 'I'),
            ('A', 'P'), ('A', 'S'), ('BR', 'N'), ('BR', 'SA'), ('C',
                                                                'FE'),
            ('C', 'I'), ('C', 'P'), ('C', 'S'), ('CL', 'MN'), ('CL',
                                                               'NA'), ('CL',
                                                                       'P'),
            ('CL', 'S'), ('CL', 'SA'), ('CU', 'HD'), ('CU', 'N'), ('FE', 'NA'),
            ('FE',
             'SA'), ('I', 'N'), ('I', 'OA'),
            ('MG', 'N'), ('MG', 'P'), ('MG', 'S'), ('MG', 'SA'), ('MN', 'NA'),
            ('MN', 'P'), ('MN', 'S'), ('MN', 'SA'), ('N', 'P'), ('N', 'S'),
            ('NA', 'P'), ('NA', 'S'), ('OA', 'P'), ('OA', 'S'), ('P', 'S'),
            ('P', 'SA'), ('P', 'ZN'), ('S', 'SA'), ('SA', 'SA'))
        self.titles += ['ele_%s.%s_4' % (t1, t2) for t1, t2 in self.ele_types]

        self.ligand_atom_types = [
            'A', 'BR', 'C', 'CL', 'F', 'HD', 'I', 'N', 'NA', 'OA', 'P', 'S',
            'SA'
        ]
        self.titles += ['lig_%s' % t1 for t1 in self.ligand_atom_types]

        cc_25_types = [('A', 'A'), ('A', 'C'), ('A', 'CL'), ('A', 'F'),
                       ('A', 'FE'), ('A', 'HD'), ('A', 'MG'), ('A', 'MN'),
                       ('A', 'N'), ('A', 'NA'), ('A', 'OA'), ('A', 'SA'),
                       ('A', 'ZN'), ('BR', 'C'), ('BR', 'HD'), ('BR', 'OA'),
                       ('C', 'C'), ('C', 'CL'), ('C', 'F'), ('C', 'HD'),
                       ('C', 'MG'), ('C', 'MN'), ('C', 'N'), ('C', 'NA'),
                       ('C', 'OA'), ('C', 'SA'), ('C', 'ZN'), ('CD', 'OA'),
                       ('CL', 'FE'), ('CL', 'HD'), ('CL', 'MG'), ('CL', 'N'),
                       ('CL', 'OA'), ('CL', 'ZN'), ('F', 'HD'), ('F', 'N'),
                       ('F', 'OA'), ('F', 'SA'), ('F', 'ZN'), ('FE', 'HD'),
                       ('FE', 'N'), ('FE', 'OA'), ('HD', 'HD'), ('HD', 'I'),
                       ('HD', 'MG'), ('HD', 'MN'), ('HD', 'N'), ('HD', 'NA'),
                       ('HD', 'OA'), ('HD', 'P'), ('HD', 'S'), ('HD', 'SA'),
                       ('HD', 'ZN'), ('MG', 'NA'), ('MG', 'OA'), ('MN', 'N'),
                       ('MN', 'OA'), ('N', 'N'), ('N', 'NA'), ('N', 'OA'),
                       ('N', 'SA'), ('N', 'ZN'), ('NA', 'OA'), ('NA', 'SA'),
                       ('NA', 'ZN'), ('OA', 'OA'), ('OA', 'SA'), ('OA', 'ZN'),
                       ('S', 'ZN'), ('SA', 'ZN')]
        cc_25_rec_types, cc_25_lig_types = zip(*cc_25_types)
        self.cc_25 = close_contacts(protein,
                                    cutoff=2.5,
                                    protein_types=cc_25_rec_types,
                                    ligand_types=cc_25_lig_types,
                                    mode='atom_types_ad4',
                                    aligned_pairs=True)
        self.titles += ['cc_%s.%s_2.5' % (t1, t2) for t1, t2 in cc_25_types]
        # H-Bonds (<4A)
        self.titles += [
            'hb_4_mol_backbone_alpha', 'hb_4_mol_backbone_beta',
            'hb_4_mol_backbone_other', 'hb_4_mol_sidechain_alpha',
            'hb_4_mol_sidechain_beta', 'hb_4_mol_sidechain_other',
            'hb_4_rec_backbone_alpha', 'hb_4_rec_backbone_beta',
            'hb_4_rec_backbone_other', 'hb_4_rec_sidechain_alpha',
            'hb_4_rec_sidechain_beta', 'hb_4_rec_sidechain_other'
        ]
        # Hydrophobic Contact <4A
        self.titles += [
            'hyd_4_backbone_alpha', 'hyd_4_backbone_beta',
            'hyd_4_backbone_other', 'hyd_4_sidechain_alpha',
            'hyd_4_sidechain_beta', 'hyd_4_sidechain_other', 'hyd_4_all'
        ]
        # Pi-stacking (<7.5A)
        self.titles += [
            'pi_stack_7.5_alpha', 'pi_stack_7.5_beta', 'pi_stack_7.5_other'
        ]
        # T-shaped Pi-Pi interaction
        self.titles += ['pi_t_7.5_alpha', 'pi_t_7.5_beta', 'pi_t_7.5_other']
        # Pi-cation (<6A)
        self.titles += [
            'pi_cat_mol_6_alpha', 'pi_cat_mol_6_beta', 'pi_cat_mol_6_other',
            'pi_cat_rec_6_alpha', 'pi_cat_rec_6_beta', 'pi_cat_rec_6_other'
        ]
        # Active site flexibility (<4A)
        self.titles += [
            'as_flex_backbone_alpha', 'as_flex_backbone_beta',
            'as_flex_backbone_other', 'as_flex_sidechain_alpha',
            'as_flex_sidechain_beta', 'as_flex_sidechain_other', 'as_flex_all'
        ]
        # Salt bridges (<5.5)
        self.titles += [
            'salt_bridge_5.5_alpha', 'salt_bridge_5.5_beta',
            'salt_bridge_5.5_other', 'salt_bridge_5.5_all'
        ]
        # Rotatable bonds
        self.titles += ['num_rotors']

        assert len(self.titles) == len(self)