GlobalChem
First initialize the class must be initialized:
gc = GlobalChem()Print the Network
gc.print_globalchem_network()
┌solvents─common_organic_solvents
┌organic_synthesis─└protecting_groups─amino_acid_protecting_groups
│ ┌polymers─common_monomer_repeating_units
├materials─└clay─montmorillonite_adsorption
│ ┌privileged_kinase_inhibtors
│ ├privileged_scaffolds
├proteins─kinases─┌scaffolds─├iupac_blue_book_substituents
│ │ └common_r_group_replacements
│ └braf─inhibitors
│ ┌vitamins
│ ├open_smiles
├miscellaneous─├amino_acids
│ └regex_patterns
global_chem──├environment─emerging_perfluoroalkyls
│ ┌schedule_one
│ ├schedule_four
│ ├schedule_five
├narcotics─├pihkal
│ ├schedule_two
│ └schedule_three
├interstellar_space
│ ┌cannabinoids
│ │ ┌electrophillic_warheads_for_kinases
│ ├warheads─└common_warheads_covalent_inhibitors
└medicinal_chemistry─│ ┌phase_2_hetereocyclic_rings
└rings─├iupac_blue_book_rings
└rings_in_drugs
Check the available nodes in GlobalChem:
nodes_list = gc.check_available_nodes()
print (nodes_list)'emerging_perfluoro_alkyls',
'montmorillonite_adsorption',
'common_monomer_repeating_units',
'electrophilic_warheads_for_kinases',Retrieve all the Nodes
nodes_list = gc.get_all_nodes()Get the Tree Depth of GlobalChem
depth = gc.get_depth_of_globalchem()Get GlobalChem All Nodes SMILES
depth = gc.get_all_smiles()Get GlobalChem All Nodes SMARTS
depth = gc.get_all_smarts()Get GlobalChem All Nodes Names
depth = gc.get_all_names()Get SMILES Definition by IUPAC Name
This function fetches the distance between two words using the Levenshtein distance with a distance tolerance number. It removes both grammar and upper case letters automatically and tries to match the best fitting word against the query and return their dedicated paths. Users have the option to return the exact definition or partial definitions.
You have the option to do a fuzzy reconstruction of the SMILES from the IUPAC used stripped grammar and functional groups:
Build the GlobalChem Network and Print it Out
The algorithm uses a series of parents/children to connect nodes instead of "edges" as in traditional graph networks. This just makes it easier to code if the graph database lives as a 1-dimensional with lists of parents and children's connected in this fashion.
Fetch a Node
Fetch the IUPAC:SMILES/SMARTS Data from the Node
Creating a Deep Layer Chemical Graph Networks (DGN) & Print it Out:
This is for the more advanced users of building networks and how to manage sets of layers.
Compute a Common Score
Common Score Algorithm:
Datamine the current graph network of GlobalChem
Get the object weights of each mention
Determine the mention weight
Sum the Weight's and that is how common the molecule is.
The higher the value the higher the common score tied with it's IUPAC name.
To TSV
The network returned in all CSV format for interoperability for web application development mostly but can also be used to search.
Last updated