<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=Oracle_scraps</id>
	<title>Oracle scraps - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=Oracle_scraps"/>
	<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Oracle_scraps&amp;action=history"/>
	<updated>2026-04-07T04:42:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://wiki.docking.org/index.php?title=Oracle_scraps&amp;diff=7260&amp;oldid=prev</id>
		<title>Frodo: Created page with &quot;= Trigger for calculating fields upon structure insert = &lt;pre&gt;  Basic BIOACTIVITY call based on current ZINC infrastructure (example):  select ID_STRUC_FK from BIOACTIVITY whe...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=Oracle_scraps&amp;diff=7260&amp;oldid=prev"/>
		<updated>2014-03-18T17:01:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Trigger for calculating fields upon structure insert = &amp;lt;pre&amp;gt;  Basic BIOACTIVITY call based on current ZINC infrastructure (example):  select ID_STRUC_FK from BIOACTIVITY whe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Trigger for calculating fields upon structure insert =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Basic BIOACTIVITY call based on current ZINC infrastructure (example):&lt;br /&gt;
 select ID_STRUC_FK from BIOACTIVITY where TARGET_NAME=’Anandamide amidohydrolase’ AND ACTIVITY_DESC=’Binding, 1uM’;&lt;br /&gt;
 *Free flag as well?*&lt;br /&gt;
 AND FREE_FLAG=1&lt;br /&gt;
&lt;br /&gt;
Populating PROTOMER with chemical terms:&lt;br /&gt;
&lt;br /&gt;
ZINC descriptors as Oracle calls. Putting all these on PROTOMER for searching (also on STRUCTURES, but for benchmarking, pull from PROTOMER);&lt;br /&gt;
update PROTOMER&lt;br /&gt;
MW:&lt;br /&gt;
LogP&lt;br /&gt;
Net Charge&lt;br /&gt;
Rotatable bonds&lt;br /&gt;
PSA&lt;br /&gt;
H Donors&lt;br /&gt;
H Acceptors&lt;br /&gt;
PolDesolv&lt;br /&gt;
ApolarDesolv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PL/SQL calls for various Oracle/Cartridge components based on current ZINC architecture:&lt;br /&gt;
&lt;br /&gt;
Structure searching - feed in SMILES&lt;br /&gt;
	select STRUCTURES_ID from STRUCTURES/PROTOMER where [call] =1&lt;br /&gt;
	jc_compare(STRUCTURE, ‘smiles’, options) Options separated by space&lt;br /&gt;
