MCPcopy Create free account

hub / github.com/Wangchentong/Proteus / functions

Functions1,071 in github.com/Wangchentong/Proteus

Functionremove_arguments
(parser, args)
openfold/utils/argparse.py:25
Functionreplace_path_with_cwd
(cfg,path='./')
experiments/utils.py:118
Methodrequires_grad
Returns the requires_grad property of the underlying rotation Returns: The requires_grad property of the und
openfold/utils/rigid_utils.py:499
Methodreverse
(self, logits:torch.Tensor, t:list, temperature:float=1.0)
data/discrete_diffuser.py:194
Methodreverse
Simulates the reverse SDE for 1 step using the Geodesic random walk. Args: rot_t: [..., 3] current rotations at time t.
data/so3_diffuser.py:330
Methodreverse
Reverse sampling function from (t) to (t-1). Args: rigid_t: [..., N] protein rigid objects at time t. rot_score: [...
data/se3_diffuser.py:160
Functionrigid_frames_from_all_atom
(all_atom_pos)
data/utils.py:716
Functionrigid_frames_from_atom_14
(atom_14)
data/utils.py:276
Functionrigid_transform_3D
(A, B, verbose=False)
data/utils.py:845
Functionrigids_to_se3_vec
(frame, scale_factor=1.0)
analysis/utils.py:32
Methodrot_sample_kappa
(self, t)
data/interpolant.py:123
Functionrotquat_to_rotmat
Convert unit quaternion to rotation matrix. Args: rotation_quaternions (torch.Tensor): Input quaternions in [r,i,j,k] format. R
data/so3_utils.py:544
Functionrotquat_to_rotvec
Convert unit quaternions to rotation vectors. Args: rotation_quaternions (torch.Tensor): Input quaternions in [r,i,j,k] format.
data/so3_utils.py:529
Functionrotvec_to_quat
(rotvec)
data/utils.py:297
Methodrun_esm_fold_callback
(args_to_keep)
experiments/inference_se3_diffusion.py:290
Functionrun_pipeline
Run iterative amber relax. Successive relax iterations are performed until all violations have been resolved. Each iteration involves a restr
openfold/np/relax/amber_minimize.py:469
Methodsample_from_prior
(self,shape)
data/discrete_diffuser.py:114
Functionsample_msa_distillation
(protein, max_seq)
openfold/data/data_transforms.py:216
Methodsample_ref
(self, n_samples: float=1)
data/so3_diffuser.py:250
Methodsample_ref
Samples rigids from reference distribution. Args: n_samples: Number of samples. impute: Rigid objects to use as imput
data/se3_diffuser.py:216
Methodsample_shape
(self, num_sigma: int, num_samples: int)
data/so3_utils.py:1249
Functionsample_uniform
(N, M=1000)
data/so3_utils.py:72
Methodsample_xt
(self, x0, t)
data/discrete_diffuser.py:118
Functionsave_fasta
( pred_seqs, seq_names, file_path, )
data/utils.py:1004
Functionscale_rotmat
Scale rotation matrix. This is done by converting it to vector representation, scaling the length of the vector and converting back to matrix
data/so3_utils.py:188
Methodscore
Computes the score of IGSO(3) density as a rotation vector. Same as score function but uses pytorch and performs a look-up. Args:
data/igso3.py:192
Methodscore_scaling
Calculates scaling used for scores during trianing.
data/so3_diffuser.py:307
Functionscript_preset_
TorchScript a handful of low-level but frequently used submodule types that are known to be scriptable. Args: model:
openfold/model/torchscript.py:51
Functionseed_globally
(seed=None)
openfold/utils/seed.py:10
Functionselect_feat
(protein, feature_list)
openfold/data/data_transforms.py:563
Functionsequence_to_onehot
Maps the given sequence into a one-hot encoded matrix. Args: sequence: An amino acid sequence. mapping: A dictionary mapping amino ac
openfold/np/residue_constants.py:884
Functionsequence_to_onehot
Maps the given sequence into a one-hot encoded matrix. Args: sequence: An amino acid sequence. mapping: A dictionary mapping amino acids to
data/residue_constants.py:568
Methodset_device
(self, device)
data/interpolant.py:42
Methodsetup
(self)
openfold/data/data_modules.py:547
Methodshape
Returns the virtual shape of the rotation object. This shape is defined as the batch dimensions of the underlying rotation ma
openfold/utils/rigid_utils.py:449
Methodshape
Returns the shape of the shared dimensions of the rotation and the translation. Returns:
openfold/utils/rigid_utils.py:1006
Functionskew_matrix_exponential_map_axis_angle
Compute the matrix exponential of a rotation in axis-angle representation with the axis in skew matrix representation form. Maps the rotation
data/so3_utils.py:225
Functionskew_matrix_to_rotmat
Generates rotation matrix for corresponding skew matrix. Args: skew (torch.Tensor): Batch of target 3 by 3 skew symmetric matrices.
data/so3_utils.py:597
Functionsqueeze_features
Remove singleton and repeated dimensions in protein features.
openfold/data/data_transforms.py:132
Functionstable_distribution
(M)
data/discrete_diffuser.py:65
Methodstate_dict
(self)
openfold/utils/lr_schedulers.py:54
Methodstep
Update parameters and rate
ProteinMPNN/training/model_utils.py:489
Functionsummarize_clusters
Produce profile and deletion_matrix_mean within each cluster.
openfold/data/data_transforms.py:336
Functionsuperimpose
Superimposes coordinates onto a reference by minimizing RMSD using SVD. Args: reference: [*, N, 3] refer
openfold/utils/superimposition.py:45
Functiont_stratified_loss
Stratify loss by binning t.
experiments/utils.py:39
Functiontangent_gaussian
(R0)
data/so3_utils.py:60
Functiontangent_gaussian_log_density
(R, R_mean, var)
data/so3_utils.py:67
Functionthread_mpnn_seq
( pose, seq , chain = None, fixed_idxs = [])
ProteinMPNN/pyrosetta_utils.py:291
Functiontiming
(msg: str)
openfold/data/tools/utils.py:37
Functiontmpdir_manager
Context manager that deletes a temporary directory on exit.
openfold/data/tools/utils.py:27
Methodto
(self, device)
openfold/utils/exponential_moving_average.py:37
Functionto_atom37
(trans, rots)
data/all_atom.py:21
Functionto_pdb
Converts a `Protein` instance to a PDB string. Args: prot: The protein to convert to PDB. Returns: PDB string.
openfold/np/protein.py:293
Functiontorsion_angle_loss
( a, # [*, N, 7, 2] a_gt, # [*, N, 7, 2] a_alt_gt, # [*, N, 7, 2] )
openfold/utils/loss.py:52
Functiontorsion_angles_to_frames
Conversion method of torsion angles to frames provided the backbone. Args: r: Backbone rigid groups. alpha: Torsion angles.
data/all_atom.py:29
Methodtrain_dataloader
(self)
openfold/data/data_modules.py:663
Methodtrain_dataloader
(self)
openfold/data/data_modules.py:692
Methodtrans_parameters
(self, trans_t, score_t, t, dt, mask)
data/se3_diffuser.py:130
Functiontransrot_to_atom37
(transrot_traj, res_mask)
data/all_atom.py:257
Functionuniform_so3_density
Compute the density over the uniform angle distribution in SO(3). Args: omega: Angles in radians. Returns: Uniform dist
data/so3_utils.py:1293
Methodunsqueeze
Analogous to torch.unsqueeze. The dimension is relative to the shape of the Rotation object. Args:
openfold/utils/rigid_utils.py:712
Functionupdate
(frame)
analysis/plotting.py:304
Methodval_dataloader
(self)
openfold/data/data_modules.py:666
Functionvector_projection
Project the vector R_ab onto a plane with normal vector P_n. Parameters ---------- R_ab: Tensor, shape = (N,3) Vecto
data/all_atom.py:234
Functionviz_frames
(rigids, mask, ax, scale_factor=10.0, title='', ax_lim=10.0)
analysis/plotting.py:242
Functionworker_init_fn
(worker_id)
ProteinMPNN/training/utils.py:87
Functionworker_init_function
The worker_init_fn that Lightning automatically adds to your dataloader if you previously set the seed with ``seed_everything(seed, workers=True)`
data/utils.py:1042
Functionwrite_checkpoint
Serialize experiment state and stats to a pickle file. Args: ckpt_path: Path to save checkpoint. conf: Experiment configuration.
data/utils.py:551
Functionwrite_msa_to_a3m
( file_path: str, msa: np.ndarray, )
analysis/utils.py:13
Functionwrite_traj
( sample_traj, save_path, res_mask=None, ax_lim=15.0, scale_factor=1.0
analysis/plotting.py:275
Methodzero_grad
(self)
ProteinMPNN/training/model_utils.py:506
← previous1,001–1,071 of 1,071, ranked by callers