MCPcopy Create free account

hub / github.com/Wangchentong/Proteus / functions

Functions1,071 in github.com/Wangchentong/Proteus

Function_chunk_slice
Equivalent to t.reshape((-1,) + t.shape[no_batch_dims:])[flat_start:flat_end] but without the need for the init
openfold/utils/tensor_utils.py:259
Method_combine_projections
(self, a: torch.Tensor, # [*, N_i, N_k, C] b: torch.Tensor, # [*, N_j, N_k, C] )
openfold/model/triangular_multiplicative_update.py:97
Method_combine_projections
(self, a: torch.Tensor, # [*, N_k, N_i, C] b: torch.Tensor, # [*, N_k, N_j, C] )
openfold/model/triangular_multiplicative_update.py:115
Method_evalute_stopping_criteria
(self, *args)
openfold/utils/callbacks.py:9
Method_get_cache_name
Auxiliary function for determining the cache file name based on the parameters (sigma, omega, l, etc.) used for generating the lookup
data/so3_utils.py:1136
Method_get_qkv
(m, z)
openfold/model/msa.py:149
Method_mpnn_to_af
()
model/strcture2seq.py:47
Function_prep_inputs
(t)
openfold/utils/tensor_utils.py:336
Method_process_angles
Ensure sampled angles are 0 for small noise levels in IGSO(3). (Series expansion gives uniform probability distribution.) Ar
data/so3_utils.py:1172
Method_round3
(val)
openfold/utils/logger.py:53
Functionaatype_to_str_sequence
(aatype)
openfold/np/residue_constants.py:1306
Methodadd_arguments
(self, actions)
openfold/utils/argparse.py:14
Functionadd_constant_field
(protein, key, value)
openfold/data/data_transforms.py:406
Functionadd_distillation_flag
(protein, distillation)
openfold/data/data_transforms.py:211
Functionadd_pdb_headers
Add pdb headers to an existing PDB string. Useful during multi-chain recycling
openfold/np/protein.py:243
Methodadd_usage
(self, usage, actions, groups, prefix=None)
openfold/utils/argparse.py:19
Functionadjust_oxygen_pos
Imputes the position of the oxygen atom on the backbone by using adjacent frame information. Specifically, we say that the oxygen atom is in
data/utils.py:1211
Methodapply
Apply the current Rotation as a rotation matrix to a set of 3D coordinates. Args: pts:
openfold/utils/rigid_utils.py:661
Functionapply_rotvec_to_rotmat
Update a rotation encoded in a rotation matrix with a rotation vector. Args: rotation_matrices: Input batch of rotation matrices.
data/so3_utils.py:560
Methodargmin_omega_for_d_logf_d_omega
(self, t)
data/igso3.py:153
Functionassert_equal_nonterminal_atom_types
Checks that pre- and post-minimized proteins have same atom set.
openfold/np/relax/utils.py:78
Functionatom14_chroma_to_atom37
(X,S)
data/data_transforms.py:268
Functionatom14_to_atom37
(atom14, batch)
data/data_transforms.py:256
Functionatom37_to_frames
(protein, eps=1e-8)
openfold/data/data_transforms.py:758
Functionatom37_to_frames
(protein, eps=1e-8)
data/data_transforms.py:315
Functionatom37_to_torsion_angles
Convert coordinates to torsion angles. This function is extremely sensitive to floating point imprecisions and should be run with double
openfold/data/data_transforms.py:925
Functionatom37_to_torsion_angles
Convert coordinates to torsion angles. This function is extremely sensitive to floating point imprecisions and should be run with double
data/data_transforms.py:480
Functionbatch_align_structures
(pos_1, pos_2, mask=None)
data/utils.py:1165
Functionbinder_task_preprocess
this function prepare all needed feature for binder design task: 1. select neighoured continous target segment if need to crop
data/utils.py:734
Functionblock_delete_msa
(protein, config)
openfold/data/data_transforms.py:245
Methodblock_with_cache_clear
(block, *args)
openfold/model/evoformer.py:522
Functionca_ca_clashes
(ca_pos, tol=1.5)
analysis/metrics.py:208
Functionca_ca_distance
(ca_pos, tol=0.1)
analysis/metrics.py:201
Functioncalc_distogram
(pos, min_bin, max_bin, num_bins)
data/utils.py:896
Functioncalc_perplexity
(pred, labels, mask)
analysis/metrics.py:55
Methodcalc_trans_0
(self, score_t, x_t, t, use_torch=True)
data/r3_diffuser.py:45
Methodcalc_trans_0
(self, trans_score, trans_t, t)
data/se3_diffuser.py:112
Functioncalculate_neighbor_angles
Calculate angles between atoms c <- a -> b. Parameters ---------- R_ac: Tensor, shape = (N,3) Vector from atom a to c.
data/all_atom.py:209
Functioncast_to_64bit_ints
(protein)
openfold/data/data_transforms.py:44
Methodcat
Concatenates rotations along one of the batch dimensions. Analogous to torch.cat(). Note that the output of this
openfold/utils/rigid_utils.py:737
Methodchain_id_to_idx
(self, chain_id)
openfold/data/data_modules.py:152
Functionchain_int_to_str
(chain_int: int)
data/utils.py:207
Functionchain_str_to_int
(chain_str: str)
data/utils.py:201
Functionclean_structure
Applies additional fixes to an OpenMM structure, to handle edge cases. Args: pdb_structure: An OpenMM structure to modify and fix. al
openfold/np/relax/cleanup.py:64
Functioncompare_conf
(conf1, conf2)
data/utils.py:169
Methodcompose_q
Compose the quaternions of the current Rotation object with those of another. Depending on whether either Rotati
openfold/utils/rigid_utils.py:640
Methodcompose_q_update_vec
Returns a new quaternion Rotation after updating the current object's underlying rotation with a quaternion update, formatted
openfold/utils/rigid_utils.py:593
Methodcompose_r
Compose the rotation matrices of the current Rotation object with those of another. Args: r:
openfold/utils/rigid_utils.py:624
Functioncompose_rotvec
Compose two rotation euler vectors.
data/utils.py:284
Functioncompute_angles
(ca_pos, pts)
model/ipa_pytorch.py:99
Functioncompute_drmsd_np
(structure_1, structure_2, mask=None)
openfold/utils/loss.py:1542
Functioncompute_sidechain
(bb_rigids, psi_torsions)
data/all_atom.py:184
Functioncompute_violation_metrics_np
( batch: Dict[str, np.ndarray], atom14_pred_positions: np.ndarray, violations: Dict[str, np.ndarra
openfold/utils/loss.py:1315
Functionconstruct_block_adj_matrix
(sstruct, xyz, cutoff=6, include_loops=False)
data/utils.py:943
Functionconvert_stockholm_to_a3m
Converts MSA in Stockholm format to the A3M format.
openfold/data/parsers.py:174
Functioncorrect_msa_restypes
Correct MSA restype to have the same order as rc.
openfold/data/data_transforms.py:108
Methodcorrupt_batch
(self, batch)
data/interpolant.py:98
Functioncreate_cones
Creates Cone object for use in plotly. Args: tail_3d: [N, 3] array containing N points for where the cones begin. head_3d: [N, 3]
analysis/plotting.py:62
Methodcreate_custom_forward
(self,module, **kwargs)
model/ipa_pytorch.py:808
Functioncreate_data_loader
Creates a data loader with jax compatible data structures.
data/utils.py:657
Functioncreate_dynamic_layout
( height=500, width=600, title=None, scene_range=None )
analysis/plotting.py:148
Functioncreate_msa_feat
Create and concatenate MSA features.
data/utils.py:262
Functioncreate_pad_feats
(pad_amt)
experiments/inference_se3_diffusion.py:51
Functioncreate_rigid
(rots, trans)
data/utils.py:1300
Functioncreate_static_layout
( height=500, width=600, title=None, xaxis=None, yaxis=None, )
analysis/plotting.py:128
Functioncrop_and_pad
(raw_prots,data_conf)
data/utils.py:636
Functioncrop_extra_msa
(protein, max_extra_msa)
openfold/data/data_transforms.py:223
Functioncrop_templates
(protein, max_templates)
openfold/data/data_transforms.py:568
Methodcuda
Analogous to the cuda() method of torch Tensors Returns: A copy of the Rotation in CUDA memory
openfold/utils/rigid_utils.py:791
Functioncurry1
Supply all arguments but the first.
openfold/data/data_transforms.py:73
Methodcustom_forward
(*inputs)
model/ipa_pytorch.py:809
Methodd_logf_d_omega
(self, omega, t)
data/igso3.py:189
Functiondelete_extra_msa
(protein)
openfold/data/data_transforms.py:236
Methoddevice
The device of the underlying rotation Returns: The device of the underlying rotation
openfold/utils/rigid_utils.py:484
Methoddir_exists
(self)
data/so3_utils.py:720
Methoddiscrete_sigma
(self)
data/so3_diffuser.py:183
Functiondlog_igso3_expansion
Compute the derivative of the logarithm of the IGSO(3) angle distribution function for pairs of angles and std dev levels: .. math ::
data/so3_utils.py:1424
Methoddtype
Returns the dtype of the underlying rotation. Returns: The dtype of the underlying rotation
openfold/utils/rigid_utils.py:469
Methoderror_handler
(error)
experiments/inference_se3_diffusion.py:301
Functionexec_sliced
(*a)
openfold/utils/checkpointing.py:68
Methodexpansion_function
Use the truncated expansion of the IGSO(3) probability function to generate the lookup table. Args: omega_grid (torch.Te
data/so3_utils.py:1155
Methodexpansion_function
The probability density function of the uniform SO(3) distribution is the cosine scaling term (1-cos(omega))/pi which is applied auto
data/so3_utils.py:1253
Functionexpmap
(R0, tangent)
data/so3_utils.py:52
Functionfc
(*args, **kwargs)
openfold/data/data_transforms.py:76
Methodfind_class
(self, module, name)
data/utils.py:135
Functionfind_structural_violations_np
( batch: Dict[str, np.ndarray], atom14_pred_positions: np.ndarray, config: ml_collections.ConfigDi
openfold/utils/loss.py:1218
Functionfix_pdb
Apply pdbfixer to the contents of a PDB file; return a PDB string result. 1) Replaces nonstandard residues. 2) Removes heterogens (non protei
openfold/np/relax/cleanup.py:27
Functionfix_templates_aatype
(protein)
openfold/data/data_transforms.py:87
Functionflatten_dict
Flattens a nested dict.
experiments/utils.py:26
Functionflatten_final_dims
(t: torch.Tensor, no_dims: int)
model/layers.py:228
Methodfn
(m, z)
openfold/model/evoformer.py:377
Methodforward
(self, out, batch, _return_breakdown=False)
openfold/utils/loss.py:1557
Methodforward
Args: x: [*, I, J, C_in] input tensor (e.g. the pair representation) Returns: [*, I, J, C_in]
openfold/model/triangular_attention.py:78
Methodforward
(self, x)
openfold/model/primitives.py:181
Methodforward
Args: q_x: [*, Q, C_q] query data kv_x: [*, K, C_k] key data biases:
openfold/model/primitives.py:413
Methodforward
(self, m: torch.Tensor, mask: torch.Tensor)
openfold/model/primitives.py:489
Methodforward
Args: x: [*, N_res, N_res, C_z] input tensor mask: [*, N_res, N_res] input mask
openfold/model/triangular_multiplicative_update.py:61
Methodforward
Args: m: [*, N_seq, N_res, C_m] MSA activation mask: [*, N_seq, N_res, C_m] MSA mask
openfold/model/evoformer.py:88
Methodforward
( self, m: torch.Tensor, z: torch.Tensor, msa_mask: torch.Tensor, pair
openfold/model/evoformer.py:179
Methodforward
(self, m: torch.Tensor, z: torch.Tensor, msa_mask: torch.Tensor, pair_mask: to
openfold/model/evoformer.py:264
← previousnext →701–800 of 1,071, ranked by callers