Targets¶
- This module contains all the functions to compute target values for molecular structures. The implemented targets at the moment are:
binary_class
: Binary class IDcapri_class
: CAPRI classdockQ
: DockQrmsd_fnat
: CAPRI metric IRMSD, LRMSD or FNAT
As you can see in the source each python file contained a __compute_target__
function. This is the function called in deeprank.generate
.
Here are detailed the function in charge of target calculations.
Binary class¶
-
deeprank.targets.binary_class.
__compute_target__
(decoy, targrp)[source]¶ Calculate binary class ID using IRMSD.
Parameters: - decoy (bytes) – pdb data of the decoy
- targrp (h5 file hadnle) – HDF5 ‘targets’ group
Examples
>>> f = h5py.File('1LFD.hdf5') >>> decoy = f['1LFD_9w/complex'][()] >>> targrp = f['1LFD_9w/targets']
CAPRI class¶
DockQ¶
RMSDs & FNAT¶
-
deeprank.targets.rmsd_fnat.
__compute_target__
(decoy, targrp, tarname, save_file=False)[source]¶ Calcuate CAPRI metric IRMSD, LRMSD or FNAT.
Parameters: Returns: value of IRMSD, LRMSD or FNAT.
Return type: Raises: ValueError
– Wrong target nameValueError
– native complex not existValueError
– native complex has empty dataset
Examples
>>> f = h5py.File('1LFD.hdf5') >>> decoy = f['1LFD_9w/complex'][()] >>> targrp = f['1LFD_9w/targets']