Graph and Graph Generator
Graphs
- class deeprank_gnn.Graph.Graph[source]
Class that performs graph level action
get score for the graph (lrmsd, irmsd, fnat, capri_class, bin_class and dockQ)
networkx object (graph) to hdf5 format
networkx object (graph) from hdf5 format
- get_score(ref)[source]
Assigns scores (lrmsd, irmsd, fnat, dockQ, bin_class, capri_class) to a protein graph
- Parameters
ref (path) – path to the reference structure required to compute the different score
Residue Graphs
- class deeprank_gnn.ResidueGraph.ResidueGraph(pdb=None, pssm=None, contact_distance=8.5, internal_contact_distance=3, pssm_align='res', biopython=False)[source]
Class from which Residue features are computed
- Parameters
pdb (str, optional) – path to pdb file. Defaults to None.
pssm (str, optional) – path to pssm file. Defaults to None.
contact_distance (float, optional) – cutoff distance for external edges. Defaults to 8.5.
internal_contact_distance (int, optional) – cutoff distance for internal edges. Defaults to 3.
pssm_align (str, optional) – [description]. Defaults to ‘res’.
- check_execs()[source]
Checks if all the required external execs are installed.
- Raises
OSError – if execs not found
Graph Generator
Parrallel Graph Generator
- class deeprank_gnn.GraphGenMP.GraphHDF5(pdb_path, ref_path=None, graph_type='residue', pssm_path=None, select=None, outfile='graph.hdf5', nproc=1, use_tqdm=True, tmpdir='./', limit=None, biopython=False)[source]
Master class from which graphs are computed :param pdb_path: path to the docking models :type pdb_path: str :param ref_path: path to the reference model. Defaults to None. :type ref_path: str, optional :param graph_type: Defaults to ‘residue’. :type graph_type: str, optional :param pssm_path: path to the pssm file. Defaults to None. :type pssm_path: [type], optional :param select: filter files that starts with ‘input’. Defaults to None. :type select: str, optional :param outfile: Defaults to ‘graph.hdf5’. :type outfile: str, optional :param nproc: number of processors. Default to 1. :type nproc: int, optional :param use_tqdm: Default to True. :type use_tqdm: bool, optional :param tmpdir: Default to ./. :type tmpdir: str, optional :param limit: Default to None. :type limit: int, optional :param >>> pdb_path = ‘./data/pdb/1ATN/’: :param >>> pssm_path = ‘./data/pssm/1ATN/’: :param >>> ref = ‘./data/ref/1ATN/’: :param >>> GraphHDF5(pdb_path=pdb_path: graph_type=’residue’, outfile=’1AK4_residue.hdf5’) :param ref_path=ref: graph_type=’residue’, outfile=’1AK4_residue.hdf5’) :param pssm_path=pssm_path: graph_type=’residue’, outfile=’1AK4_residue.hdf5’) :param : graph_type=’residue’, outfile=’1AK4_residue.hdf5’)