From 496d98969a8e9eeb687e7dbd2e7144701493dcb3 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Thu, 19 Dec 2024 20:03:22 +0000 Subject: [PATCH] add other dali filter arguments --- prody/proteins/interactions.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/prody/proteins/interactions.py b/prody/proteins/interactions.py index 9643511ef..43b56a3b5 100644 --- a/prody/proteins/interactions.py +++ b/prody/proteins/interactions.py @@ -3832,7 +3832,8 @@ def runDali(pdb, chain, **kwargs): :arg chain: chain identifier :type chain: str - :arg cutoff_len: Length of aligned residues < cutoff_len (must be an integer or a float between 0 and 1) + :arg cutoff_len: Length of aligned residues < cutoff_len + (must be an integer or a float between 0 and 1) See searchDali for more details Default is 0.5 :type cutoff_len: float @@ -3841,6 +3842,18 @@ def runDali(pdb, chain, **kwargs): Default is 1.0 :type cutoff_rmsd: float + :arg cutoff_Z: Z score cutoff (see searchDali) + Default is None + :type cutoff_Z: float + + :arg cutoff_identity: RMSD cutoff (see searchDali) + Default is None + :type cutoff_identity: float + + :arg stringency: stringency for Dali cutoffs (see searchDali) + Default is False + :type stringency: bool + :arg subset_Dali: fullPDB, PDB25, PDB50, PDB90 Default is 'fullPDB' :type subset_Dali: str @@ -3871,6 +3884,10 @@ def runDali(pdb, chain, **kwargs): cutoff_len = kwargs.pop('cutoff_len', 0.5) cutoff_rmsd = kwargs.pop('cutoff_rmsd', 1.0) + cutoff_Z = kwargs.pop('cutoff_Z', None) + cutoff_identity = kwargs.pop('cutoff_identity', None) + stringency = kwargs.pop('stringency', False) + fixer = kwargs.pop('fixer', 'pdbfixer') subset_Dali = kwargs.pop('subset_Dali', 'fullPDB') subset = kwargs.pop('subset', 'ca') @@ -3883,7 +3900,9 @@ def runDali(pdb, chain, **kwargs): while not dali_rec.isSuccess: dali_rec.fetch() - pdb_ids = dali_rec.filter(cutoff_len=cutoff_len, cutoff_rmsd=cutoff_rmsd) + pdb_ids = dali_rec.filter(cutoff_len=cutoff_len, cutoff_rmsd=cutoff_rmsd, + cutoff_Z=cutoff_Z, cutoff_identity=cutoff_identity, + stringency=stringency) pdb_hits = [ (i[:4], i[4:]) for i in pdb_ids ] list_pdbs = []