Dali Server Functions
This module defines functions for Dali searching Protein Data Bank.
- class prody.database.dali.DaliRecord(url, pdbId, chain, subset='fullPDB', localFile=False, **kwargs)[source]
A class to store results from Dali PDB search.
- fetch(url=None, localFile=False, **kwargs)[source]
Get Dali record from url or file.
- Parameters:
url (str) – url of Dali results page or local dali results file If None then the url already associated with the DaliRecord object is used.
localFile (bool) – whether provided url is a path for a local dali results file
timeout (int) – amount of time until the query times out in seconds default value is 120
localfolder (str) – folder in which to find the local file default is the current folder
- filter(cutoff_len=None, cutoff_rmsd=None, cutoff_Z=None, cutoff_identity=None, stringency=False)[source]
Filters a PDBList by a given set of cutoffs and returns a list of PDB IDs where PDBs that matched have been removed. PDBs that satisfy _any_ of the following criteria will be filtered out. (1) Length of aligned residues < cutoff_len (must be an integer or a float between 0 and 1); (2) RMSD < cutoff_rmsd (must be a positive number); (3) Z score < cutoff_Z (must be a positive number); (4) Identity > cutoff_identity (must be an integer or a float between 0 and 1).
Setting the stringency flag to True changes the behavior so that all filtering is by stringency. In this case, PDBs that satisfy _any_ of the following criteria will be filtered out:
Length of aligned residues < cutoff_len (must be an integer or a float between 0 and 1); (unchanged)
RMSD > cutoff_rmsd (must be a positive number); (inverted)
Z score < cutoff_Z (must be a positive number); (unchanged)
Identity < cutoff_identity (must be an integer or a float between 0 and 1). (inverted)
Leaving stringency False maintains old behavior.
- getFilterList()[source]
Returns a list of PDB IDs and chains for the entries that were filtered out
- property mappings
Get all mappings in the DaliRecord
- prody.database.dali.daliFilterMultimer(atoms, dali_rec, n_chains=None, reverse=False)[source]
Filters multimers to only include chains with Dali mappings.
- Parameters:
atoms (
Atomic) – the multimer to be filtereddali_rec (
DaliRecord) – the DaliRecord object with which to filter chainsn_chains – the number of chains in multimers to keep Default is None, keeping all multimers
n_chains – int
reverse (bool) – whether to reverse filtering to exclude by n_chain Default is False
- prody.database.dali.daliFilterMultimers(structures, dali_rec, n_chains=None, reverse=False)[source]
A wrapper for daliFilterMultimer to apply to multiple structures.
- Parameters:
dali_rec (
DaliRecord) – the DaliRecord object with which to filter chainsn_chains – the number of chains in multimers to keep Default is None, keeping all multimers
n_chains – int
reverse (bool) – whether to reverse filtering to exclude by n_chain Default is False
- prody.database.dali.searchDali(pdb, chain=None, subset='fullPDB', daliURL=None, **kwargs)[source]
Search Dali server with input of PDB ID (or local PDB file) and chain ID. Dali server: http://ekhidna2.biocenter.helsinki.fi/dali/