GlobalChem: Your Chemical Knowledge Graph
  • Welcome to the GlobalChem Documentation!
  • Quick Start
  • Extensions
  • API
    • GlobalChem
    • Graph Algorithm
  • Mother Nature
    • Mother Nature Commands
    • Discord Roles
  • Cheminformatics
    • SMILES Validation
    • Decoding Fingeringprints and SMILES to IUPAC
    • SMILES to PDF And Back
    • Drug Design Filters
    • Deep Layer Scatter
    • Identifier SMARTS
    • Protonating SMILES
    • Sunbursting SMILES
    • Visualizing SMARTS
    • One-Hot Encoding SMILES
    • Principal Component Analysis SMILES
    • GlobalChem Graph to Networkx Graph
    • Amino Acid Sequence to SMILES
    • Scaffold Graph Adapter
  • Bioinformatics
    • GlobalChem Protein
    • GlobalChem RNA
    • GlobalChem DNA
    • GlobalChem Bacteria
    • GlobalChem Monoclonal Antibody
  • Quantum Chemistry
    • Z-Matrix Store
    • Psi4Parser & Orbital Visualizer
  • ForceFields
    • GlobalChem Molecule
    • CGenFF Molecule
    • GAFF2 Molecule
    • CGenFF Dissimilarity Score
  • Development Operations
    • Open Source Database Monitor
  • Graphing Templates
    • Plotly
Powered by GitBook
On this page
  1. Cheminformatics

Scaffold Graph Adapter

PreviousAmino Acid Sequence to SMILESNextGlobalChem Protein

Last updated 3 years ago

Common Scaffolds around molecule datasets is becoming very common to find basically a lowest common denominator. Luckily, there is a tool from the University College London that accomplishes just that. The ScaffoldGraph:

Import Package

from global_chem import GlobalChem
from global_chem_extensions import GlobalChemExtensions

gc = GlobalChem()
cheminformatics = GlobalChemExtensions().cheminformatics()

Connect the ScaffoldGraph Adapter

Install the additional Scaffold Graph Visualizer Adapter

!pip install -q ipycytoscape

Fetch Node Data and Create the Scaffold Graph with IUPAC/SMILES

from scaffoldgraph.vis.notebook import cytoscape

adapter = cheminformatics.create_scaffold_graph(
            node_key = 'rings_in_drugs'
)

tree = adapter.connect()
print (tree)
GitHub - UCLCheminformatics/ScaffoldGraph: ScaffoldGraph is an open-source cheminformatics library, built using RDKit and NetworkX, for the generation and analysis of scaffold networks and scaffold trees.GitHub
Logo