GlobalChem RNA

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

Import the Package

from global_chem_extensions import GlobalChemExtensions

bioinformatics = GlobalChemExtensions().bioinformatics()

Initialize a RNA Object

rna_molecule = bioinformatics.initialize_globalchem_rna(
        peptide_sequence='UUUGGGGAGGGUG',
)

Convert to SMILES

rna_molecule.convert_to_smiles()

Convert to SMARTS

rna_molecule.convert_to_smarts()

Visualize the RNA Strand

rna_molecule.visualize_strand()

Visualize and Label the RNA Strand

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

rna_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 RNA Image to a file

rna.save_to_image()

Last updated