Home | Trees | Indices | Help |
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
massDict = {"+": 1.00728, "H": 1.0078250321, "1H": 1.007825032
|
|
Sets bond types to "frag" in the input mol if it is matched by an input smarts pattern. Inputs: mol: an OEGraphMol object smartsPatterns: a list of smarts patterns that indicate a particular bond to look for; must use atom map index values of 1 and 2 to indicate the particular bond in the pattern to flag. Outputs: integer number of bonds flagged Bond types are set using bond.SetType("frag"), so be careful if you use the bondType field for another purpose. Also, the input mol is directly modified with the flagged bond types. |
Given an input smiles string, the associated molecule is fragmented into all possible fragment combinations defined by the input frag_patterns. Inputs smiles: a SMILES string frag_patterns: a list of fragmentation patterns, specified as SMARTS strings Outputs a list of fragment SMILES strings This function does not fragment a molecule into all of its pieces. Rather it fragments a molecule at each bond matched in frag_patterns, in all possible combinations. The function then returns each unique fragment (if a molecule contains two of the same fragment, this fragment is only returned once) |
Returns the mass of molecule defined by the input SMILES. Input smiles: a SMILES string Output the total molecular mass of the SMILES string This function uses the globablly defined massDict to get accurate mass values taken from NIST. The look up in the dictionary is done by atomic symbol. If no value is found for a particular atomic symbol, then OEChem default average weight is used instead. |
Returns the type of fragment given in the input SMILES. Input: smiles: a SMILES string Output: a string indicating the fragment type, named according to conventions defined by collaborators This function defines fragment types by looking at the atom valencies in the input SMILES, compared to the standard values. This allows one to find lone electrons that indicate potential reaction sites which define the fragment type. |
|
massDict
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Thu Nov 8 17:49:24 2007 | http://epydoc.sourceforge.net |