MCPcopy Create free account

hub / github.com/Wangchentong/Proteus / functions

Functions1,071 in github.com/Wangchentong/Proteus

↓ 127 callersMethodunsqueeze
Analogous to torch.unsqueeze. The dimension is relative to the shared dimensions of the rotation/translation.
openfold/utils/rigid_utils.py:1283
↓ 88 callersMethodto
Analogous to the to() method of torch Tensors Args: device: A torch device
openfold/utils/rigid_utils.py:809
↓ 75 callersMethodcat
Concatenates transformations along a new dimension. Args: ts: A list of T objects
openfold/utils/rigid_utils.py:1303
↓ 32 callersMethoddetach
Returns a copy of the Rotation whose underlying Tensor has been detached from its torch graph. Returns:
openfold/utils/rigid_utils.py:838
↓ 32 callersMethodone_hot
(x, v_bins)
model/score_network.py:297
↓ 28 callersFunctionpermute_final_dims
(tensor: torch.Tensor, inds: List[int])
openfold/utils/tensor_utils.py:22
↓ 26 callersMethodto
(self, device)
model/utils.py:133
↓ 24 callersMethod_get_rbf
(self, A, B, E_idx)
ProteinMPNN/protein_mpnn_utils.py:1007
↓ 24 callersMethod_get_rbf
(self, A, B, E_idx)
ProteinMPNN/training/model_utils.py:334
↓ 20 callersFunctioncat_neighbors_nodes
(h_nodes, h_neighbors, E_idx)
ProteinMPNN/protein_mpnn_utils.py:625
↓ 19 callersMethodupdate
Updates the stored parameters using the state dict of the provided module. The module should have the same structure as that used to
model/utils.py:148
↓ 16 callersMethodapply
Applies the transformation to a coordinate tensor. Args: pts: A [*, 3] coordinate tensor. Return
openfold/utils/rigid_utils.py:1110
↓ 15 callersMethodget_rot_mats
Returns the underlying rotation as a rotation matrix tensor. Returns: The rotation as a rotation matrix tens
openfold/utils/rigid_utils.py:513
↓ 15 callersMethodget_trans
Getter for the translation. Returns: The stored translation
openfold/utils/rigid_utils.py:1036
↓ 15 callersMethodupdate
Updates the stored parameters using the state dict of the provided module. The module should have the same structure as that used to
openfold/utils/exponential_moving_average.py:52
↓ 14 callersMethodcompose
Composes the current rigid object with another. Args: r: Another Rigid object
openfold/utils/rigid_utils.py:1071
↓ 14 callersMethodget_rots
Getter for the rotation. Returns: The rotation object
openfold/utils/rigid_utils.py:1027
↓ 12 callersFunctionbatched_gather
(data, inds, dim=0, no_batch_dims=0)
data/utils.py:116
↓ 11 callersFunctionbatched_gather
(data, inds, dim=0, no_batch_dims=0)
openfold/utils/tensor_utils.py:67
↓ 9 callersFunction_to_mat
(pairs)
openfold/utils/rigid_utils.py:163
↓ 9 callersMethodfrom_tensor_7
( t: torch.Tensor, normalize_quats: bool = False, )
openfold/utils/rigid_utils.py:1221
↓ 9 callersMethodto_tensor_7
Converts a transformation to a tensor with 7 final columns, four for the quaternion followed by three for the translation.
openfold/utils/rigid_utils.py:1206
↓ 8 callersMethod__init__
Args: in_dim: The final dimension of inputs to the layer out_dim: The final dimension
model/ipa_pytorch.py:120
↓ 8 callersMethod_apply_mask
(self, x_diff, x_fixed, diff_mask)
data/se3_diffuser.py:127
↓ 8 callersMethod_get_rbf
(self, A, B, E_idx)
ProteinMPNN/protein_mpnn_utils.py:914
↓ 8 callersFunctiongather_nodes
(nodes, neighbor_idx)
ProteinMPNN/protein_mpnn_utils.py:609
↓ 8 callersMethodget_quats
Returns the underlying rotation as a quaternion tensor. Depending on whether the Rotation was initialized with a
openfold/utils/rigid_utils.py:529
↓ 8 callersFunctionmake_one_hot
(x, num_classes)
openfold/data/data_transforms.py:53
↓ 8 callersMethodmarginal_b_t
(self, t)
data/r3_diffuser.py:42
↓ 7 callersMethod_scale
(self, x)
data/r3_diffuser.py:20
↓ 7 callersFunction_scores
Negative log probabilities
ProteinMPNN/protein_mpnn_utils.py:47
↓ 7 callersFunctionchunk_layer
Implements the "chunking" procedure described in section 1.11.8. Layer outputs and inputs are assumed to be simple "pytrees," consisting
openfold/utils/tensor_utils.py:295
↓ 7 callersMethodfrom_tensor_4x4
Constructs a transformation from a homogenous transformation tensor. Args: t: [*, 4, 4] homogeno
openfold/utils/rigid_utils.py:1186
↓ 7 callersFunctiongather_edges
(edges, neighbor_idx)
ProteinMPNN/protein_mpnn_utils.py:603
↓ 7 callersMethodload_state_dict
(self, state_dict: OrderedDict)
model/utils.py:156
↓ 7 callersFunctionmasked_mean
(mask, value, dim, eps=1e-4)
openfold/utils/tensor_utils.py:32
↓ 7 callersFunctionpad
Right pads dimension of numpy array. Args: x: numpy like array to pad. max_len: desired length after padding pad_idx: dim
data/utils.py:365
↓ 7 callersFunctionpermute_final_dims
(tensor: torch.Tensor, inds: List[int])
model/ipa_pytorch.py:23
↓ 6 callersMethod__init__
Args: c_in: Input channel dimension c_hidden: Hidden channel dimension no
openfold/model/structure_module.py:80
↓ 6 callersMethod__init__
(self, num_hidden, num_in, dropout=0.1, num_heads=None, scale=30, time_condition=False,time_cond_dim=128,gated
ProteinMPNN/protein_mpnn_utils.py:632
↓ 6 callersMethod__init__
(self, model_size, factor, warmup, optimizer, step)
ProteinMPNN/training/model_utils.py:476
↓ 6 callersFunctioncat_neighbors_nodes
(h_nodes, h_neighbors, E_idx)
ProteinMPNN/training/model_utils.py:176
↓ 6 callersFunctionflatten_final_dims
(t: torch.Tensor, no_dims: int)
openfold/utils/tensor_utils.py:28
↓ 6 callersMethodfrom_3_points
Implements algorithm 21. Constructs transformations from sets of 3 points using the Gram-Schmidt algorithm. Arg
openfold/utils/rigid_utils.py:1239
↓ 6 callersMethodinference_fn
( self, init_feats : Dict = None, diffusion_dir : str = None, diff_conf : Ome
model/fold_module.py:179
↓ 6 callersMethodinvert
Inverts the transformation. Returns: The inverse transformation.
openfold/utils/rigid_utils.py:1138
↓ 6 callersMethodsample
Generates rotation vector(s) from IGSO(3). Args: t: continuous time in [0, 1]. n_sample: number of samples to generat
data/igso3.py:172
↓ 6 callersFunctiontree_map
(fn, tree, leaf_type)
openfold/utils/tensor_utils.py:94
↓ 5 callersMethod__init__
Args: c_m: MSA channel dimension n: Factor multiplied to c_m to obtain the hidden cha
openfold/model/evoformer.py:49
↓ 5 callersMethod__init__
Args: c_z: Input channel dimension no_bins: Number of bins
openfold/model/heads.py:159
↓ 5 callersMethod__init__
( self, in_features, out_features, bias=False, activation=None, name=None )
model/layers.py:62
↓ 5 callersMethod__init__
Args: c_q: Input dimension of query data c_k: Input dimension of key data
model/msa.py:153
↓ 5 callersMethod__init__
(self, model_conf)
model/score_network.py:54
↓ 5 callersFunction_extract_trans_rots
(rigid: ru.Rigid)
data/se3_diffuser.py:11
↓ 5 callersFunctiondict_multimap
(fn, dicts)
openfold/utils/tensor_utils.py:47
↓ 5 callersFunctionextract_coords_from_pose
input: x = PDB filename atoms = atoms to extract (optional) output: (length, atoms, coords=(x,y,z)), sequence
ProteinMPNN/pyrosetta_utils.py:22
↓ 5 callersMethodquery
Queries the database using HHblits.
openfold/data/tools/hhblits.py:102
↓ 5 callersFunctionrotvec_to_rotmat
Convert rotation vectors to rotation matrix representation. The length of the rotation vector is the angle of rotation, the unit vector the r
data/so3_utils.py:315
↓ 5 callersMethodt_idx
Calculates the index for discretized t during IGSO(3) initialization.
data/igso3.py:149
↓ 5 callersMethodto_tensor_4x4
Converts a transformation to a homogenous transformation tensor. Returns: A [*, 4, 4] homogenous transformat
openfold/utils/rigid_utils.py:1172
↓ 4 callersMethod__init__
Args: tf_dim: Final dimension of the target features msa_dim: Final dimension of the
openfold/model/embedders.py:31
↓ 4 callersMethod__init__
(self, batch_path)
openfold/data/data_modules.py:676
↓ 4 callersFunction_attention
(query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, biases: List[torch.Tensor])
openfold/model/primitives.py:220
↓ 4 callersFunction_make_rigid_transformation_4x4
Create a rigid 4x4 transformation matrix from two axes and transl.
openfold/np/residue_constants.py:1102
↓ 4 callersFunction_make_rigid_transformation_4x4
Create a rigid 4x4 transformation matrix from two axes and transl.
data/residue_constants.py:800
↓ 4 callersFunction_maybe_remove_leading_dim
(arr: np.ndarray)
data/protein.py:267
↓ 4 callersMethod_parse_template_hits
( self, alignment_dir: str, _alignment_index: Optional[Any] = None )
openfold/data/data_pipeline.py:478
↓ 4 callersMethod_process_msa_feats
( self, alignment_dir: str, input_sequence: Optional[str] = None, _alignment_i
openfold/data/data_pipeline.py:511
↓ 4 callersMethodadd
(m1, m2)
openfold/model/evoformer.py:355
↓ 4 callersMethoddevice
Returns the device on which the Rigid's tensors are located. Returns: The device on which the Rigid's tensor
openfold/utils/rigid_utils.py:1018
↓ 4 callersFunctionf_igso3
Truncated sum of IGSO(3) distribution. This function approximates the power series in equation 5 of "DENOISING DIFFUSION PROBABILISTIC MODELS
data/igso3.py:11
↓ 4 callersFunctionget_checkpoint_fn
()
openfold/utils/checkpointing.py:25
↓ 4 callersFunctionhat
v: [..., 3] hat_v: [..., 3, 3]
data/so3_utils.py:14
↓ 4 callersFunctionmake_template_features
( input_sequence: str, hits: Sequence[Any], template_featurizer: Any, query_pdb_code: Optional
openfold/data/data_pipeline.py:41
↓ 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
openfold/data/mmcif_parsing.py:121
↓ 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/mechanics
data/mmcif_parsing.py:114
↓ 4 callersFunctionrot_mult
Matrix multiply two rotation matrices with leading dimensions.
data/so3_utils.py:653
↓ 4 callersFunctionrot_transpose
Take the transpose of the last two dimensions.
data/so3_utils.py:648
↓ 4 callersMethodsigma
Extract \sigma(t) corresponding to chosen sigma schedule.
data/so3_diffuser.py:192
↓ 4 callersFunctionsoftmax_cross_entropy
(logits, labels)
openfold/utils/loss.py:37
↓ 4 callersMethodt_to_idx
Helper function to go from time t to corresponding sigma_idx.
data/so3_diffuser.py:211
↓ 4 callersMethodtransition
(self, t)
data/discrete_diffuser.py:103
↓ 3 callersFunction_S_to_seq
(S, mask)
ProteinMPNN/protein_mpnn_utils.py:57
↓ 3 callersMethod__init__
Args: in_dim: The final dimension of inputs to the layer out_dim: The final dimension
openfold/model/primitives.py:112
↓ 3 callersMethod__init__
Args: c_in: Input channel dimension c_hidden: Per-head hidden channel dimension
openfold/model/msa.py:37
↓ 3 callersMethod__init__
Args: c_t: Template embedding channel dimension c_hidden_tri_att: Per-head hidden dim
openfold/model/template.py:323
↓ 3 callersFunction_aatype_to_str_sequence
(aatype)
openfold/data/data_pipeline.py:126
↓ 3 callersFunction_assemble_rigid
(rotvec, trans)
data/se3_diffuser.py:20
↓ 3 callersFunction_broadcast_identity
Generate a 3 by 3 identity matrix and broadcast it to a batch of target matrices. Args: target (torch.Tensor): Batch of target 3 by
data/so3_utils.py:210
↓ 3 callersMethod_gen_dataloader
(self, stage)
openfold/data/data_modules.py:631
↓ 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 e
openfold/utils/tensor_utils.py:141
↓ 3 callersFunction_randint
(lower, upper)
openfold/data/data_transforms.py:1140
↓ 3 callersFunction_randint
(lower, upper)
data/utils.py:420
↓ 3 callersMethod_unscale
(self, x)
data/r3_diffuser.py:23
↓ 3 callersMethodapply_trans_fn
Applies a Tensor -> Tensor function to the stored translation. Args: fn: A function of
openfold/utils/rigid_utils.py:1338
↓ 3 callersFunctionbuild_template_angle_feat
(template_feats)
openfold/utils/feats.py:68
↓ 3 callersFunctionbuild_template_pair_feat
( batch, min_bin, max_bin, no_bins, eps=1e-20, inf=1e8 )
openfold/utils/feats.py:92
↓ 3 callersFunctioncompute_fape
Computes FAPE loss. Args: pred_frames: [*, N_frames] Rigid object of predicted frames target
openfold/utils/loss.py:76
↓ 3 callersFunctioncrop
(x: torch.Tensor, crop_len: int, crop_start : int, crop_idx :int = 0)
data/utils.py:392
↓ 3 callersFunctioncsum
(x)
openfold/data/data_transforms.py:340
next →1–100 of 1,071, ranked by callers