Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Yes, I am searching for subgraph isomorphisms.

Sure I will try to explain it. Each graph represents the bonded structure of either a compound from a metabolic database such as the HMDB or it represents the bonded structure of a functional group or other small chemical moeity. I am trying to find all instances of that chemical moeity within the compound of interest and I can do that by searching for all subgraphs which are identical or can be mapped to the chemical moeity.

Yes, in reference to the GT algorithms ignoring the type of data, I have added some heuristics to the part of the algorithm that creates the "mapping matrix", the actual matrix which is enumerated to remedy this. This matrix has rows equal to the number of atoms in the moeity and columns equal to the number of atoms in the query compound. Potential mappings between atom i in the moeity and j in the compound are designated by setting element i,j equal to one. By setting very strict rules based on chemical properties: don't match a C to a N, don't match atoms of differing total bond order etc, I can reduce the number of ones in the mapping matrix, speeding up the enumeration process greatly.

A major reason why I adopted the graph theory approach is flexibility. While not as fast as a hard coded method, it allows me to add new moeities I can search for without modifying my code. Additionally, by searching for a database compound within another database compound with the same formula, I can test for stereoisomerism by ignoring stereochemistry on individual atoms and seeing if the graphs are isomorphic. This is a key step in my research and the GT approach allows me to do that as well as search for moeities.

Hope this answered your questions. Thanks for the help.


In reply to Re^10: Optimization Help by jmmitc06
in thread Optimization Help by jmmitc06

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (11)
    As of 2014-09-30 20:17 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (383 votes), past polls