Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DirectMolecularConfGen/DMCG
/ functions
Functions
95 in github.com/DirectMolecularConfGen/DMCG
⨍
Functions
95
◇
Types & classes
14
↓ 49 callers
Function
print
(*args, **kwargs)
confgen/utils/utils.py:126
↓ 10 callers
Method
move2origin
(self, pos, batch)
confgen/model/gnn.py:459
↓ 9 callers
Function
set_rdmol_positions
(rdkit_mol, pos)
confgen/utils/utils.py:37
↓ 8 callers
Method
__init__
( self, input_size, output_sizes, use_layer_norm=False, activation=nn.
confgen/model/conv.py:124
↓ 7 callers
Method
extend_x_edge
(self, pos, x, edge_attr, edge_index)
confgen/model/gnn.py:465
↓ 7 callers
Function
safe_index
Return index of element e in list l. If e is not present, return the last index
confgen/molecule/features.py:41
↓ 6 callers
Method
step
(self, step)
confgen/utils/utils.py:24
↓ 5 callers
Function
evaluate
(model, device, loader, args)
evaluate.py:77
↓ 5 callers
Function
get_random_rotation_3d
(pos)
confgen/utils/utils.py:52
↓ 4 callers
Function
isomorphic_core
(mol)
confgen/molecule/gt.py:65
↓ 4 callers
Method
random_augmentation
(self, pos, batch)
confgen/model/gnn.py:447
↓ 3 callers
Method
alignment_loss
(pos_y, pos_x, batch, clamp=None)
confgen/model/gnn.py:588
↓ 3 callers
Method
compute_loss
(self, pos_list, extra_output, batch, args)
confgen/model/gnn.py:477
↓ 3 callers
Function
compute_mmd
Params: source: (N, D) target: (M, D) Return: loss: MMD loss
confgen/utils/utils.py:237
↓ 3 callers
Function
evaluate
(model, device, loader, args)
train.py:70
↓ 3 callers
Function
evaluate_one
(model, device, loader)
evaluate.py:151
↓ 3 callers
Function
get_atom_feature_dims
()
confgen/molecule/features.py:73
↓ 3 callers
Function
get_best_rmsd
(gen_mol, ref_mol)
confgen/utils/utils.py:45
↓ 3 callers
Function
get_bond_feature_dims
()
confgen/molecule/features.py:117
↓ 3 callers
Function
input_args
()
evaluate.py:139
↓ 3 callers
Method
quaternion_to_rotation_matrix
(quaternion)
confgen/model/gnn.py:570
↓ 2 callers
Function
atom_to_feature_vector
Converts rdkit atom object to feature list of indices :param mol: rdkit atom object :return: list
confgen/molecule/features.py:51
↓ 2 callers
Function
binarize
(x)
confgen/utils/utils.py:134
↓ 2 callers
Function
binarize
(x)
confgen/molecule/graph.py:161
↓ 2 callers
Function
bond_to_feature_vector
Converts rdkit bond object to feature list of indices :param mol: rdkit bond object :return: list
confgen/molecule/features.py:92
↓ 2 callers
Function
extendedbond_to_feature_vector
(order=2)
confgen/molecule/features.py:106
↓ 2 callers
Method
get_idx_split
(self)
confgen/e2c/dataset.py:203
↓ 2 callers
Function
one_hot_atoms
(atoms)
confgen/model/gnn.py:894
↓ 2 callers
Function
one_hot_bonds
(bonds)
confgen/model/gnn.py:904
↓ 2 callers
Method
position_Langevin_Dynamic
(self, batch, pos_init, args)
confgen/model/gnn.py:729
↓ 2 callers
Method
reset_parameters
(self)
confgen/model/conv.py:159
↓ 1 callers
Method
alignment
(pos_y, pos_x, batch)
confgen/model/gnn.py:696
↓ 1 callers
Method
alignment_loss_iso_onegraph
(pos_y, pos_x, pos_y_mean, pos_x_mean, num_nodes, total_iso)
confgen/model/gnn.py:627
↓ 1 callers
Function
atomGetnum
(mol)
confgen/molecule/gt.py:48
↓ 1 callers
Method
aux_loss
(pos_y, pos_x, batch)
confgen/model/gnn.py:532
↓ 1 callers
Function
clip_norm
(vec, limit, p=2)
confgen/utils/utils.py:259
↓ 1 callers
Function
evaluate_distance
(gen_mols, ref_mols)
confgen/utils/utils.py:138
↓ 1 callers
Function
evaluate_iso17
(model, device, loader, args)
evaluate.py:184
↓ 1 callers
Function
evaluate_score
(model, device, loader, args)
evaluate.py:252
↓ 1 callers
Method
get_score
(self, batch, pos, args)
confgen/model/gnn.py:744
↓ 1 callers
Function
graph_from_adgacency_matrix
(adjacency_matrix, atomicnums)
confgen/molecule/gt.py:8
↓ 1 callers
Function
guassian_kernel
Params: source: n * len(x) target: m * len(y) Return: sum(kernel_val): Sum of various kernel matrices
confgen/utils/utils.py:209
↓ 1 callers
Function
init_distributed_mode
(args)
confgen/utils/utils.py:93
↓ 1 callers
Function
main
()
train.py:99
↓ 1 callers
Function
main
()
evaluate.py:396
↓ 1 callers
Function
match_graphs
(G1, G2)
confgen/molecule/gt.py:23
↓ 1 callers
Function
mol2xyz
(mol, addhs=False)
confgen/utils/psi4_utils.py:10
↓ 1 callers
Method
process_cgcf
(self)
confgen/e2c/dataset.py:208
↓ 1 callers
Method
process_confgf
(self)
confgen/e2c/dataset.py:270
↓ 1 callers
Method
process_default
(self)
confgen/e2c/dataset.py:348
↓ 1 callers
Function
quaternion_to_rotation_matrix
(quaternion)
confgen/utils/utils.py:58
↓ 1 callers
Function
rdk2graph
(mol: Mol)
confgen/molecule/graph.py:77
↓ 1 callers
Method
reparameterization
(self, mean, log_std)
confgen/model/gnn.py:453
↓ 1 callers
Method
reset_parameter
(self)
confgen/model/conv.py:301
↓ 1 callers
Method
reset_parameters
(self)
confgen/model/conv.py:207
↓ 1 callers
Method
reset_parameters
(self)
confgen/model/conv.py:264
↓ 1 callers
Function
safe_index
(l, e)
confgen/molecule/gt.py:37
↓ 1 callers
Function
safe_index_bond
(bond)
confgen/molecule/gt.py:44
↓ 1 callers
Function
setup_for_distributed
This function disables printing when not in master process
confgen/utils/utils.py:118
↓ 1 callers
Method
step
(self, epoch)
confgen/utils/utils.py:85
↓ 1 callers
Function
train
(model, device, loader, optimizer, scheduler, args)
train.py:27
↓ 1 callers
Function
train
(model, device, loader, optimizer, scheduler, args)
evaluate.py:29
↓ 1 callers
Method
update_iso
(pos_y, pos_x, batch)
confgen/model/gnn.py:657
Method
__cat_dim__
(self, key, value)
confgen/e2c/dataset.py:386
Method
__init__
(self, warmup=4e3, tmax=1e5, eta_min=5e-4)
confgen/utils/utils.py:13
Method
__init__
(self, args)
confgen/utils/utils.py:76
Method
__init__
( self, mlp_hidden_size: int = 512, mlp_layers: int = 2, latent_size: int = 25
confgen/model/gnn.py:22
Method
__init__
( self, edge_model, node_model, global_model, aggregate_edges_for_node
confgen/model/conv.py:12
Method
__init__
(self, p=0.0, submodule=None)
confgen/model/conv.py:109
Method
__init__
( self, input_size, output_sizes, use_layer_norm=False, activation=nn.
confgen/model/conv.py:171
Method
__init__
(self, emb_dim)
confgen/model/conv.py:219
Method
__init__
(self, emb_dim)
confgen/model/conv.py:228
Method
__init__
(self, dim_in, dim_out, dim_c)
confgen/model/conv.py:237
Method
__init__
(self, emb_dim, num_heads)
confgen/model/conv.py:250
Method
__init__
(self, emb_dim, num_heads)
confgen/model/conv.py:289
Method
__init__
( self, root="dataset", rdk2graph=rdk2graph, transform=None, pre_trans
confgen/e2c/dataset.py:23
Method
download
(self)
confgen/e2c/dataset.py:70
Method
forward
(self, batch, sample=False)
confgen/model/gnn.py:261
Method
forward
( self, x: Tensor, edge_index: Tensor, edge_attr: Tensor, u: Tensor,
confgen/model/conv.py:42
Method
forward
(self, x)
confgen/model/conv.py:115
Method
forward
(self, x)
confgen/model/conv.py:164
Method
forward
(self, x)
confgen/model/conv.py:212
Method
forward
(self, x)
confgen/model/conv.py:223
Method
forward
(self, x)
confgen/model/conv.py:232
Method
forward
(self, x, context)
confgen/model/conv.py:243
Method
forward
q: [N, C] k: [N, 2*c] v: [N, 2*c]
confgen/model/conv.py:269
Method
forward
(self, q, k, index, dim_size)
confgen/model/conv.py:305
Method
get_angle
(vec1, vec2)
confgen/model/gnn.py:554
Function
get_energy
(mol, addhs=False)
confgen/utils/psi4_utils.py:24
Function
get_rmsd_min
(inputargs)
evaluate.py:62
Function
num_vertices
(G)
confgen/molecule/gt.py:19
Method
process
(self)
confgen/e2c/dataset.py:76
Method
processed_file_names
(self)
confgen/e2c/dataset.py:67
Method
raw_file_names
(self)
confgen/e2c/dataset.py:62
Function
rdk2graphedge
(mol: Mol)
confgen/molecule/graph.py:13