MCPcopy Create free account

hub / github.com/baker-laboratory/rf_diffusion_all_atom / functions

Functions215 in github.com/baker-laboratory/rf_diffusion_all_atom

↓ 1 callersMethodprocess_target
(self, pdb_path)
inference/model_runners.py:103
↓ 1 callersFunctionquaternion_invert
Given a quaternion representing rotation, get the quaternion representing its inverse. Args: quaternion: Quaternions as tensor o
rotation_conversions.py:420
↓ 1 callersFunctionquaternion_to_axis_angle
Convert rotations given as quaternions to axis/angle. Args: quaternions: quaternions with real part first, as tensor of
rotation_conversions.py:524
↓ 1 callersFunctionrandom_quaternions
Generate random quaternions representing rotations, i.e. versors with nonnegative real part. Args: n: Number of quaternions in a
rotation_conversions.py:306
↓ 1 callersFunctionrandom_rotations
Generate random rotations as 3x3 rotation matrices. Args: n: Number of rotation matrices in a batch to return. dtype: Type t
rotation_conversions.py:331
↓ 1 callersFunctionread_pkl
Read data from a pickle file.
diffusion.py:254
↓ 1 callersFunctionreset_and_increment_numpy_rng
(n)
inference/model_runners.py:364
↓ 1 callersMethodreveal_residues
Reveal some amino acids in the sequence according to schedule and predictions seq_t (torch.tensor): [L] Integer sequence se
inference/utils.py:421
↓ 1 callersMethodreverse_sample
reverse_sample uses an approximation to the IGSO3 score to sample a rotation at the previous time step. Roughly - this update
diffusion.py:543
↓ 1 callersFunctionrewrite
(path, outpath)
idealize_backbone.py:20
↓ 1 callersFunctionsample
(sampler)
run_inference.py:100
↓ 1 callersMethodsample_init
Creates initial features to start the sampling process.
inference/model_runners.py:237
↓ 1 callersFunctionsample_one
(sampler, simple_logging=False)
run_inference.py:121
↓ 1 callersMethodsample_step
Generate the next pose that the model should be supplied at timestep t-1.
inference/model_runners.py:288
↓ 1 callersMethodsample_vec
sample_vec generates a rotation vector(s) from IGSO(3) at time steps ts. Return: Sampled vector of shape [len(ts), N, 3]
diffusion.py:428
↓ 1 callersFunctionsave_outputs
(sampler, out_prefix, indep, denoised_xyz_stack, px0_xyz_stack, seq_stack)
run_inference.py:158
↓ 1 callersMethodscore_norm
score_norm computes the score norm based on the time step and angle Args: t: integer time step omega: angles (scalar o
diffusion.py:438
↓ 1 callersMethodscore_vec
score_vec computes the score of the IGSO(3) density as a rotation vector. This score vecotr is in the direction of the sampled vector,
diffusion.py:454
↓ 1 callersMethodsigma_idx
Calculates the index for discretized sigma during IGSO(3) initialization.
diffusion.py:357
↓ 1 callersMethodslerp
Perform spherical linear interpolation from the True coordinate frame for each residue to a randomly sampled coordinate frame
diffusion.py:649
↓ 1 callersFunctionslerp_update
slerp_update uses SLERP to update the frames at time t to the predicted frame for t=0 Args: R_t, R_0: rotation matrices of shape [3,
inference/utils.py:34
↓ 1 callersFunctionstandardize_quaternion
Convert a unit quaternion to a standard form: one in which the real part is non negative. Args: quaternions: Quaternions with re
rotation_conversions.py:367
↓ 1 callersFunctionth_dih_v
(ab,bc,cd)
util.py:35
↓ 1 callersFunctionwarm_up_spherical_harmonics
o3.spherical_harmonics returns different values on 1st call vs all subsequent calls All subsequent calls are reproducible.
run_inference.py:42
↓ 1 callersFunctionwithout_H
Drops Hs from a dictionary like {'LG1': [('CB', 'C'), ('H2', 'H')]}
aa_model.py:507
↓ 1 callersMethodwrite_pdb
(self, path, **kwargs)
aa_model.py:72
↓ 1 callersMethodwrite_pdb_file
(self, fh, **kwargs)
aa_model.py:76
↓ 1 callersFunctionwrite_pkl
Serialize data into a pickle file.
diffusion.py:248
↓ 1 callersFunctionwritepdb_file
(f, atoms, seq, modelnum=None, chain="A", idx_pdb=None, bfacts=None, bond_feats=None, file_mode=
pdbio.py:10
↓ 1 callersFunctionxyz_to_c6d
convert cartesian coordinates into 2d distance and orientation maps Parameters ---------- xyz : pytorch tensor of shape [batch,n
kinematics.py:91
↓ 1 callersFunctionxyz_to_t2d
convert template cartesian coordinates into 2d distance and orientation maps Parameters ---------- xyz_t : pytorch tensor of sha
kinematics.py:133
MethodT
Return the maximum number of timesteps that this design protocol will perform. Output: T (int):
inference/model_runners.py:109
Method__init__
(self)
util_module.py:221
Method__init__
(self, parsed_pdb, contigs=None, contig_atoms=None, inpaint_seq=None, inpaint_str=None, length=None, ref_idx=N
contigs.py:14
Method__init__
(self, T, b_0, b_T, schedule_type='line
diffusion.py:128
Method__init__
Args: T: total number of time steps min_sigma: smallest allowed variance, should be at least 0.01 to maintain numeri
diffusion.py:270
Method__init__
(self, T)
diffusion.py:633
Method__init__
Parameters: truncation_level: for the igso3 numerical approximation
diffusion.py:728
Method__init__
(self, conf)
aa_model.py:248
Method__init__
(self, L, visible, aa_decode_steps=40, mode='distance_based')
inference/utils.py:198
Method__init__
Parameters: noise_level: scaling on the noise added (set to 0 to use no noise, to 1 to have full noise)
inference/utils.py:296
Method__init__
Parameters: inputs: conf.scaffold_list as conf conf.inference.num_designs for sanity checking
inference/utils.py:992
Method__init__
Initialize sampler. Args: conf: Configuration.
inference/model_runners.py:35
Method__init__
(self, weight=1, r_0=8, d_0=4)
potentials/potentials.py:36
Method__init__
(self, potentials_config, ppi_config, diffuser_config,
potentials/manager.py:85
Functionassert_has_coords
(xyz, indep)
aa_model.py:448
Functionaxis_angle_to_matrix
Convert rotations given as axis/angle to rotation matrices. Args: axis_angle: Rotations given as a vector in axis angle form,
rotation_conversions.py:460
Functionc6d_to_bins
bin 2d distance and orientation maps
kinematics.py:219
Functionc6d_to_bins2
bin 2d distance and orientation maps
kinematics.py:257
Functioncalc_displacement
()
metrics.py:5
Functioncalc_score_norm_torch
calc_score_norm_torch is a differentiable torch implementation of calc_score_norm Args: omega: length of an Euler vector (i.e. angle of r
igso3.py:99
Functioncalculate_igso3
calculate_igso3 pre-computes numerical approximations to the IGSO3 cdfs and score norms and expected squared score norms. Args: num_s
igso3.py:124
Methodcompute
(self, seq, xyz)
potentials/potentials.py:42
Functioncontig_description
(diffusion_mask)
metrics.py:11
Functioncontig_description_simple
(diffusion_mask)
metrics.py:14
Functioncontigs
()
metrics.py:23
Functioncreate_custom_forward
(module, **kwargs)
util_module.py:57
Functioncross_product_matrix
(u)
util.py:221
Functioncustom_forward
(*inputs)
util_module.py:58
Methoddiffuse_frames
(self, xyz, t_list, diffusion_mask=None)
diffusion.py:637
Methoddiscrete_sigma
(self)
diffusion.py:354
Functiondisplacement
()
metrics.py:8
Functiondist_to_bins
bin 2d distance maps
kinematics.py:243
FunctiondonorHs
(D,bonds,atoms)
util.py:337
Functioneuler_angles_to_matrix
Convert rotations given as Euler angles in radians to rotation matrices. Args: euler_angles: Euler angles in radians as tensor of sh
rotation_conversions.py:192
Functionforward
(model, rfi, **kwargs)
aa_model.py:475
Methodforward
(self, x)
util_module.py:73
Methodforward
(self, seq, xyz, alphas, non_ideal=False, use_H=True)
util_module.py:228
Functiongenerate_Cbeta
(N,Ca,C)
util.py:13
Functionget_clones
(module, N)
util_module.py:62
Functionget_diffusion_mask_simple
()
mask_generator.py:3
Methodget_dynamic_mu_sigma
Given currente chis, prediction of chi0, dynamic T, current t, and chi_beta_T schedules, sample new angles Need to
inference/utils.py:368
Functionget_mu_xt_x0
Given xt, predicted x0 and the timestep t, give mu of x(t-1) Assumes t is 0 indexed
util.py:457
Methodget_scaffold
Wrapper method for pulling an item from the list, and preparing ss and block adj features
inference/utils.py:1145
Functionget_seeds
()
run_inference.py:65
Functionget_seqsep
Input: - idx: residue indices of given sequence (B,L) Output: - seqsep: sequence separation feature with sign (B, L, L, 1)
util_module.py:94
Functionget_t2d
Returns t2d for a template. Parameters: xyz_t: [T, L, 36, 3] mask_t: [T, L, 36] seq_cat: [L] same_chain: [L,
util.py:476
Functionget_tips
(xyz, seq)
util.py:191
Functionget_triple_contact
()
mask_generator.py:1
Methodhal_by_ref
(ref)
aa_model.py:294
Methodidx2steps
(self)
inference/utils.py:284
Methodidx2steps
(self)
inference/utils.py:364
Functioninit_lecun_normal
(module, scale=1.0)
util_module.py:10
Functioninit_lecun_normal_param
(weight, scale=1.0)
util_module.py:33
Functionmain
(pattern, outdir)
idealize_backbone.py:64
Functionmake_full_graph
Input: - xyz: current backbone cooordinates (B, L, 3, 3) - pair: pair features from Trunk (B, L, L, E) - idx: residue ind
util_module.py:109
Functionmake_indep
(pdb, ligand=None, center=True)
aa_model.py:165
Functionmake_topk_graph
Input: - xyz: current backbone cooordinates (B, L, 3, 3) - pair: pair features from Trunk (B, L, L, E) - idx: residue ind
util_module.py:133
Functionmask_indep
(indep, is_diffused)
aa_model.py:479
Functionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
rotation_conversions.py:476
Functionmatrix_to_euler_angles
Convert rotations given as rotation matrices to Euler angles in radians. Args: matrix: Rotation matrices as tensor of shape (..., 3,
rotation_conversions.py:264
Functionmatrix_to_rotation_6d
Converts rotation matrices to 6D rotation representation by Zhou et al. [1] by dropping the last row. Note that 6D representation is not uniq
rotation_conversions.py:579
Functionn_contig_res
(diffusion_mask)
metrics.py:20
Functionn_contigs
(diffusion_mask)
metrics.py:17
Functionparse_a3m
(filename)
inference/utils.py:846
Functionpreprocess
Function to prepare inputs to diffusion model seq (torch.tensor, required): (L) integer sequence msa_masked (torch.ten
inference/utils.py:688
Functionprocess_target
(pdb_path, parse_hetatom=False, center=True)
inference/utils.py:916
Functionquaternion_apply
Apply the rotation given by a quaternion to a 3D point. Usual torch rules for broadcasting apply. Args: quaternion: Tensor of qu
rotation_conversions.py:437
Functionquaternion_multiply
Multiply two quaternions representing rotations, returning the quaternion representing their composition, i.e. the versor with nonnegative re
rotation_conversions.py:403
Functionrandom_rotation
Generate a single random 3x3 rotation matrix. Args: dtype: Type to return device: Device of returned tensor. Default: if Non
rotation_conversions.py:350
← previousnext →101–200 of 215, ranked by callers