Dali Server Functions¶
This module defines functions for Dali searching Protein Data Bank.
-
class
DaliRecord
(url, pdbId, chain, subset='fullPDB', localFile=False, **kwargs)[source]¶ A class to store results from Dali PDB search.
Instantiate a DaliRecord object instance.
Parameters: - url – url of Dali results page or local dali results file
- pdbId – PDB code for searched protein
- chain – chain identifier (only one chain can be assigned for PDB)
- subset – fullPDB, PDB25, PDB50, PDB90. Ignored if localFile=True (url is a local file)
- localFile – whether provided url is a path for a local dali results file
-
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)[source]¶ Filters out PDBs from the PDBList and returns the PDB list. PDBs that satisfy any of the following criterion 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).
-
getFilterList
()[source]¶ Returns a list of PDB IDs and chains for the entries that were filtered out
-
mappings
¶ Get all mappings in the DaliRecord
-
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/
Parameters:
-
daliFilterMultimer
(atoms, dali_rec, n_chains=None)[source]¶ Filters multimers to only include chains with Dali mappings.
Parameters: - atoms (
Atomic
) – the multimer to be filtered - dali_rec (
DaliRecord
) – the DaliRecord object with which to filter chains
- atoms (