<?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=ZINC_ideas</id>
	<title>ZINC ideas - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.docking.org/index.php?action=history&amp;feed=atom&amp;title=ZINC_ideas"/>
	<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=ZINC_ideas&amp;action=history"/>
	<updated>2026-04-09T14:21:54Z</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=ZINC_ideas&amp;diff=7261&amp;oldid=prev</id>
		<title>Frodo: Created page with &quot;&lt;pre&gt; Materialized view for Bioactivity   Materialized view for all bioactivity allows for the tables to still remain separate, but the data to be queryable from a single sour...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.docking.org/index.php?title=ZINC_ideas&amp;diff=7261&amp;oldid=prev"/>
		<updated>2014-03-18T17:02:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Materialized view for Bioactivity   Materialized view for all bioactivity allows for the tables to still remain separate, but the data to be queryable from a single sour...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Materialized view for Bioactivity&lt;br /&gt;
 &lt;br /&gt;
Materialized view for all bioactivity allows for the tables to still remain separate, but the data to be queryable from a single source. However, this cannot be fast on commit, so DBMS_MVIEW needs to be called manually – via a trigger (on update of any of the 4 tables) or on a cron.&lt;br /&gt;
 &lt;br /&gt;
CREATE MATERIALIZED VIEW &amp;quot;CHEMAXON&amp;quot;.&amp;quot;BIOACTIVITY”&lt;br /&gt;
BUILD IMMEDIATE USING INDEX REFRESH ON DEMAND FORCE WITH PRIMARY KEY DISABLE QUERY REWRITE AS SELECT BIO_NUMBERS.ID_STRUC_FK,&lt;br /&gt;
  	TARGET.TARGET_NAME,&lt;br /&gt;
  	BIO_NUMBERS.IC50,&lt;br /&gt;
  	BIO_NUMBERS.CHEMBL_ID,&lt;br /&gt;
  	BIOACTIVITY_TYPE.ACTIVITY_DESC,&lt;br /&gt;
  	TARGET_SRC.SOURCE,&lt;br /&gt;
  	TARGET_SRC.FREE_FLAG,&lt;br /&gt;
  	TARGET.SWISSPROT,&lt;br /&gt;
  	TARGET.CHEMBL,&lt;br /&gt;
  	TARGET.UNIPROT,&lt;br /&gt;
  	TARGET.TARGET_SRC_FK&lt;br /&gt;
FROM BIO_NUMBERS INNER JOIN TARGET ON BIO_NUMBERS.TARGET_FK = TARGET.TARGET_ID&lt;br /&gt;
  	 INNER JOIN BIOACTIVITY_TYPE ON TARGET.ACTIVITY_TYPE = BIOACTIVITY_TYPE.BIOACT_TYPE_ID&lt;br /&gt;
  	 INNER JOIN TARGET_SRC ON TARGET.TARGET_SRC_FK = TARGET_SRC.TARGET_SRC_ID;&lt;br /&gt;
 &lt;br /&gt;
Protomer Table population&lt;br /&gt;
 &lt;br /&gt;
Program written in Groovy and implemented via IJC because it was easier. In production this will be done via PL/SQL.&lt;br /&gt;
&lt;br /&gt;
Basic program:&lt;br /&gt;
&lt;br /&gt;
For molecule in Structures table:&lt;br /&gt;
	Calculate all pKas between 4.5 and 9&lt;br /&gt;
	Insert original structure into Protomer table, with PH_REF=1&lt;br /&gt;
	If pKa exists between 4.5 and 9 then&lt;br /&gt;
		Sort pKas in order.&lt;br /&gt;
		Determine halfway point between 4.5, pKa1, pKa2....pKan, 9.&lt;br /&gt;
		For each halfway point, calculate the major microspecies&lt;br /&gt;
			[check that microspecies is not the same as the original]&lt;br /&gt;
			Toggle PH_HI/MID/LO=1 for each range halfway point falls in&lt;br /&gt;
			Put pH of halfway point into PH_MAX_OCCUPANCY column&lt;br /&gt;
			Insert microspecies and relevant data into Protomer table&lt;br /&gt;
&lt;br /&gt;
The code is protomer_population.txt in the ZINC dropbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Things to include in ZINC13&lt;br /&gt;
&lt;br /&gt;
Common name searching (captopril, viagra, etc)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Frodo</name></author>
	</entry>
</feed>