In [1]:
from marsi.nearest_neighbors import search_closest_compounds
In [2]:
from marsi.chemistry.common import dynamic_fingerprint_cut
In [3]:
glucose_inchi = "InChI=1/C6H12O6/c7-1-2-3(8)4(9)5(10)6(11)12-2/h2-11H,1H2/t2-,3-,4+,5-,6+/m1/s1"
In [4]:
from marsi.chemistry.molecule import Molecule
In [5]:
glucose_molecule = Molecule.from_inchi(glucose_inchi)
In [6]:
glucose_molecule
Out[6]:
In [7]:
cutoff = dynamic_fingerprint_cut(glucose_molecule.num_atoms); cutoff
Out[7]:
In [8]:
hits = search_closest_compounds(molecule=glucose_molecule, fp_cut=cutoff)
In [9]:
hits.sort_values('structural_score', ascending=False).head(15)
Out[9]:
In [10]:
from marsi.io.db import Metabolite
In [11]:
Metabolite.get('WCWOEQFAYSXBRK-FPRJBGLDSA-N')
Out[11]:
In [12]:
Metabolite.get('WCWOEQFAYSXBRK-QBFJYBIGSA-N')
Out[12]:
In [13]:
Metabolite.get('BQCCAEOLPYCBAE-UKFBFLRUSA-N')
Out[13]:
In [ ]: