MCPcopy Create free account

hub / github.com/KexinZhangResearch/PhysDock / functions

Functions573 in github.com/KexinZhangResearch/PhysDock

↓ 38 callersFunctionmasked_mean
(mask, value, dim, eps=1e-9)
PhysDock/utils/tensor_utils.py:50
↓ 26 callersMethodto
Analogous to the to() method of torch Tensors Args: device: A torch device
PhysDock/utils/rigid_utils.py:763
↓ 23 callersFunctionconvert_md5_string
(string)
PhysDock/utils/io_utils.py:218
↓ 18 callersMethodcat
Concatenates transformations along a new dimension. Args: ts: A list of T objects
PhysDock/utils/rigid_utils.py:1240
↓ 18 callersMethoddetach
Returns a copy of the Rotation whose underlying Tensor has been detached from its torch graph. Returns:
PhysDock/utils/rigid_utils.py:792
↓ 18 callersFunctionload_txt
(filename: Union[str, PathLike])
PhysDock/utils/io_utils.py:21
↓ 15 callersMethodquery
(self, input_fasta_path: str, max_sequences: Optional[int] = None )
PhysDock/data/tools/nhmmer.py:180
↓ 14 callersFunctionload_pkl
( filename: Union[str, PathLike] )
PhysDock/utils/io_utils.py:33
↓ 13 callersFunctionparse_fasta
Parses FASTA string and returns list of strings with amino-acid sequences. Arguments: fasta_string: The string contents of a FASTA file.
PhysDock/data/tools/parsers.py:69
↓ 12 callersFunctionload_txt
(fname)
PhysDock/data/tools/parse_msas.py:13
↓ 11 callersFunctiondump_pkl
( obj: object, filename: Union[str, PathLike], compress: bool = False )
PhysDock/utils/io_utils.py:47
↓ 11 callersFunctiondump_txt
(obj: str, filename: Union[str, PathLike], )
PhysDock/utils/io_utils.py:65
↓ 10 callersMethod__init__
(self, c_s: int, c_z: int, inf: float, eps: float, no_blocks: int = 12)
PhysDock/models/layers/transformers.py:163
↓ 9 callersFunction_to_mat
(pairs)
PhysDock/utils/rigid_utils.py:146
↓ 9 callersFunctionload_json
( filename: Union[str, PathLike] )
PhysDock/utils/io_utils.py:26
↓ 9 callersFunctionrun_pool_tasks
(callback_fn, ls, num_workers=32, desc="Progress", return_dict=False, num_dict=1, **kwargs)
PhysDock/utils/io_utils.py:151
↓ 8 callersMethodload
( self, system_pkl_path, # Receptor chains: all_atom_positions pocket_res_feat Ligan
PhysDock/data/feature_loader.py:1004
↓ 8 callersFunctionparse_stockholm
Parses sequences and deletion matrix from stockholm format alignment. Args: stockholm_string: The string contents of a stockholm file. Th
PhysDock/data/tools/parsers.py:102
↓ 8 callersMethodwrite_pdb_block
(self, x_pred, infer_meta_data, receptor_only=False, ligand_only=False)
PhysDock/data/feature_loader.py:1230
↓ 7 callersFunctionmake_msa_features
Constructs a feature dict of MSA features.
PhysDock/data/tools/parse_msas.py:94
↓ 6 callersMethodget_rot_mats
Returns the underlying rotation as a rotation matrix tensor. Returns: The rotation as a rotation matrix tens
PhysDock/utils/rigid_utils.py:500
↓ 6 callersFunctionparse_stockholm_file
Parses sequences and deletion matrix from stockholm format alignment. Args: stockholm_string: The string contents of a stockholm file. Th
PhysDock/data/tools/parsers.py:164
↓ 6 callersMethodrealign_sto_with_fasta
(self, input_fasta_path, input_sto_path, output_sto_path: Optional = None)
PhysDock/data/tools/hmmalign.py:29
↓ 5 callersMethod__init__
(self, c_s, c_z, inf, eps)
PhysDock/models/primitives/attentions.py:221
↓ 5 callersFunctionfn
(ls, **kwargs)
PhysDock/utils/io_utils.py:102
↓ 4 callersMethod__init__
(self, ref_dim: int, c_a: int, c_ap: int, inf: float, eps: float, no_blocks_atom: int)
PhysDock/models/layers/diffusion_conditioning.py:98
↓ 4 callersFunctionexpress_coordinates_in_frame
(x, x_frames)
PhysDock/models/loss.py:184
↓ 4 callersFunctionexpress_coordinates_in_frame
(x, x_frames)
PhysDock/models/loss_module2.py:228
↓ 4 callersFunctionexpress_coordinates_in_frame
(x, x_frames)
PhysDock/models/loss_module3.py:214
↓ 4 callersFunctionexpress_coordinates_in_frame
(x, x_frames)
PhysDock/models/loss_module.py:224
↓ 4 callersFunctiongen_attn_mask
(mask, neg_inf)
PhysDock/utils/tensor_utils.py:642
↓ 4 callersMethodget_quats
Returns the underlying rotation as a quaternion tensor. Depending on whether the Rotation was initialized with a
PhysDock/utils/rigid_utils.py:516
↓ 4 callersFunctionmmcif_loop_to_list
Extracts loop associated with a prefix from mmCIF data as a list. Reference for loop_ in mmCIF: http://mmcif.wwpdb.org/docs/tutorials/mecha
PhysDock/data/tools/mmcif_parsing.py:140
↓ 4 callersFunctionparse_a3m
Parses sequences and deletion matrix from a3m format alignment. Args: a3m_string: The string contents of a a3m file. The first sequence i
PhysDock/data/tools/parsers.py:228
↓ 4 callersFunctionparse_protein_alignment_dir
(alignment_dir)
PhysDock/data/tools/parse_msas.py:216
↓ 4 callersFunctionsoftmax_cross_entropy
(logits, labels)
PhysDock/models/loss.py:21
↓ 4 callersFunctionsoftmax_cross_entropy
( logits: torch.Tensor, labels: torch.Tensor )
PhysDock/models/loss_module2.py:21
↓ 4 callersFunctionsoftmax_cross_entropy
( logits: torch.Tensor, labels: torch.Tensor )
PhysDock/models/loss_module3.py:21
↓ 4 callersFunctionsoftmax_cross_entropy
(logits, labels)
PhysDock/models/loss_module.py:21
↓ 4 callersFunctionuniform_random_rotation
(size, device, seed=None)
PhysDock/utils/tensor_utils.py:565
↓ 4 callersMethodunsqueeze
Analogous to torch.unsqueeze. The dimension is relative to the shared dimensions of the rotation/translation.
PhysDock/utils/rigid_utils.py:1220
↓ 4 callersFunctionweighted_rigid_align
Implements Algorithm 28. Weighted Rigid Align Args: x_pred: predicted atom positions, torch.Tensor, [..., num_samples, num_atoms, 3]
PhysDock/utils/tensor_utils.py:724
↓ 4 callersMethodwrite_pdb
(self, x_pred, fname, infer_meta_data, receptor_only=False, ligand_only=False)
PhysDock/data/feature_loader.py:1175
↓ 3 callersMethod__init__
(self, args)
tasks/unicore_train/__init__.py:277
↓ 3 callersFunction_get_minimal_slice_set
Produces an ordered sequence of tensor slices that, when used in sequence on a tensor with shape dims, yields tensors that contain ev
PhysDock/utils/tensor_utils.py:297
↓ 3 callersFunction_get_quat
(quat_key, dtype, device)
PhysDock/utils/rigid_utils.py:243
↓ 3 callersMethod_parse_io_tuples
(self, input_fasta_path, output_dir, convert_md5=True, prefix="protein")
PhysDock/data/alignment_runner.py:551
↓ 3 callersMethod_parse_io_tuples
(self, input_fasta_path, output_dir, convert_md5=True, prefix="protein")
PhysDock/data/alignment_runner_v2.py:205
↓ 3 callersMethod_parse_io_tuples
(self, input_fasta_path, output_dir, convert_md5=True, prefix="protein")
PhysDock/data/tools/alignment_runner.py:543
↓ 3 callersMethodapply
Applies the transformation to a coordinate tensor. Args: pts: A [*, 3] coordinate tensor. Return
PhysDock/utils/rigid_utils.py:1047
↓ 3 callersFunctiondump_json
(obj: Union[List, Dict], filename: Union[str, PathLike], )
PhysDock/utils/io_utils.py:70
↓ 3 callersMethodget_template_hits
Gets parsed template hits from the raw string output by the tool
PhysDock/data/tools/hhsearch.py:120
↓ 3 callersMethodget_templates
Computes the templates for a given query sequence
PhysDock/data/tools/templates.py:1145
↓ 3 callersMethodload
(self, sample_id)
PhysDock/data/feature_loader_plinder.py:1110
↓ 3 callersFunctionrot_matmul
Performs matrix multiplication of two rotation matrix tensors. Written out by hand to avoid AMP downcasting. Args:
PhysDock/utils/rigid_utils.py:24
↓ 3 callersFunctionrot_vec_mul
Applies a rotation to a vector. Written out by hand to avoid transfer to avoid AMP downcasting. Args: r: [*, 3,
PhysDock/utils/rigid_utils.py:64
↓ 3 callersFunctionrow_mul
(i)
PhysDock/utils/rigid_utils.py:38
↓ 3 callersFunctionuniform_random_rotation_np
(size)
PhysDock/utils/tensor_utils.py:493
↓ 2 callersFunctionPhysDockConfig
( inference_mode=True, model_name="medium", num_augmentation_sample=48, crop_
PhysDock/configs.py:4
↓ 2 callersMethod__init__
(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)
PhysDock/models/primitives/timestep_embeddings.py:90
↓ 2 callersMethod_add_assembly_feature
(self, all_chain_features, SEQ3)
PhysDock/data/feature_loader_plinder.py:286
↓ 2 callersMethod_build_profile
Builds a HMM for the aligned sequences given as an MSA string. Args: msa: A string with the aligned sequences, in A3M or STO format
PhysDock/data/tools/hmmbuild.py:81
↓ 2 callersFunction_calculate_bin_centers
Gets the bin centers from the bin edges. Args: breaks: [num_bins - 1] the error bin edges. Returns: bin_centers: [num_bins] the error bi
PhysDock/data/tools/get_metrics.py:23
↓ 2 callersFunction_extract_template_features
Parses atom positions in the target structure and aligns with the query. Atoms for each residue in the template structure are indexed to coincide
PhysDock/data/tools/templates.py:614
↓ 2 callersFunction_flat_idx_to_idx
( flat_idx: int, dims: Tuple[int], )
PhysDock/utils/tensor_utils.py:285
↓ 2 callersFunction_get_coor
(fname)
screening.py:369
↓ 2 callersFunction_get_coor
(fname)
redocking.py:359
↓ 2 callersFunction_get_hhr_line_regex_groups
( regex_pattern: str, line: str )
PhysDock/data/tools/parsers.py:455
↓ 2 callersFunction_get_indices
Returns indices for non-gap/insert residues starting at the given index.
PhysDock/data/tools/parsers.py:618
↓ 2 callersFunction_get_pdb_id_and_chain
Returns PDB id and chain id for an HHSearch Hit.
PhysDock/data/tools/templates.py:176
↓ 2 callersFunction_get_ref_mol_poses
(ref_mol, num_confs=128)
screening.py:251
↓ 2 callersFunction_keep_line
Function to decide which lines to keep.
PhysDock/data/tools/parsers.py:337
↓ 2 callersFunction_merge_features_from_multiple_chains
Merge features from multiple chains. Args: chains: A list of feature dictionaries that we want to merge. pair_msa_sequences: Whether to con
PhysDock/data/tools/msa_pairing.py:337
↓ 2 callersFunction_prefilter_hit
( query_sequence: str, hit: parsers.TemplateHit, max_template_date: datetime.datetime,
PhysDock/data/tools/templates.py:847
↓ 2 callersFunction_process_single_hit
Tries to extract template features from a single HHSearch hit.
PhysDock/data/tools/templates.py:893
↓ 2 callersMethod_query_chunk
Queries the database chunk using Jackhmmer.
PhysDock/data/tools/nhmmer.py:86
↓ 2 callersMethod_query_chunk
Queries the database chunk using Jackhmmer.
PhysDock/data/tools/jackhmmer.py:98
↓ 2 callersFunction_uniform_sphere_point
(size, device, seed=None)
PhysDock/utils/tensor_utils.py:545
↓ 2 callersFunction_uniform_sphere_point_np
(size)
PhysDock/utils/tensor_utils.py:484
↓ 2 callersMethod_update_chain_feature
(self, chain_feature, CONF_META_DATA)
PhysDock/data/feature_loader_plinder.py:169
↓ 2 callersFunction_update_hhr_residue_indices_list
Computes the relative indices for each residue with respect to the original sequence.
PhysDock/data/tools/parsers.py:464
↓ 2 callersFunctioncentre_random_augmentation
(x: torch.Tensor, x_exists, x_centre=None, s: float = 1.0, seed=None)
PhysDock/utils/tensor_utils.py:576
↓ 2 callersFunctioncentre_random_augmentation_np_apply
(ref_pos, atom_id_to_token_id)
PhysDock/utils/tensor_utils.py:526
↓ 2 callersFunctioncentre_random_augmentation_np_batch
(batch_ref_pos)
PhysDock/utils/tensor_utils.py:535
↓ 2 callersMethodconvert_msas_out_to_msa_features
( input_fasta_path, output_dir, msa_feature_dir, convert_md5=T
PhysDock/data/tools/dataset_manager.py:167
↓ 2 callersMethodconvert_msas_out_to_uniprot_msa_features
( input_fasta_path, output_dir, uniprot_msa_feature_dir, conve
PhysDock/data/tools/dataset_manager.py:313
↓ 2 callersMethodcuda
Moves the transformation object to GPU memory Returns: A version of the transformation on GPU
PhysDock/utils/rigid_utils.py:1384
↓ 2 callersFunctiondgram_from_positions
( pos: torch.Tensor, min_bin: float = 3.25, max_bin: float = 50.75, no_bins: f
PhysDock/utils/tensor_utils.py:689
↓ 2 callersFunctionempty_template_feats
(n_res)
PhysDock/data/tools/templates.py:158
↓ 2 callersFunctionfind_files
(directory, suffix="pkl", recursive=True)
PhysDock/utils/io_utils.py:16
↓ 2 callersFunctionget_activation
Helper function to get activation function from string. Args: act_fn (str): Name of activation function. Returns: nn.Module:
PhysDock/models/primitives/timestep_embeddings.py:18
↓ 2 callersFunctionget_representatives
(distance_matrix, num_clusters=5)
screening.py:402
↓ 2 callersFunctionget_representatives
(distance_matrix, num_clusters=5)
redocking.py:392
↓ 2 callersFunctionidentity_trans
( batch_dims: Tuple[int], dtype: Optional[torch.dtype] = None, device: Optional[torch.device] = N
PhysDock/utils/rigid_utils.py:106
↓ 2 callersFunctionimport_state_dict
( model: torch.nn.Module, ckpt_path: Union[str, os.PathLike], )
PhysDock/utils/import_weights.py:31
↓ 2 callersFunctioninvert_rot_mat
(rot_mat: torch.Tensor)
PhysDock/utils/rigid_utils.py:271
↓ 2 callersFunctionlower
()
PhysDock/utils/tensor_utils.py:368
↓ 2 callersFunctionminimize_energy
Function that minimizes energy, given topology, OpenMM system, and positions
PhysDock/data/relaxation.py:86
↓ 2 callersFunctionmodel_config
( model_name="full", max_recycling_iters=1, # 0 max_msa_clusters=128, # 32 c
PhysDock/configs_old.py:4
↓ 2 callersFunctionone_hot
(x, v_bins)
PhysDock/utils/tensor_utils.py:78
next →1–100 of 573, ranked by callers