User f698d0529d
19-10-2005 13:27:28
Hi
If I have these three benzenes in a regular Oracle Jchem indexed table
SMILES
c1ccccc1
c1cc[12cH]cc1
c1cc[13cH]cc1
and I want to formulate SQL to find compounds which contain (or exactly match) benzene, but are not C13, is there a way to do that? I cannot figure it out. In other words, the result of the query should be the first two smiles, but not the last.
While trying to figure this out, I have spotted a potential bug, or at least an inconsistency, as well.
select t.SMILES from temp_mcr t where jc_compare(t.SMILES, 'c1c[!13cH]ccc1', 't:s') = 1; - all three returned
select t.SMILES from temp_mcr t where jc_compare(t.SMILES, 'c1c[!12cH]ccc1', 't:s') = 1; - only the C13 isotope returned.
Thanks
Mark
If I have these three benzenes in a regular Oracle Jchem indexed table
SMILES
c1ccccc1
c1cc[12cH]cc1
c1cc[13cH]cc1
and I want to formulate SQL to find compounds which contain (or exactly match) benzene, but are not C13, is there a way to do that? I cannot figure it out. In other words, the result of the query should be the first two smiles, but not the last.
While trying to figure this out, I have spotted a potential bug, or at least an inconsistency, as well.
select t.SMILES from temp_mcr t where jc_compare(t.SMILES, 'c1c[!13cH]ccc1', 't:s') = 1; - all three returned
select t.SMILES from temp_mcr t where jc_compare(t.SMILES, 'c1c[!12cH]ccc1', 't:s') = 1; - only the C13 isotope returned.
Thanks
Mark