MCPcopy Create free account

hub / github.com/Hanjun-Dai/GLN / functions

Functions181 in github.com/Hanjun-Dai/GLN

↓ 14 callersMethodget_mol_graph
(self, name)
gln/mods/mol_gnn/mol_utils.py:143
↓ 7 callersFunctionget_gnn
(args, gm=None)
gln/graph_logic/__init__.py:9
↓ 6 callersMethodis_cuda
(self)
gln/mods/mol_gnn/gnn_family/utils.py:34
↓ 6 callersFunctionjagged_forward
(list_graph, list_of_list_cand, graph_enc, cand_enc, att_func, list_target_pos=None, normalize=True)
gln/graph_logic/soft_logic.py:28
↓ 6 callersFunctiontemplate_atom_could_have_been_tetra
Could this atom have been a tetrahedral center? If yes, template atom is considered achiral and will not match a chiral rct If no, the te
gln/mods/rdchiral/chiral.py:6
↓ 5 callersFunctioncanonicalize
(smiles)
gln/common/evaluate.py:9
↓ 5 callersFunctioncopy_chirality
(a_src, a_new)
gln/mods/rdchiral/chiral.py:28
↓ 5 callersMethodget_cano_smiles
(cls, smiles)
gln/data_process/data_info.py:178
↓ 5 callersFunctionmake_contiguous
gln/mods/torchext/src/extlib.cpp:10
↓ 5 callersFunctionmake_contiguous
gln/mods/torchext/src/extlib_cuda.cpp:6
↓ 4 callersFunction_rand_sample_except
(candidates, exclude, k=None)
gln/training/data_gen.py:32
↓ 4 callersFunctionconvert_atom_to_wildcard
This function takes an RDKit atom and turns it into a wildcard using heuristic generalization rules. This function should be used when candid
gln/mods/rdchiral/template_extractor.py:359
↓ 4 callersFunctionget_agg
(agg_type)
gln/mods/mol_gnn/gnn_family/utils.py:136
↓ 4 callersFunctionprepare_gnn
(graph_list, is_cuda)
gln/mods/mol_gnn/gnn_family/utils.py:149
↓ 4 callersMethodset_fp_degree
(self, degree, fp_info=False)
gln/mods/mol_gnn/mol_utils.py:112
↓ 3 callersMethod__init__
(self, list_keys, fn_getkey, embed_size)
gln/graph_logic/soft_logic.py:107
↓ 3 callersFunction_glorot_uniform
(t)
gln/mods/mol_gnn/torch_util.py:82
↓ 3 callersFunction_param_init
(m)
gln/mods/mol_gnn/torch_util.py:97
↓ 3 callersFunctionatom_chirality_matches
Checks for consistency in chirality between a template atom and a molecule atom. Also checks to see if chirality needs to be inverted in cop
gln/mods/rdchiral/chiral.py:45
↓ 3 callersFunctioncano_smarts
(smarts)
gln/common/mol_utils.py:23
↓ 3 callersMethodinference
(self, list_mols, list_of_list_templates)
gln/graph_logic/soft_logic.py:163
↓ 3 callersMethodinit
(cls, dropbox, args)
gln/data_process/data_info.py:125
↓ 3 callersMethodload_cooked_part
(cls, phase, part, load_graphs=True)
gln/data_process/data_info.py:62
↓ 3 callersMethodload_dump
(self, prefix, additive=False, load_feats=True, load_fp=True)
gln/mods/mol_gnn/mol_utils.py:217
↓ 3 callersFunctionrdchiralRun
rxn = rdchiralReaction (rdkit reaction + auxilliary information) reactants = rdchiralReactants (rdkit mol + auxilliary information) note
gln/mods/rdchiral/main.py:87
↓ 3 callersMethodsave_dump
(self, prefix)
gln/mods/mol_gnn/mol_utils.py:160
↓ 3 callersFunctionsmarts_has_useless_parentheses
(smarts)
gln/common/mol_utils.py:34
↓ 2 callersMethod__init__
(self, input_dim, hidden_dims, nonlinearity='elu', act_last=None, bn=False, dropout=-1)
gln/mods/mol_gnn/torch_util.py:47
↓ 2 callersMethod__init__
(self, args)
gln/graph_logic/graph_feat.py:28
↓ 2 callersFunctionbond_dirs_by_mapnum
(mol)
gln/mods/rdchiral/bonds.py:12
↓ 2 callersFunctionbond_to_label
This function takes an RDKit bond and creates a label describing the most important attributes
gln/mods/rdchiral/utils.py:83
↓ 2 callersFunctionbond_to_label
This function takes an RDKit bond and creates a label describing the most important attributes
gln/mods/rdchiral/template_extractor.py:689
↓ 2 callersFunctionclear_isotope
(mol)
gln/mods/rdchiral/template_extractor.py:121
↓ 2 callersFunctioneval_model
(phase, model, fname_pred)
gln/test/main_test.py:68
↓ 2 callersMethodget_cano_smarts
(cls, smarts)
gln/data_process/data_info.py:186
↓ 2 callersMethodget_fp
(self, graph_list)
gln/mods/mol_gnn/gnn_family/morganfp.py:37
↓ 2 callersFunctionget_fragments_for_changed_atoms
Given a list of RDKit mols and a list of changed atom tags, this function computes the SMILES string of molecular fragments using MolFragmentToSmi
gln/mods/rdchiral/template_extractor.py:498
↓ 2 callersFunctionget_strict_smarts_for_atom
For an RDkit atom object, generate a SMARTS pattern that matches the atom as strictly as possible
gln/mods/rdchiral/template_extractor.py:431
↓ 2 callersFunctionget_tagged_atoms_from_mols
Takes a list of RDKit molecules and returns total list of atoms and their tags
gln/mods/rdchiral/template_extractor.py:29
↓ 2 callersFunctionget_writer
(fname, header)
gln/data_process/build_all_reactions.py:60
↓ 2 callersFunctionget_writer
(fname, header)
gln/data_process/build_raw_template.py:14
↓ 2 callersFunctioninitialize_reactants_from_smiles
(reactant_smiles)
gln/mods/rdchiral/initialization.py:135
↓ 2 callersFunctionload_bin_feats
(dropbox, args)
gln/data_process/data_info.py:19
↓ 2 callersFunctionload_center_maps
(fname)
gln/data_process/data_info.py:30
↓ 2 callersFunctionload_train_reactions
(args)
gln/data_process/data_info.py:45
↓ 2 callersFunctionmols_from_smiles_list
Given a list of smiles strings, this function creates rdkit molecules
gln/mods/rdchiral/template_extractor.py:13
↓ 2 callersFunctionparity4
Thanks to http://www.dalkescientific.com/writings/diary/archive/2016/08/15/fragment_parity_calculation.html
gln/mods/rdchiral/utils.py:8
↓ 2 callersFunctionreplace_deuterated
(smi)
gln/mods/rdchiral/template_extractor.py:22
↓ 2 callersFunctionrestore_bond_stereo_to_sp2_atom
Copy over single-bond directions (ENDUPRIGHT, ENDDOWNRIGHT) to the single bonds attached to some double-bonded atom, a a - atom with a doubl
gln/mods/rdchiral/bonds.py:327
↓ 2 callersMethodrun_reaction
(self, src, template)
gln/common/reactor.py:36
↓ 2 callersFunctionset_isotope_to_equal_mapnum
(mol)
gln/mods/rdchiral/template_extractor.py:93
↓ 1 callersMethodPrepareBatchFeature
(self, molgraph_list)
gln/mods/mol_gnn/mg_clib/mg_lib.py:73
↓ 1 callersMethodPrepareIndices
(self, graph_list)
gln/mods/mol_gnn/mg_clib/mg_lib.py:44
↓ 1 callersMethod__init__
(self, node_state_dim, output_dim, max_lv, act_func, out_method, readout_agg, act_last, bn)
gln/mods/mol_gnn/gnn_family/utils.py:69
↓ 1 callersMethod__init__
(self, latent_dim, output_dim, num_node_feats, num_edge_feats, max_lv=3, act_func='tanh', readout_agg='sum', s
gln/mods/mol_gnn/gnn_family/mean_field.py:30
↓ 1 callersMethod__init__
(self, latent_dim, output_dim, num_node_feats, num_edge_feats, max_lv=3, act_func='relu', readout_agg='sum', a
gln/mods/mol_gnn/gnn_family/s2v.py:30
↓ 1 callersMethod__init__
(self, node_state_dim, output_dims, edge_hidden_sizes, num_node_feats, num_edge_feats, max_l
gln/mods/mol_gnn/gnn_family/ggnn.py:46
↓ 1 callersMethod__init__
(self)
gln/common/torch_util.py:26
↓ 1 callersMethod_get_inv
(self, m)
gln/mods/mol_gnn/mol_utils.py:116
↓ 1 callersMethod_ordered_tpls
(self, cano_prod, beam_size, rxn_type)
gln/test/model_inference.py:46
↓ 1 callersFunctionatoms_are_different
Compares two RDKit atoms based on basic properties
gln/mods/rdchiral/template_extractor.py:51
↓ 1 callersMethodbackward
(ctx, grad_output)
gln/mods/torchext/jagged_ops.py:27
↓ 1 callersFunctioncano_smiles
(smiles)
gln/common/mol_utils.py:9
↓ 1 callersFunctioncanonicalize_outcome_smiles
(smiles, ensure=True)
gln/mods/rdchiral/clean.py:9
↓ 1 callersFunctioncanonicalize_template
This function takes one-half of a template SMARTS string (i.e., reactants or products) and re-orders them based on an equivalent string witho
gln/mods/rdchiral/template_extractor.py:657
↓ 1 callersFunctioncanonicalize_transform
This function takes an atom-mapped SMARTS transform and converts it to a canonical form by, if nececssary, rearranging the order of reactant a
gln/mods/rdchiral/template_extractor.py:648
↓ 1 callersFunctioncheck_tetrahedral_centers_equivalent
Checks to see if tetrahedral centers are equivalent in chirality, ignoring the ChiralTag. Owning molecules of the input atoms must have been I
gln/mods/rdchiral/template_extractor.py:110
↓ 1 callersMethodclear
(self)
gln/mods/mol_gnn/mol_utils.py:157
↓ 1 callersFunctionclear_mapnum
(mol)
gln/mods/rdchiral/template_extractor.py:25
↓ 1 callersFunctioncombine_enantiomers_into_racemic
If two products are identical except for an inverted CW/CCW or an opposite cis/trans, then just strip that from the product. Return the a
gln/mods/rdchiral/clean.py:24
↓ 1 callersFunctiondata_gen
(num_workers, worker_func, worker_args, max_qsize=16384, max_gen=-1, timeout=60)
gln/training/data_gen.py:130
↓ 1 callersFunctionenumerate_possible_cistrans_defs
This function is meant to take a reactant template and fully enumerate all the ways in which different double-bonds can have their cis/trans
gln/mods/rdchiral/bonds.py:26
↓ 1 callersFunctionexpand_atoms_to_use
Given an RDKit molecule and a list of AtomIdX which should be included in the reaction, this function expands the list of AtomIdXs to include one
gln/mods/rdchiral/template_extractor.py:281
↓ 1 callersFunctionexpand_atoms_to_use_atom
Given an RDKit molecule and a list of AtomIdx which should be included in the reaction, this function extends the list of atoms_to_use by consider
gln/mods/rdchiral/template_extractor.py:317
↓ 1 callersFunctionexpand_changed_atom_tags
Given a list of changed atom tags (numbers as strings) and a string consisting of the reactant_fragments to include in the reaction transform, thi
gln/mods/rdchiral/template_extractor.py:484
↓ 1 callersFunctionextract_from_reaction
(reaction)
gln/mods/rdchiral/template_extractor.py:702
↓ 1 callersFunctionfind_map_num
(mol, mapnum)
gln/mods/rdchiral/template_extractor.py:71
↓ 1 callersFunctionget_atom_feat
(atom, sanitized)
gln/mods/mol_gnn/mol_utils.py:14
↓ 1 callersFunctionget_atoms_across_double_bonds
This function takes a molecule and returns a list of cis/trans specifications according to the following: (mapnums, dirs) where ato
gln/mods/rdchiral/bonds.py:213
↓ 1 callersFunctionget_bond_feat
(bond, sanitized)
gln/mods/mol_gnn/mol_utils.py:47
↓ 1 callersFunctionget_changed_atoms
Looks at mapped atoms in a reaction and determines which ones changed
gln/mods/rdchiral/template_extractor.py:124
↓ 1 callersMethodget_feat
(self, graph_list)
gln/mods/mol_gnn/gnn_family/utils.py:64
↓ 1 callersFunctionget_frag_around_tetrahedral_center
Builds a MolFragment using neighbors of a tetrahedral atom, where the molecule has already been updated to include isotopes
gln/mods/rdchiral/template_extractor.py:98
↓ 1 callersMethodget_rxn
(self, rxn)
gln/common/reactor.py:17
↓ 1 callersFunctionget_rxn_smiles
(prod, reactants)
gln/data_process/clean_uspto.py:16
↓ 1 callersFunctionget_special_groups
Given an RDKit molecule, this function returns a list of tuples, where each tuple contains the AtomIdx's for a special group of atoms which should
gln/mods/rdchiral/template_extractor.py:219
↓ 1 callersMethodget_src
(self, smiles)
gln/common/reactor.py:31
↓ 1 callersFunctionget_tagged_atoms_from_mol
Takes an RDKit molecule and returns list of tagged atoms and their corresponding numbers
gln/mods/rdchiral/template_extractor.py:40
↓ 1 callersFunctionget_template_frags_from_rxn
(rxn)
gln/mods/rdchiral/initialization.py:147
↓ 1 callersFunctionget_tetrahedral_atoms
(reactants, products)
gln/mods/rdchiral/template_extractor.py:75
↓ 1 callersFunctionget_weighted_f1
(seq_pred, seq_gnd)
gln/common/evaluate.py:21
↓ 1 callersFunctionglorot_uniform
(m)
gln/mods/mol_gnn/torch_util.py:107
↓ 1 callersFunctionimpl_jagged_log_softmax_backward
gln/mods/torchext/src/extlib.cpp:66
↓ 1 callersFunctionimpl_jagged_log_softmax_forward
gln/mods/torchext/src/extlib.cpp:18
↓ 1 callersFunctioninitialize_rxn_from_smarts
(reaction_smarts)
gln/mods/rdchiral/initialization.py:105
↓ 1 callersFunctionload_raw_reacts
(name)
gln/test/main_test.py:30
↓ 1 callersFunctionmain_train
()
gln/training/main.py:29
↓ 1 callersMethodnew_mol
(self, name)
gln/mods/mol_gnn/mol_utils.py:126
↓ 1 callersFunctionprocess_centers
()
gln/data_process/get_canonical_smarts.py:17
↓ 1 callersFunctionprocess_smiles
()
gln/data_process/get_canonical_smiles.py:17
next →1–100 of 181, ranked by callers