Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepGraphLearning/DiffPack
/ functions
Functions
76 in github.com/DeepGraphLearning/DiffPack
⨍
Functions
76
◇
Types & classes
9
↓ 4 callers
Method
t_to_sigma
Transfer timesteps to standard deviation. Args: t (Tensor): timesteps ranging from 0 to 1 Returns: Tensor: s
diffpack/schedule.py:171
↓ 3 callers
Function
row_mul
(i)
diffpack/util.py:97
↓ 2 callers
Method
__init__
(self, input_dim, hidden_dims, sigma_dim, embed_type="sinusoidal", operation="post_add")
diffpack/layer.py:15
↓ 2 callers
Function
_rmsd_per_residue
(pred_pos_per_residue, true_pos_per_residue, mask)
diffpack/rotamer.py:968
↓ 2 callers
Function
get_atom14_position
Get the position of 14 atoms for each residue Args: protein: Protein object node_position: (num_atom, 3) Returns:
diffpack/rotamer.py:793
↓ 2 callers
Function
get_chi_atom_position
Get atom position for each chi torsion angles of each residue. Args: protein: Protein object. node_position: (num_atom, 3) t
diffpack/rotamer.py:683
↓ 2 callers
Function
get_chi_mask
(protein, chi_id=None)
diffpack/rotamer.py:659
↓ 2 callers
Method
load_pdbs
Load the dataset from pdb files. Parameters: pdb_files (list of str): pdb file names transform (Callable, op
diffpack/dataset.py:57
↓ 2 callers
Method
predict
(self, batch, all_loss=None, metric=None)
diffpack/task.py:116
↓ 2 callers
Function
rot_matmul
Performs matrix multiplication of two rotation matrix tensors. Written out by hand to avoid AMP downcasting. Args:
diffpack/util.py:83
↓ 2 callers
Function
rot_vec_mul
Applies a rotation to a vector. Written out by hand to avoid transfer to avoid AMP downcasting. Args: r: [*, 3,
diffpack/util.py:123
↓ 2 callers
Function
rotate_side_chain
(protein, rotate_angles)
diffpack/rotamer.py:734
↓ 2 callers
Method
score
(self, x, sigma)
diffpack/schedule.py:68
↓ 2 callers
Method
score_norm
(self, sigma)
diffpack/schedule.py:90
↓ 2 callers
Method
step
Update the input tensor (torsion angles). Args: x (Tensor): input tensor x_score (Tensor): input tensor's score
diffpack/schedule.py:119
↓ 1 callers
Method
__init__
(self, sigma_embedding: nn.Module, model: nn.Module, torsion_mlp_hidden_dims
diffpack/task.py:41
↓ 1 callers
Method
__init__
(self, PI, cache_folder)
diffpack/schedule.py:38
↓ 1 callers
Function
_get_symm_atoms
(pos_per_residue, residue_type)
diffpack/rotamer.py:975
↓ 1 callers
Method
add_noise
Add noise to protein and update protein Args: batch (dict): batch t (torch.Tensor): [num_graph] random number in [0,
diffpack/task.py:82
↓ 1 callers
Function
build_solver
(cfg, logger)
script/inference.py:52
↓ 1 callers
Function
detect_variables
(cfg_file)
util.py:61
↓ 1 callers
Method
evaluate
(self, pred, target)
diffpack/task.py:148
↓ 1 callers
Method
generate
(self, batch, randomize=True)
diffpack/task.py:159
↓ 1 callers
Method
generate
(self, test_set, path)
diffpack/engine.py:14
↓ 1 callers
Function
get_atom37_position
Get the position of 37 atoms for each residue Args: protein: Protein object node_position: (num_atom, 3) return_nan:
diffpack/rotamer.py:815
↓ 1 callers
Function
get_chis
(protein, node_position=None)
diffpack/rotamer.py:674
↓ 1 callers
Function
get_dihedral
Given p0-p3, compute dihedral b/t planes p0p1p2 and p1p2p3.
diffpack/rotamer.py:634
↓ 1 callers
Method
get_metric
(self, pred_protein, true_protein, metric)
diffpack/task.py:186
↓ 1 callers
Function
get_rigid_transform
Returns a transformation object from reference coordinates. Note that this method does not take care of symmetries. If you provide the a
diffpack/rotamer.py:860
↓ 1 callers
Function
get_timestep_embedding
(embedding_type, embedding_dim, embedding_scale=10000)
diffpack/layer.py:78
↓ 1 callers
Function
grad
(x, sigma, N=10, PI=np.pi)
diffpack/schedule.py:21
↓ 1 callers
Function
p
(x, sigma, N=10, PI=np.pi)
diffpack/schedule.py:14
↓ 1 callers
Function
parse_args
()
script/inference.py:24
↓ 1 callers
Method
predict_rmsd
(self, batch, all_loss=None, metric=None)
diffpack/task.py:252
↓ 1 callers
Function
sample
(sigma, PI=np.pi)
diffpack/schedule.py:28
↓ 1 callers
Method
sample_train_t
Sample timesteps for training. Args: shape (tuple): shape of the output tensor Returns: Tensor: sampled time
diffpack/schedule.py:135
↓ 1 callers
Function
set_atom14_position
Set the position of 14 atoms for each residue Args: protein: Protein object node_position14: (num_residue, 14, 3) Retur
diffpack/rotamer.py:840
↓ 1 callers
Function
set_seed
(seed)
script/inference.py:38
↓ 1 callers
Method
target
(self, batch)
diffpack/task.py:142
Method
__init__
(self, sigma_embedding: nn.Module, model: nn.Module, confidence_model: nn.Mo
diffpack/task.py:228
Method
__init__
Args: sigma_min (float): minimum standard deviation sigma_max (float): maximum standard deviation
diffpack/schedule.py:156
Method
__init__
(self, path=None, pdb_files=None, verbose=1, **kwargs)
diffpack/dataset.py:25
Method
__init__
(self, embedding_dim, max_positions=10000, scale=1.0)
diffpack/layer.py:44
Method
__init__
(self, embedding_size=256, scale=1.0)
diffpack/layer.py:68
Method
__repr__
(self)
diffpack/dataset.py:140
Method
add_noise
Add noise to the input tensor (torsion angles). Args: x (Tensor): input tensor t (Tensor): timesteps tensor
diffpack/schedule.py:105
Method
add_noise
Add noise to the input tensor (torsion angles). Args: x (Tensor): Torsion angles of shape :math:`(num_res, 4)` x_mask
diffpack/schedule.py:183
Function
build_downstream_solver
(cfg, dataset)
util.py:97
Function
build_pretrain_solver
(cfg, dataset)
util.py:131
Function
convert_model_ckpt
(state_dict)
diffpack/util.py:148
Function
create_working_directory
(cfg)
util.py:34
Function
create_working_directory
(cfg)
diffpack/util.py:57
Method
forward
(self, batch)
diffpack/task.py:61
Method
forward
(self, input, sigma)
diffpack/layer.py:30
Method
forward
(self, timesteps)
diffpack/layer.py:50
Method
forward
(self, x)
diffpack/layer.py:72
Method
from_pdb_files
(pdb_files, verbose=1, **kwargs)
diffpack/dataset.py:137
Method
generate
(self, batch, randomize=True)
diffpack/task.py:263
Function
get_chi_periodic_mask
(protein, chi_id=None)
diffpack/rotamer.py:709
Method
get_item
(self, index)
diffpack/dataset.py:99
Function
get_root_logger
(file=True)
util.py:21
Function
get_root_logger
(file=True)
diffpack/util.py:44
Function
init_sidechain
Initialize the side chain of the protein from restype_atom14_rigid_group_positions (shape: 21, 14, 3) Args: protein: Protein object
diffpack/rotamer.py:933
Function
load_config
(cfg_file, context=None)
util.py:70
Function
load_config
(cfg_file)
diffpack/util.py:35
Function
meshgrid
(dict)
diffpack/util.py:17
Method
p
(self, x, sigma)
diffpack/schedule.py:80
Function
parse_args
()
util.py:80
Function
randomize
(protein)
diffpack/rotamer.py:962
Function
remove_by_chi
(protein, chi_id)
diffpack/rotamer.py:774
Method
reverse_t_schedule
Reverse timesteps schedule.
diffpack/schedule.py:148
Method
reverse_t_schedule
(self)
diffpack/schedule.py:293
Method
sample_train_t
Sample timesteps from uniform distribution. Args: shape (tuple): shape of the timesteps Returns: Tensor: tim
diffpack/schedule.py:281
Function
set_chis
(protein, chis)
diffpack/rotamer.py:723
Method
step
Denoise step for the input tensor (torsion angles). Args: x (Tensor): Torsion angles of shape :math:`(num_res, 4)` x_
diffpack/schedule.py:205
Method
step_correct
Correct step for the input tensor (torsion angles). Args: x (Tensor): Torsion angles of shape :math:`(num_res, 4)` x_
diffpack/schedule.py:244