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. Bioinformatics

GlobalChem DNA

PreviousGlobalChem RNANextGlobalChem Bacteria

Last updated 3 years ago

GlobalChem has the concept of a DNA into a 1-Dimensional format that can be used later on for dna-smiles to dna-ligand interaction of lexical strings. This way we can perhaps make casual inference between sets of ligands and sets of dna or proteins later on.

Import the Package

from global_chem_extensions import GlobalChemExtensions
bioinformatics = GlobalChemExtensions().bioinformatics()

Initialize a DNA Object

dna_molecule = bioinformatics.initialize_globalchem_dna(
        peptide_sequence='TGGGGAGGGTG',
)

Convert to SMILES

dna_molecule.convert_to_smiles()
Nc1nc2nc(C3CC(OP(=O)([O-])OCC4OC(Cc5c[nH]c(=O)[nH]c5=O)CC4OP(=O)([O-])OCC4OC(c5nc6nc(N)[nH]c(=O)c6[nH]5)CC4OP(=O)([O-])OCC4OC(Cc5c[nH]c(=O)[nH]c5=O)CC4OP(=O)([O-])OCC4OC(c5nc6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]-4-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]-[#6]4-[#8]-[#6](-[#6]5:[#7]:[#6]6:[#7]:[#6](-[#7]):[#7H]:[#6](=[#8]):[#6]:6:[#7H]:5)-[#6]-[#6]-4-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]-[#6]4-[#8]-[#6](-[#6]-[#6]5:[#6]:[#7H]:[#6](=[#8]):[#7H]:[#6]:5=[#8])-[#6]-[#6]-4-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]-[#6]4-[#8]-[#6](-[#6]5:[#7]:[#6]6:[#7]:[#6]:[#7]:[#6](-[#7]):[#6]:6:[#7H]:5)-[#6]-[#6]-4-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]-[#6]4-[#8]-[#6](-[#6]5:[#7]:[#6]6:[#7]:[#6]:[#7]:[#6](-[#7]):[#6]:6:[#7H]:5)-[#6]-[#6]-4-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]-[#6]4-[#8]-[#6](-[#6]5:[#7]:[#6]6:[#7]:[#6]:[#7]:[#6](-[#7]):[#6]:6:[#7H]:5)-[#6]-[#6]-4-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]-[#6]4-[#8]-[#6](-[#6]5:[#7]:[#6]6:[#7]:[#6]:[#7]:[#6](-[#7]):[#6]:6:[#7H]:5)-[#6]-[#6]-4-[#8]-[#15](=[#8])(-[#8-])-[#8-])-[#6](-[#6]-[#8]-[#15](=[#8])(-[#8-])-[#8]-[#6]4-[#6]-[#6]-[#8]-[#6]-4-[#6]-[#8])-[#8]-3):[#7H]:[#6]:2:[#6](=[#8]):[#7H]:1

Visualize the DNA Strand

dna_molecule.visualize_strand()

Visualize and Label the DNA Strand

dna_molecule.label_feature(
    start=0,
    end=3,
    label='Start'
)

dna_molecule.label_feature(
    start=4,
    end=8,
    label='Middle'
)


dna_molecule.label_feature(
    start=4,
    end=8,
    label='Middle 2',
    color='Blue'
)

dna_molecule.label_feature(
    start=8,
    end=12,
    label='End',
    color='Green'
)

dna_molecule.visualize_strand()

Save the DNA Image to a file

dna.save_to_image()