MCPcopy Create free account

hub / github.com/Wangchentong/Proteus / functions

Functions1,071 in github.com/Wangchentong/Proteus

↓ 3 callersFunctionexp
(A)
data/so3_utils.py:40
↓ 3 callersFunctionflatten_final_dims
(t: torch.Tensor, no_dims: int)
model/ipa_pytorch.py:29
↓ 3 callersFunctiongather_edges
(edges, neighbor_idx)
ProteinMPNN/training/model_utils.py:154
↓ 3 callersMethodidentity
Constructs an identity transformation. Args: shape: The desired shape d
openfold/utils/rigid_utils.py:911
↓ 3 callersMethodinvert_apply
Applies the inverse of the transformation to a coordinate tensor. Args: pts: A [*, 3] coordinate tensor
openfold/utils/rigid_utils.py:1124
↓ 3 callersFunctionmake_bond_key
Unique key to lookup bonds.
openfold/np/residue_constants.py:496
↓ 3 callersFunctionmake_bond_key
Unique key to lookup bonds.
data/residue_constants.py:443
↓ 3 callersFunctionmake_sequence_features
Construct a feature dict of sequence features.
openfold/data/data_pipeline.py:68
↓ 3 callersFunctionmmcif_loop_to_dict
Extracts loop associated with a prefix from mmCIF data as a dictionary. Args: prefix: Prefix shared by each of the data items in the loop.
data/mmcif_parsing.py:144
↓ 3 callersFunctionmsa
(channel_dim)
openfold/model/torchscript.py:98
↓ 3 callersFunctionone_hot
(x, v_bins)
openfold/utils/tensor_utils.py:60
↓ 3 callersFunctionplot_se3
(se3_vec, ax_lim=None, title=None, ax=None)
analysis/plotting.py:225
↓ 3 callersMethodreverse
Simulates the reverse SDE for 1 step Args: x_t: [..., 3] current positions at time t in angstroms. score_t: [..., 3]
data/r3_diffuser.py:108
↓ 3 callersFunctionrot_matmul
Performs matrix multiplication of two rotation matrix tensors. Written out by hand to avoid AMP downcasting. Args:
openfold/utils/rigid_utils.py:22
↓ 3 callersFunctionrot_vec_mul
Applies a rotation to a vector. Written out by hand to avoid transfer to avoid AMP downcasting. Args: r: [*, 3,
openfold/utils/rigid_utils.py:82
↓ 3 callersFunctionrotmat_to_rotvec
Convert a batch of rotation matrices to rotation vectors (logarithmic map from SO(3) to so(3)). The standard logarithmic map can be derived f
data/so3_utils.py:339
↓ 3 callersMethodsample
(self, X, randn, S_true, chain_mask, chain_encoding_all, residue_idx, mask=None, temperature=1.0, omit_AAs_np=
ProteinMPNN/protein_mpnn_utils.py:1154
↓ 3 callersFunctionskew_matrix_to_vector
Extract a rotation vector from the so(3) skew matrix basis. Args: skew_matrices (torch.Tensor): Skew matrices. Returns:
data/so3_utils.py:486
↓ 3 callersFunctionsoftmax
Softmax, but without automatic casting to fp32 when the input is of type bfloat16
openfold/model/primitives.py:204
↓ 3 callersFunctionstacked
Args: param_dict_list: A list of (nested) Param dicts to stack. The structure of each dict must be the identical
openfold/utils/import_weights.py:74
↓ 3 callersFunctiontied_featurize
Pack and pad batch into torch tensors
ProteinMPNN/protein_mpnn_utils.py:200
↓ 3 callersMethodtorsion_angles_to_frames
(self, r, alpha, f)
model/score_network.py:748
↓ 3 callersFunctionvector_to_skew_matrix
Map a vector into the corresponding skew matrix so(3) basis. ``` [ 0 -z y] [x,y,z] -> [ z 0 -x] [ -y
data/so3_utils.py:457
↓ 3 callersFunctionwrap
(a)
openfold/utils/checkpointing.py:59
↓ 2 callersFunctionLog
(R)
data/so3_utils.py:30
↓ 2 callersMethod__init__
Module for sampling rotations from the USO(3) distribution. Can be used to generate initial unbiased samples in the reverse process.
data/so3_utils.py:1195
↓ 2 callersFunction_add_restraints
Adds a harmonic potential that restrains the system to a structure.
openfold/np/relax/amber_minimize.py:49
↓ 2 callersFunction_calculate_bin_centers
(boundaries: torch.Tensor)
openfold/utils/loss.py:561
↓ 2 callersFunction_centered_gaussian
(num_batch, num_res, device)
data/interpolant.py:12
↓ 2 callersFunction_chain_end
(atom_index, end_resname, chain_name, residue_index)
data/protein.py:139
↓ 2 callersFunction_flat_idx_to_idx
( flat_idx: int, dims: Tuple[int], )
openfold/utils/tensor_utils.py:128
↓ 2 callersMethod_generate_lookup
Generate the lookup table for sampling from the target SO(3) CDF. The table is 2D, with the rows corresponding to different sigma val
data/so3_utils.py:920
↓ 2 callersFunction_get_hhr_line_regex_groups
( regex_pattern: str, line: str )
openfold/data/parsers.py:228
↓ 2 callersFunction_get_pdb_id_and_chain
Returns PDB id and chain id for an HHSearch Hit.
openfold/data/templates.py:94
↓ 2 callersFunction_get_pdb_string
Returns a pdb string provided OpenMM topology and positions.
openfold/np/relax/amber_minimize.py:118
↓ 2 callersMethod_init_residue_constants
(self, float_dtype, device)
openfold/model/structure_module.py:757
↓ 2 callersMethod_init_residue_constants
(self, float_dtype, device)
model/score_network.py:703
↓ 2 callersMethod_log
(self)
openfold/utils/logger.py:67
↓ 2 callersFunction_points
(affine)
openfold/utils/loss.py:671
↓ 2 callersMethod_prep_inputs
(self, m: torch.Tensor, z: Optional[torch.Tensor], mask: Optional[torch.Tensor] )
openfold/model/msa.py:98
↓ 2 callersMethod_prep_qkv
(self, q_x: torch.Tensor, kv_x: torch.Tensor )
openfold/model/primitives.py:374
↓ 2 callersMethod_prep_qkv
(self, q_x: torch.Tensor, kv_x: torch.Tensor )
model/msa.py:210
↓ 2 callersMethod_query_chunk
Queries the database chunk using Jackhmmer.
openfold/data/tools/jackhmmer.py:95
↓ 2 callersMethod_rbf
(self, D)
ProteinMPNN/protein_mpnn_utils.py:903
↓ 2 callersMethod_rbf
(self, D)
ProteinMPNN/protein_mpnn_utils.py:997
↓ 2 callersMethod_rbf
(self, D)
ProteinMPNN/training/model_utils.py:324
↓ 2 callersFunction_rotquat_to_axis_angle
Auxiliary routine for computing rotation angle and rotation axis from unit quaternions. To avoid complications, rotations vectors with angles
data/so3_utils.py:503
↓ 2 callersFunction_slice_bias
(b)
openfold/model/primitives.py:284
↓ 2 callersFunction_update_hhr_residue_indices_list
Computes the relative indices for each residue with respect to the original sequence.
openfold/data/parsers.py:237
↓ 2 callersMethod_wrap_up
(self, o: torch.Tensor, q_x: torch.Tensor )
openfold/model/primitives.py:394
↓ 2 callersFunctionalign_structures
Align structures in a ChemGraph batch to a reference, e.g. for RMSD computation. This uses the sparse formulation of pytorch geometric. If th
data/utils.py:1084
↓ 2 callersFunctionapply_rotary_pos_emb
(x, cos, sin)
model/utils.py:16
↓ 2 callersFunctionatom14_to_atom37
(atom14, batch)
openfold/utils/feats.py:55
↓ 2 callersMethodb_t
(self, t)
data/r3_diffuser.py:26
↓ 2 callersFunctioncenter_zero
Move the molecule center to zero for sparse position tensors. Args: pos: [N, 3] batch positions of atoms in the molecule in sparse b
data/utils.py:1067
↓ 2 callersFunctioncheckpoint_blocks
Chunk a list of blocks and run each chunk with activation checkpointing. We define a "block" as a callable whose only inputs are the outp
openfold/utils/checkpointing.py:35
↓ 2 callersFunctionchi_angle_atom
Define chi-angle rigid groups via one-hot representations.
openfold/np/residue_constants.py:1055
↓ 2 callersFunctionchi_angle_atom
Define chi-angle rigid groups via one-hot representations.
data/residue_constants.py:758
↓ 2 callersFunctionclean_protein
Adds missing atoms to Protein instance. Args: prot: A `protein.Protein` instance. checks: A `bool` specifying whether to add addition
openfold/np/relax/amber_minimize.py:166
↓ 2 callersFunctioncompose
(x, fs)
openfold/data/input_pipeline.py:194
↓ 2 callersMethodcompose_q_update_vec
Composes the transformation with a quaternion update vector of shape [*, 6], where the final 6 columns represent the x, y, an
openfold/utils/rigid_utils.py:1045
↓ 2 callersFunctioncompute_backbone
(bb_rigids, psi_torsions)
data/all_atom.py:160
↓ 2 callersMethodconditional_var
Conditional variance of p(xt|x0). Var[x_t|x_0] = conditional_var(t)*I
data/r3_diffuser.py:150
↓ 2 callersMethodcuda
Moves the transformation object to GPU memory Returns: A version of the transformation on GPU
openfold/utils/rigid_utils.py:1447
↓ 2 callersFunctiond_logf_d_omega
(omega, t, L=500)
data/igso3.py:38
↓ 2 callersMethoddiffusion_coef
Time-dependent diffusion coefficient.
data/r3_diffuser.py:31
↓ 2 callersMethoddo_step
(self)
openfold/utils/logger.py:39
↓ 2 callersMethoddrift_coef
Time-dependent drift coefficient.
data/r3_diffuser.py:35
↓ 2 callersFunctionempty_template_feats
(n_res)
openfold/data/data_pipeline.py:31
↓ 2 callersFunctionexec
(b, a)
openfold/utils/checkpointing.py:62
↓ 2 callersFunctionextract_se3_vec
(step)
analysis/plotting.py:287
↓ 2 callersFunctionfeaturize
(batch, device)
ProteinMPNN/training/model_utils.py:19
↓ 2 callersFunctionfind_structural_violations
Computes several checks for structural violations.
openfold/utils/loss.py:1105
↓ 2 callersMethodforward
Args: q_x: [*, Q, C_q] query data kv_x: [*, K, C_k] key data biases:
model/msa.py:249
↓ 2 callersFunctionframes_and_literature_positions_to_atom14_pos
( r: Rigid, aatype: torch.Tensor, default_frames, group_idx, atom_mask, lit_positions,
openfold/utils/feats.py:231
↓ 2 callersFunctionframes_to_atom14_pos
Convert frames to their idealized all atom representation. Args: r: All rigid groups. [..., N, 8, 3] aatype: Residue types. [...,
data/all_atom.py:118
↓ 2 callersFunctionfrom_pdb_string
Takes a PDB string and constructs a Protein object. WARNING: All non-standard residue types will be converted into UNK. All non-standard atoms
data/protein.py:67
↓ 2 callersFunctiongather_nodes
(nodes, neighbor_idx)
ProteinMPNN/training/model_utils.py:160
↓ 2 callersFunctiongdt
(p1, p2, mask, cutoffs)
openfold/utils/validation_metrics.py:17
↓ 2 callersFunctiongenerate_Cbeta
(N,Ca,C,use_torch=False)
data/utils.py:931
↓ 2 callersFunctiongenerate_lookup_table
Auxiliary function for generating a lookup table from IGSO(3) expansions and their derivatives. Takes a basic function and loops over differe
data/so3_utils.py:1452
↓ 2 callersFunctionget_dihedrals
(a, b, c, d)
openfold/data/data_transforms.py:1196
↓ 2 callersFunctionget_dihedrals
(a, b, c, d)
data/data_transforms.py:667
↓ 2 callersFunctionget_pdb_headers
(prot: Protein, chain_id: int = 0)
openfold/np/protein.py:221
↓ 2 callersFunctionhe_orthogonal_init
Generate a weight matrix with variance according to He initialization. Based on a random (semi-)orthogonal matrix neural networks are exp
model/layers.py:25
↓ 2 callersFunctionidentity_trans
( batch_dims: Tuple[int], dtype: Optional[torch.dtype] = None, device: Optional[torch.device] = N
openfold/utils/rigid_utils.py:124
↓ 2 callersMethodidx_to_chain_id
(self, idx)
openfold/data/data_modules.py:155
↓ 2 callersFunctionigso3_expansion
Truncated sum of IGSO(3) distribution. This function approximates the power series in equation 5 of "DENOISING DIFFUSION PROBABILISTIC MODELS
data/so3_diffuser.py:9
↓ 2 callersMethodinit_chroma_model_from_conf
(self,weight_path)
model/fold_module.py:116
↓ 2 callersMethodinit_mpnn_model_from_conf
(self, model_conf)
model/fold_module.py:113
↓ 2 callersMethodinit_predict_model
(self,model_name)
model/fold_module.py:128
↓ 2 callersFunctioninvert_rot_mat
(rot_mat: torch.Tensor)
openfold/utils/rigid_utils.py:284
↓ 2 callersMethodlayer
(self,cur_block,node_embed,edge_embed,init_node_embed,curr_rigids,node_mask,edge_mask,diffuse_mask)
model/ipa_pytorch.py:813
↓ 2 callersFunctionlddt
( all_atom_pred_pos: torch.Tensor, all_atom_positions: torch.Tensor, all_atom_mask: torch.Tensor,
openfold/utils/loss.py:382
↓ 2 callersMethodlocal_mha
Args: x: [batch_size, residue_num, residue_num, embed_size] rigids: [batch_size, residue_num, 3, 3] num_n
model/ipa_pytorch.py:294
↓ 2 callersFunctionloss_nll
Negative log probabilities
ProteinMPNN/training/model_utils.py:128
↓ 2 callersFunctionloss_smoothed
Negative log probabilities
ProteinMPNN/training/model_utils.py:140
↓ 2 callersFunctionlower
()
openfold/utils/tensor_utils.py:211
↓ 2 callersFunctionmake_protein_features
( protein_object: protein.Protein, description: str, _is_distillation: bool = False, )
openfold/data/data_pipeline.py:133
↓ 2 callersMethodmap_tensor_fn
Apply a Tensor -> Tensor function to underlying translation and rotation tensors, mapping over the translation/rotation dimen
openfold/utils/rigid_utils.py:1150
← previousnext →101–200 of 1,071, ranked by callers