Similarity&lt;br /&gt;
‘t:i simThreshold:0.9’ (or dissimilarityThreshold)&lt;br /&gt;
Similarity metric&lt;br /&gt;
dissimilarity&lt;br /&gt;
Query by ‘t:t dissimilarityThreshold:0.6 dissimilarityMetric:tversky;0.3,0.7’&lt;br /&gt;
duplicate/identity (flag stereo matching)&lt;br /&gt;
‘t:d’ duplicate&lt;br /&gt;
index only (fingerprint, no atom matching) Speed difference?&lt;br /&gt;
‘t:na’&lt;br /&gt;
substructure&lt;br /&gt;
‘t:s’ (substructure search is default, doesn’t need to be specified)&lt;br /&gt;
superstructure&lt;br /&gt;
‘t:u’&lt;br /&gt;
fragment (query and target must have same heavy atom network for matching, all features otherwise treated as substructure).&lt;br /&gt;
‘t:f’ &lt;br /&gt;
toggle options to consider:	&lt;br /&gt;
max hit count&lt;br /&gt;
maxHitCount:x&lt;br /&gt;
max time &lt;br /&gt;
maxTime:x (x in milliseconds, default is unlimited)&lt;br /&gt;
early results (returned block size, provides fast results as first 100 returned for page, then can continue searching while visualization calls present the webpage)&lt;br /&gt;
fingerprint type ‘descriptorName’ - requires additional structure index fields&lt;br /&gt;
Different fingerprints can be generated through the addMd ALTER INDEX parameter and can be selected for use with descriptorName option&lt;br /&gt;
alter index jcxnci parameters(&amp;#039;addDfltMdConf=ECFP&amp;#039;) [added]&lt;br /&gt;
CF (default?), PF, BCUT, ECFP&lt;br /&gt;
absolute or exact stereo, stereo ignored, required, etc.&lt;br /&gt;
absoluteStereo:x&lt;br /&gt;
radicals, isotopes, charges (ignored, exact, default)&lt;br /&gt;
double bond stereo&lt;br /&gt;
doubltBondStereo:A&lt;br /&gt;
matching of implicit H&lt;br /&gt;
polymer options (if Marvin applet input provided)&lt;br /&gt;
tautomer searching: table level? Ability to specify yes or no?&lt;br /&gt;
To be used together with duplicate search (t:d). For jchem index operations, tdf:y option has to be set for the jchem index or the underlying JChem table.&lt;br /&gt;
If y, generic tautomer of query and target used in search.&lt;br /&gt;
chemical terms filter with substructure to apply things like MW, donorcount, ring count, and of the bajillion chemical terms offered.&lt;br /&gt;
Comparison: chemical terms as part of search, or part of INTERSECT from another table?&lt;br /&gt;
Combine with filterquery to limit number of compounds searched? Compare&lt;br /&gt;
R-atoms/homology groups if Marvin applets used to input structure&lt;br /&gt;
Bioactivity: Materialized view of biological activity. Relevant columns for searching:&lt;br /&gt;
ID_STRUC_FK: (Structure IDs)&lt;br /&gt;
TARGET_NAME&lt;br /&gt;
IC50&lt;br /&gt;
CHEMBL_ID&lt;br /&gt;
ACTIVITY_DESC: binding, etc&lt;br /&gt;
SOURCE&lt;br /&gt;
FREE_FLAG: 1/0&lt;br /&gt;
SWISSPROT&lt;br /&gt;
CHEMBL&lt;br /&gt;
UNIPROT&lt;br /&gt;
PH ranges of protomers&lt;br /&gt;
All 1/null flags on relevant columns: PH_HI/MID/LO. Original structure is PH_REF. If the compound is a protomer, the pH of max occupancy will be in PH_MAX_OCCUPANCY.&lt;br /&gt;
ZINC ID&lt;br /&gt;
Vendor&lt;br /&gt;
CATALOG_REF: VENDOR_NAME for CAT_REF_ID&lt;br /&gt;
CATALOG: (has items) CAT_REF_ID_FK to link vendors, ID_STRUC_FK to link to structures.&lt;br /&gt;
&lt;br /&gt;
Oracle set operators read left to right unless parentheses say otherwise. INTERSECT ideal call vs. constructing AND sets. Oracle evaluates expressions inside parentheses before evaluating those outside.&lt;br /&gt;
	- put all other conditions in paranthesis, then structure search based on that returned set.&lt;br /&gt;
&lt;br /&gt;
Precedence using filterquery!&lt;br /&gt;
&lt;br /&gt;
SELECT count(*) FROM nci_10m WHERE jc_compare(structure, &amp;#039;c1ccccc1&amp;#039;, &amp;#039;sep=! t:s!filterQuery:select rowid from nci_10m where projid = 502&amp;#039;) = 1&lt;br /&gt;
&lt;br /&gt;
	Build into filterquery all other statements, using INTERSECT&lt;br /&gt;
&lt;br /&gt;
Evaluating compounds using chemical terms&lt;br /&gt;
select jc_evaluate_x(‘input’, ‘chemTerms:tautomers() outFormat:smiles’) from TABLE&lt;br /&gt;
useful for structure check before search?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Overall Call Structure&lt;br /&gt;
&lt;br /&gt;
Substructure only search:&lt;br /&gt;
select STRUCTURES_ID from STRUCTURES where jc_compare(STRUCTURE, ‘query’, ‘t:s’)=1&lt;br /&gt;
&lt;br /&gt;
Addition of filterquery utility (5.8):&lt;br /&gt;
select STRUCTURES_ID from STRUCTURES where jc_compare(STRUCTURE, ‘query’, ‘sel=! t:s!filterQuery:select logic’)=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thoughts&lt;br /&gt;
Family clustering on results page. eg instead of showing 25 stereoisomers, show a non-stereo compound and give it a ‘stack’ image with text saying “25 Stereoisomes”. Hover over and pop-up shows the isomers, then functions as normal. &lt;br /&gt;
Subset definitions&lt;br /&gt;
Purchasability definitions (popup over label?)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Frodo</name></author>
	</entry>
</feed>