Skip to content
Newer
Older
100755 728 lines (680 sloc) 48.6 KB
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
1 <?
2 /**
3 * Marker Details
4 *
5 * details.php outputs a detailed html page of a marker and all associated
6 * attributes including all pipeline projects and their status.
7 *
8 * @author Jeremy Mason
9 * @version 1.0
10 */
11
12 /**
13 * Associative arrays for each pipeline status
14 * @global array $PIPELINE_STATES
15 * @global array $CSDSTATUSES
16 * @global array $EUCOMMSTATUSES
17 * @global array $NORCOMMSTATUSES
18 * @global array $REGNSTATUSES
19 * @global array $TIGMSTATUSES
20 */
21
22 $PIPELINE_STATES = array(
23 'prepipeline'=>"Pre Pipeline",
24 'design'=>"Designs",
25 'vector'=>"Vectors",
26 'escell'=>"ES Cells",
27 'mice'=>"Mice"
28 );
29
30 $CSDSTATUSES = array(
57b05b8 @jmason-ikmc Add Transferred to NorCOMM status
authored May 29, 2009
31 'Transferred to NorCOMM'=>array('name'=>'Transferred to NorCOMM', 'sequence'=>4, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'prepipeline'),
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
32 'Transferred to KOMP'=>array('name'=>'Transferred to KOMP', 'sequence'=>5, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'prepipeline'),
33 'On Hold'=>array('name'=>'On Hold', 'sequence'=>10, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'prepipeline'),
34 'Withdrawn From Pipeline'=>array('name'=>'Withdrawn From Pipeline', 'sequence'=>25, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'prepipeline'),
35 'Design Requested'=>array('name'=>'Design Requested', 'sequence'=>30, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'design'),
36 'Alternate Design Requested'=>array('name'=>'Alternate Design Requested', 'sequence'=>35, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'design'),
37 'VEGA Annotation Requested'=>array('name'=>'VEGA Annotation Requested', 'sequence'=>40, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'design'),
38 'Design Not Possible'=>array('name'=>'Design Not Possible', 'sequence'=>45, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'design'),
39 'Design Completed'=>array('name'=>'Design Completed', 'sequence'=>50, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'design'),
40 'Vector Construction in Progress'=>array('name'=>'Vector Construction in Progress', 'sequence'=>55, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
41 'Vector Unsuccessful - Project Terminated'=>array('name'=>'Vector Unsuccessful - Project Terminated', 'sequence'=>60, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'vector'),
42 'Vector Unsuccessful - Alternate Design in Progress'=>array('name'=>'Vector Unsuccessful - Alternate Design in Progress', 'sequence'=>65, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'vector'),
43 'Vector - Initial Attempt Unsuccessful'=>array('name'=>'Vector - Initial Attempt Unsuccessful', 'sequence'=>70, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'vector'),
44 'Vector Complete'=>array('name'=>'Vector Complete', 'sequence'=>75, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
45 'Vector - DNA Not Suitable for Electroporation'=>array('name'=>'Vector - DNA Not Suitable for Electroporation', 'sequence'=>77, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'vector'),
46 'ES Cells - Electroporation in Progress'=>array('name'=>'ES Cells - Electroporation in Progress', 'sequence'=>80, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
47 'ES Cells - Electroporation Unsuccessful'=>array('name'=>'ES Cells - Electroporation Unsuccessful', 'sequence'=>82, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'escell'),
48 'ES Cells - No QC Positives'=>array('name'=>'ES Cells - No QC Positives', 'sequence'=>85, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'escell'),
49 'ES Cells - Targeting Unsuccessful - Project Terminated'=>array('name'=>'ES Cells - Targeting Unsuccessful - Project Terminated', 'sequence'=>90, 'terminal'=>TRUE, 'warning'=>FALSE, 'category'=>'escell'),
50 'ES Cells - Targeting Confirmed'=>array('name'=>'ES Cells - Targeting Confirmed', 'sequence'=>95, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
51 'Mice - Microinjection in progress'=>array('name'=>'Mice - Microinjection in progress', 'sequence'=>100, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'mice'),
52 'Mice - Germline transmission'=>array('name'=>'Mice - Germline transmission', 'sequence'=>110, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'mice'),
53 'Mice - Genotype confirmed'=>array('name'=>'Mice - Genotype confirmed', 'sequence'=>115, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'mice')
54 );
55
56 // Same statuses for CSD, EUCOMM, and NorCOMM
57 $EUCOMMSTATUSES = $CSDSTATUSES;
58 $NORCOMMSTATUSES = $CSDSTATUSES;
59
60 $TIGMSTATUSES = array(
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
61 'Gene traps available'=>array('name'=>'Gene traps available', 'sequence'=>91, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell')
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
62 );
63
64 $REGNSTATUSES = array(
65 'Regeneron Selected'=>array('name'=>'Regeneron Selected', 'sequence'=>5, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'prepipeline'),
66 'Design Finished/Oligos Ordered'=>array('name'=>'Design Finished/Oligos Ordered', 'sequence'=>10, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'design'),
67 'Parental BAC Obtained'=>array('name'=>'Parental BAC Obtained', 'sequence'=>15, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
68 'Targeting Vector QC Completed'=>array('name'=>'Targeting Vector QC Completed', 'sequence'=>20, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
69 'Vector Electroporated into ES Cells'=>array('name'=>'Vector Electroporated into ES Cells', 'sequence'=>25, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
70 'ES cell colonies picked'=>array('name'=>'ES cell colonies picked', 'sequence'=>30, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
71 'ES cell colonies screened / QC no positives'=>array('name'=>'ES cell colonies screened / QC no positives', 'sequence'=>35, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'escell'),
72 'ES cell colonies screened / QC one positive'=>array('name'=>'ES cell colonies screened / QC one positive', 'sequence'=>40, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'escell'),
73 'ES cell colonies screened / QC positives'=>array('name'=>'ES cell colonies screened / QC positives', 'sequence'=>45, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
74 'ES Cell Clone Microinjected'=>array('name'=>'ES Cell Clone Microinjected', 'sequence'=>50, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
75 'Germline Transmission Achieved'=>array('name'=>'Germline Transmission Achieved', 'sequence'=>55, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'mice')
76 );
77
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
78
79 $REGNSTATUSES = array(
80 'Regeneron Selected'=>array('name'=>'Regeneron Selected', 'sequence'=>5, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'prepipeline'),
81 'Design Finished/Oligos Ordered'=>array('name'=>'Design Finished/Oligos Ordered', 'sequence'=>50, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'design'),
82 'Parental BAC Obtained'=>array('name'=>'Parental BAC Obtained', 'sequence'=>55, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
83 'Targeting Vector QC Completed'=>array('name'=>'Targeting Vector QC Completed', 'sequence'=>75, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
84 'Vector Electroporated into ES Cells'=>array('name'=>'Vector Electroporated into ES Cells', 'sequence'=>80, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'vector'),
85 'ES cell colonies picked'=>array('name'=>'ES cell colonies picked', 'sequence'=>81, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
86 'ES cell colonies screened / QC no positives'=>array('name'=>'ES cell colonies screened / QC no positives', 'sequence'=>85, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'escell'),
87 'ES cell colonies screened / QC one positive'=>array('name'=>'ES cell colonies screened / QC one positive', 'sequence'=>93, 'terminal'=>FALSE, 'warning'=>TRUE, 'category'=>'escell'),
88 'ES cell colonies screened / QC positives'=>array('name'=>'ES cell colonies screened / QC positives', 'sequence'=>95, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
89 'ES Cell Clone Microinjected'=>array('name'=>'ES Cell Clone Microinjected', 'sequence'=>100, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'escell'),
90 'Germline Transmission Achieved'=>array('name'=>'Germline Transmission Achieved', 'sequence'=>110, 'terminal'=>FALSE, 'warning'=>FALSE, 'category'=>'mice')
91 );
92
93
94
95
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
96 ?>
97 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
98 <html>
99 <head>
100 <meta content="text/html; charset=utf-8" http-equiv="content-type">
101 <title>Knockout Mouse Project (KOMP) :: Search <? print ($_GET['mgiid']) ? "Gene details for ".$_GET['mgiid'] : ''?> </title>
102 <meta content="The Knockout Mouse Project (KOMP) gene details for <? print ($_GET['mgiid']) ? "results for ".$_GET['mgiid'] : ''?>" name="description">
103 <script type="text/javascript">
104 function PopupNominate(mgiid) {
105 var w = 675;
106 var h = 615;
107 var winl = (w - screen.width) / 2;
108 var wint = (h - screen.height) / 2;
109 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=1,scrollbars=yes'
110 window.open("/nominate/"+mgiid, "", winprops)
111 }
112 </script>
113 <meta content="QAkkt/UQ6qLIXTN1QtrDMhLFpJiYpPkj90lkAZpL8hE=" name="verify-v1">
114 <link href="/misc/favicon.ico" type="image/x-icon" rel="shortcut icon">
115
116 <link media="all" href="http://prototype.knockoutmouse.org/modules/node/node.css?f" type="text/css" rel="stylesheet">
117 <link media="all" href="http://prototype.knockoutmouse.org/modules/system/defaults.css?f" type="text/css" rel="stylesheet">
118 <link media="all" href="http://prototype.knockoutmouse.org/modules/system/system.css?f" type="text/css" rel="stylesheet">
119 <link media="all" href="http://prototype.knockoutmouse.org/modules/system/system-menus.css?f" type="text/css" rel="stylesheet">
120 <link media="all" href="http://prototype.knockoutmouse.org/modules/user/user.css?f" type="text/css" rel="stylesheet">
121 <link media="all" href="http://prototype.knockoutmouse.org/sites/all/modules/cck/theme/content-module.css?f" type="text/css" rel="stylesheet">
122 <link media="all" href="http://prototype.knockoutmouse.org/sites/all/modules/dhtml_menu/dhtml_menu.css?f" type="text/css" rel="stylesheet">
123 <link media="all" href="http://prototype.knockoutmouse.org/sites/all/modules/cck/modules/fieldgroup/fieldgroup.css?f" type="text/css" rel="stylesheet">
124 <link media="all" href="http://prototype.knockoutmouse.org/sites/all/themes/ikmc/style.css?f" type="text/css" rel="stylesheet">
125 <script src="http://prototype.knockoutmouse.org/misc/jquery.js?f" type="text/javascript"></script>
126 <script src="http://prototype.knockoutmouse.org/misc/drupal.js?f" type="text/javascript"></script>
127 <script src="http://prototype.knockoutmouse.org/sites/all/modules/dhtml_menu/dhtml_menu.js?f" type="text/javascript"></script>
128 <script type="text/javascript">
129 <!--//-->//><!--
130 jQuery.extend(Drupal.settings, { "basePath": "/", "dhtmlMenu": { "clone": "clone", "slide": 0, "siblings": 0, "relativity": 0, "children": 0, "doubleclick": 0 }, "ahah": { "edit-attach": { "url": "/upload/js", "event": "mousedown", "keypress": true, "wrapper": "attach-wrapper", "selector": "#edit-attach", "effect": "none", "method": "replace", "progress": { "type": "bar", "message": "Please wait..." }, "button": { "attach": "Attach" } } }, "teaserCheckbox": { "edit-teaser-js": "edit-teaser-include" }, "teaser": { "edit-teaser-js": "edit-body" }, "tableDrag": { "upload-attachments": { "upload-weight": [ { "target": "upload-weight", "source": "upload-weight", "relationship": "sibling", "action": "order", "hidden": true, "limit": 0 } ] } } });
131 //--><!
132 </script>
133 <!--[if lte IE 7]><link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/ikmc/fix-ie.css" /><![endif]--><!--If Less Than or Equal (lte) to IE 7-->
134 <script type="text/javascript">
135 //
136 function jscss(a,o,c1){switch(a){case'add':if(!jscss('check',o,c1)){o.className+=o.className?' '+c1:c1;}break;case'remove':var rep=o.className.match(' '+c1)?' '+c1:c1;o.className=o.className.replace(rep,'');break;case'check':return new RegExp('\\b'+c1+'\\b').test(o.className);break;}}function actsearch(){var stab=document.getElementById('stab');var sbody=document.getElementById('sbody');var btab=document.getElementById('btab');var bbody=document.getElementById('bbody');if(!jscss('check',stab,'active-tab')){jscss('remove',btab,'active-tab');jscss('add',stab,'active-tab');jscss('remove',sbody,'hide');jscss('add',bbody,'hide');}return false;}function actbrowse(){var stab=document.getElementById('stab');var sbody=document.getElementById('sbody');var btab=document.getElementById('btab');var bbody=document.getElementById('bbody');if(!jscss('check',btab,'active-tab')){jscss('remove',stab,'active-tab');jscss('add',btab,'active-tab');jscss('remove',bbody,'hide');jscss('add',sbody,'hide');}return false;}
137 function _ikmctoggle(obj, elName, showtext, hidetext) { if (showtext == null){ showtext = 'show'; } else { showtext = "<img src='/static/images/plus.png' alt='Plus sign'> " + showtext; } if (hidetext == null){ hidetext = 'hide'; } else { hidetext = "<img src='/static/images/minus.png' alt='Minus sign'> " + hidetext; } var el = document.getElementById(elName); if (el.style.display == 'block'){ el.style.display='none'; obj.innerHTML = showtext; }else{ el.style.display='block'; obj.innerHTML = hidetext; } return false; }
138 //
139 </script>
140
141 <style>
142 .bb { background: url(images/sb_b3.gif) 100% 50%; height:60px; color:white; }
143 .bg { background: url(images/sb_g3.gif) 100% 50%; height:60px; color:white; }
144 .bo { background: url(images/sb_o3.gif) 100% 50%; height:60px; color:white; }
145 .br { background: url(images/sb_r3.gif) 100% 50%; height:60px; color:white; }
146
147 .gg { background: url(images/sg_g3.gif) 100% 50%; height:60px; color: black; }
148 .og { background: url(images/so_g3.gif) 100% 50%; height:60px; color: black; }
149 .rg { background: url(images/sr_g3.gif) 100% 50%; height:60px; color: white; }
150
151 .g- { background: url(images/e_g3.gif) 100% 50%; height:60px; color: black; }
152 .b- { background: url(images/e_b3.gif) 100% 50%; height:60px; color: white; }
153 .o- { background: url(images/e_o3.gif) 100% 50%; height:60px; color: black; }
154 .r- { background: url(images/e_r3.gif) 100% 50%; height:60px; color: white; }
155 table.resulttable tr th{ border:none; border-top:solid 1px; border-left: solid 1px;}
156
157 a.orderlink {background-color:green;color:white;font-weight:bold;border:solid 1px black;padding:3px; margin: 3px; margin-right:35px; display:block; text-align:center;}
158 a.orderlink:hover {border:solid 1px black; background-color: green; color:black}
159 </style>
160
161 </head>
162 <body>
163 <!-- Layout -->
164 <div id="wrapper">
165 <div id="header">
166 <a href="/" title="International Knockout Mouse Consortium">
167 <img src="http://prototype.knockoutmouse.org/sites/all/themes/ikmc/logo.png" alt="International Knockout Mouse Consortium" id="logo">
168 </a>
169 <h1 style="margin-top:47px;"><a href="/" title="International Knockout Mouse Consortium"><span id="sitename">International Knockout Mouse Consortium</span></a></h1>
170 <div id="under-header" class="region">
171 <div id="block-block-4" class="block block-block">
172 <div class="content">
173 <div id="searchbrowse">
174 <div>
175 <div class="tabs">
176 <span id='stab' class="active-tab" onclick="actsearch();">Search</span>
177 <span onclick="actbrowse();" id='btab'>Browse</span>
178 </div>
179 <div id="sbody" class="content">
180 <a style="font-size:85%;color:#666;float:right;" href="/faq/how-can-i-search-komp-database" id="search-link" name="search-link">help</a>
181 <b>Search</b> IKMC database<br />
182 <form action="/query.php" name="genelist-search" method="get" id="genelist-search">
183 <span class="small">Enter gene symbols, gene IDs or genome location</span><br />
184 <span style="text-white-space: nowrap;"><input class="small" tabindex="1" type="text" id="criteria" name="criteria" size="26"> <input class="small" type="submit" id="submit" value="Search" tabindex="2"></span><br />
185 <span class="small"><i>e.g., Adam19, Pax, ENSMUSG00000020681, Chr13:22210730-22311689</i></span>
186 </form>
187 </div>
188 </div>
189 <div id="bbody" class="content hide">
190 <a style="font-size:85%;color:#666;float:right;" href="/faq/how-can-i-browse-komp-database">help</a>
191 <b>Browse</b> IKMC database<br>
192 <span class="small"><i>Use the following links to browse genes</i></span><br>
193 <a style="margin-left:15px;" href="/query.php?symbol=A">Browse by Gene Symbol</a><br />
194 <a style="margin-left:15px;" href="/query.php?chromosome=1">Browse by Chromosome</a>
195 </div>
196 </div>
197 </div>
198 </div>
199 </div>
200 <div class="clear"></div>
201 </div> <!-- /#header -->
202 <div id="nav">
203 <ul class="links primary-links">
204 <li class="menu-278 active-trail first active"><a href="/Home" class="active" title="International Knockout Mouse Consortium2">Home</a></li>
205 <li class="menu-229"><a href="/about" title="About IKMC">About IKMC</a></li>
206 <li class="menu-163"><a href="/download" title="">Download</a></li>
207 <li class="menu-276"><a href="/mart" title="The IKMC Biomart">Biomart</a></li>
208 <li class="menu-172"><a href="/nominate" title="Nominate gene">Nominate gene</a></li>
209 <li class="menu-161"><a href="/faq" title="FAQ">FAQ</a></li>
210 <li class="menu-270"><a href="/content/order-products" title="Order Products">Order Products</a></li>
211 <li class="menu-164 last"><a href="/contact" title="">Contact IKMC</a></li>
212 </ul>
213 </div> <!-- /#nav -->
214 <div id="container">
215 <div id="center">
216 <div>
217 <div width="100%" style="margin-top:5px;text-align: left;" align="left">
218 <?
219
220 require_once('Apache/Solr/Service.php');
221
222 // Instance a new solr object
528cd82 @jmason-ikmc update endpoint for Solr queries
authored May 14, 2009
223 $solr = new Apache_Solr_Service( 'prototype.knockoutmouse.org', '80', '/' );
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
224
225 // Query the solr service
226 if ($_GET['mgiid']) {
227 $response = $solr->search( "mgiid:".str_replace(":", "\:", $_GET['mgiid']), $offset, $limit, array('sort' => 'symbol asc'));
228 } else {
229 print "Missing MGI ID";
230 }
231
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
232 // sequence sorting
233 function so ($a, $b) {
234
235 // Sort by product score first
236 // 0 = no product
237 // 1 = vectors available
238 // 2 = es cells available
239 // 3 = mice available
240 if ($a['score']<$b['score']) {
241 return 1;
242 } else if ($a['score']>$b['score']) {
243 return -1;
244 } else {
245 if ($a['sequence']<$b['sequence']) {
246 return 1;
247 } else if ($a['sequence']>$b['sequence']) {
248 return -1;
249 } else {
250 return 0;
251 }
252 }
253 }
254
255 function calculateProductScore($allproducts, $pid) {
256 $score = 0;
257 if ($allproducts) {
258 $products = is_array($allproducts) ? $allproducts : array($allproducts);
259 foreach ($products as $product) {
260 list($productid, $productpipeline, $producttype) = explode("||", $product);
261 if ($productid == $pid) {
262 if ($producttype == 'Mouse available') {
263 $score = 3;
264 } else if ($producttype == 'ES Cell available' and $score < 2) {
265 $score = 2;
266 } else if ($producttype == 'Vector available' and $score < 1) {
267 $score = 1;
268 }
269 }
270 }
271 }
272 return $score;
273 }
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
274 // Print the results in a table
275 if ( $response && $response->getHttpStatus() == 200 ) {
276 if ( $response->response->numFound > 0 ) {
277
278 // default to the first returned result
279 $doc = $response->response->docs[0];
280
281 // Collect the all pipeline information for this marker
282 // TODO: Sort these arrays by most advanced project first
283 $programs = array();
284 if ($doc->CSD_project) {
285 $pros = is_array($doc->CSD_project) ? $doc->CSD_project : array($doc->CSD_project);
286 foreach ($pros as $pro) {
287 list($pid,$status,$datetime) = explode("||", $pro);
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
288 $productscore = calculateProductScore($doc->available_product_display, $pid);
289 array_push($programs, array("name"=>"KOMP-CSD", "value"=>$status, "pid"=>$pid, "sequence"=>$CSDSTATUSES[$status]['sequence'], "score"=>$productscore, 'terminal'=>$CSDSTATUSES[$status]['terminal']));
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
290 }
291 }
292 if ($doc->Regeneron_project) {
293 $pros = is_array($doc->Regeneron_project) ? $doc->Regeneron_project : array($doc->Regeneron_project);
294 foreach ($pros as $pro) {
295 list($pid,$status,$datetime) = explode("||", $pro);
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
296 $productscore = calculateProductScore($doc->available_product_display, $pid);
297 array_push($programs, array("name"=>"KOMP-Regeneron", "value"=>$status, "pid"=>$pid, "sequence"=>$REGNSTATUSES[$status]['sequence'], "score"=>$productscore, 'terminal'=>$REGNSTATUSES[$status]['terminal']));
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
298 }
299 }
300 if ($doc->EUCOMM_project) {
301 $pros = is_array($doc->EUCOMM_project) ? $doc->EUCOMM_project : array($doc->EUCOMM_project);
302 foreach ($pros as $pro) {
303 list($pid,$status,$datetime) = explode("||", $pro);
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
304 $productscore = calculateProductScore($doc->available_product_display, $pid);
305 array_push($programs, array("name"=>"EUCOMM", "value"=>$status, "pid"=>$pid, "sequence"=>$EUCOMMSTATUSES[$status]['sequence'], "score"=>$productscore, 'terminal'=>$EUCOMMSTATUSES[$status]['terminal']));
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
306 }
307 }
308 if ($doc->NorCOMM_project) {
309 $pros = is_array($doc->NorCOMM_project) ? $doc->NorCOMM_project : array($doc->NorCOMM_project);
310 foreach ($pros as $pro) {
311 list($pid,$status,$datetime) = explode("||", $pro);
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
312 $productscore = calculateProductScore($doc->available_product_display, $pid);
313 array_push($programs, array("name"=>"NorCOMM", "value"=>$status, "pid"=>$pid, "sequence"=>$NORCOMMSTATUSES[$status]['sequence'], "score"=>$productscore, 'terminal'=>$NORCOMMSTATUSES[$status]['terminal']));
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
314 }
315 }
316
317 if ($doc->tigm) {
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
318 $productscore = 1.5;
319 array_push($programs, array("name"=>"TIGM", "value"=>"Gene traps available", "sequence"=>$TIGMSTATUSES["Gene traps available"]['sequence'], "score"=>$productscore));
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
320 }
321
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
322 usort($programs, 'so');
323 // print "<pre>\n";
324 // print_r($programs);
325 // print "</pre>\n";
326
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
327 // Uncomment to see the solr response
328 //echo "\n<!--\n"; print_r($doc); echo "\n-->\n";
329
330 ?>
331
332
333
334 <table class="resulttable">
335 <tr>
336 <th style="font-size:120%;font-weight:bold;">Gene Information</th>
337 </tr>
338 <tr>
339 <td>
340 <div style="width:800px">
341
342 <a style="text-align:center;float:right;text-decoration:none;font-size:80%;color:#999999" href="http://gbrowse.informatics.jax.org/cgi-bin/gbrowse/mouse_current/?start=<?= $doc->start?>;stop=<?= $doc->end?>;ref=<?= $doc->chromosome?>" target="_blank">MGI Genome Browser<br><img src="http://gbrowse.informatics.jax.org/cgi-bin/gbrowse_img/thumbs_current/?abs=1;options=Everything;width=200;name=<?= $doc->chromosome?>%3A<?= $doc->start?>-<?= $doc->end?>" alt="MGI Gbrowse thumbnail for <?= $doc->symbol?>"></a>
343
344 <h2 style="margin-top:5px;padding-top:5px;border:none;font-size:150%;font-weight:bold;"><a href="http://www.informatics.jax.org/searches/accession_report.cgi?id=<?= $doc->mgiid?>" target="_blank"><?= $doc->symbol?></a></h2>
345 <a href="javascript:;" onclick="PopupNominate('<?= $doc->mgiid?>');return false;">Express Interest</a>
346 <table class="featureless" width="500" style="width:500px;">
347 <tr><td valign="top"><b>Gene Name:</b></td><td><?= is_array($doc->name) ? $doc->name[0] : $doc->name ?></td></tr>
348 <? if ($doc->synonym) : ?><tr><td valign="top"><b>Synonyms:</b></td><td><?= is_array($doc->synonym) ? implode(", ", array_unique($doc->synonym)) : $doc->synonym ?></td></tr><? endif; ?>
349 <tr><td nowrap="nowrap" valign="top"><b>Gene Location:</b></td><td>Chr<?= $doc->chromosome?>:<?= $doc->start?>-<?= $doc->end?>(<?= $doc->strand?>)</td></tr>
350 </table>
351 <br />
352 <div style="margin-left:2px" id="show-<?= $doc->mgiid?>" onclick="document.getElementById('hide-<?= $doc->mgiid?>').style.display='block';document.getElementById('show-<?= $doc->mgiid?>').style.display='none';return false;">
353 <a href="#" class="unclicked smallplus">Show Other Ids</a>
354 </div>
355 <div style="margin-left:2px;" class="hidden" id="hide-<?= $doc->mgiid?>">
356 <div onclick="document.getElementById('show-<?= $doc->mgiid?>').style.display='block';document.getElementById('hide-<?= $doc->mgiid?>').style.display='none';return false;">
357 <a href="#" class="unclicked smallminus">Hide Other Ids</a>
358 </div>
359 <table class="featureless">
360 <tr>
361 <td valign="top">MGI ID:</td>
362 <td>
363 <a href="http://www.informatics.jax.org/searches/accession_report.cgi?id=<?= $doc->mgiid ?>" target="_blank"><?= $doc->mgiid ?></a> <br>
364 </td>
365 </tr>
366 <? if ($doc->ensembl_id) : ?>
367 <? $ids = is_array($doc->ensembl_id) ? array_unique($doc->ensembl_id) : array($doc->ensembl_id); ?>
368 <tr>
369 <td valign="top">Ensembl ID:</td>
370 <td>
371 <? foreach( $ids as $id ): ?>
372 <a href="http://www.ensembl.org/Mus_musculus/geneview?gene=<?= $id ?>" target="_blank"><?= $id ?></a> <br/>
373 <? endforeach; ?>
374 </td>
375 </tr>
376 <? endif; ?>
377 <? if ($doc->vega_id) : ?>
378 <? $ids = is_array($doc->vega_id) ? array_unique($doc->vega_id) : array($doc->vega_id); ?>
379 <tr>
380 <td valign="top">Vega ID:</td>
381 <td>
382 <? foreach( $ids as $id ): ?>
383 <a href="http://vega.sanger.ac.uk/Mus_musculus/geneview?gene=<?= $id ?>&amp;db=core" target="_blank"><?= $id ?></a> <br/>
384 <? endforeach; ?>
385 </td>
386 </tr>
387 <? endif; ?>
388 <? if ($doc->ncbi_id) : ?>
389 <? $ids = is_array($doc->ncbi_id) ? array_unique($doc->ncbi_id) : array($doc->ncbi_id); ?>
390 <tr>
391 <td valign="top">NCBI ID:</td>
392 <td>
393 <? foreach( $ids as $id ): ?>
394 <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&amp;cmd=Retrieve&amp;dopt=Graphics&amp;list_uids=<?= $id ?>" target="_blank"><?= $id ?></a> <br/>
395 <? endforeach; ?>
396 </td>
397 </tr>
398 <? endif; ?>
399 <? if ($doc->ccds_id) : ?>
400 <? $ids = is_array($doc->ccds_id) ? array_unique($doc->ncbi_id) : array($doc->ccds_id); ?>
401 <tr>
402 <td valign="top">CCDS ID:</td>
403 <td>
404 <? foreach( $ids as $id ): ?>
405 <a href="http://www.ncbi.nlm.nih.gov/CCDS/CcdsBrowse.cgi?REQUEST=CCDS&amp;DATA=<?= $id ?>" target="_blank"><?= $id ?></a> <br/>
406 <? endforeach; ?>
407 </td>
408 </tr>
409 <? endif; ?>
410 </table>
411 </div>
412 <? if ($doc->omim_display) : ?>
413 <div style="margin-left:2px" id="show-omim-<?= $doc->mgiid?>" onclick="document.getElementById('hide-omim-<?= $doc->mgiid?>').style.display='block';document.getElementById('show-omim-<?= $doc->mgiid?>').style.display='none';return false;">
414 <a href="#" class="unclicked smallplus">Show OMIM Diseases</a>
415 </div>
416 <div style="margin-left:2px;display:none;" id="hide-omim-<?= $doc->mgiid?>">
417 <div onclick="document.getElementById('show-omim-<?= $doc->mgiid?>').style.display='block';document.getElementById('hide-omim-<?= $doc->mgiid?>').style.display='none';return false;">
418 <a href="#" class="unclicked smallminus">Hide OMIM Diseases</a>
419 </div>
420 <? $rows = is_array($doc->omim_display) ? $doc->omim_display : array($doc->omim_display); ?>
421 <? foreach($rows as $row) : ?>
422 <? $pieces = explode("||", $row); $mgi_key=$pieces[1]; $disease=$pieces[2]; ?>
423 <a style="margin-left:15px;white-space:nowrap;" href="http://www.informatics.jax.org/javawi2/servlet/WIFetch?page=humanDisease&amp;key=<?=$mgi_key?>" target="_blank"><?=$disease?><br></a>
424 <? endforeach; ?>
425 </div>
426 <? endif; ?>
427 <br />
428 </td>
429 </tr>
430 <tr>
431 <th style="font-size:120%;font-weight:bold;">
432 IKMC Knockout Attempts <img src="/static/images/help.png" alt="Help icon" onmouseover="document.getElementById('attempts').style.display='block';return false;" height="18">
433 <div style="margin:15px;display:none;font-size:90%;font-weight:normal" id="attempts">
434 <a style="margin:0px;padding:0px;margin-top:-25px;float:right;text-decoration:underline;color:red;" href="#" onclick="document.getElementById('attempts').style.display='none';return false;">close <img src="/static/images/cross.png"></a>
435 The IKMC pipelines are:
436 <br><br>
437 <style>dt{font-weight:bold;}</style>
438 <dl class="smallish" style="margin-left: 25px;" >
439 <dt>KOMP-CSD</dt><dd>The KOMP consortium of CHORI, Sanger, and UC Davis</dd>
440 <dt>KOMP-Regeneron</dt><dd>The KOMP component at Regeneron</dd>
441 <dt>EUCOMM</dt><dd>The European Conditional Mouse Mutagenesis Program</dd>
442 <dt>NorCOMM</dt><dd>The North American Conditional Mouse Mutagenesis project</dd>
443 <dt>TIGM</dt><dd>The Texas A&M Institute for Genomic Medicine (gene trapping)</dd>
444 </dl><br>
445 All IKMC targeting attempts from the different pipelines are listed below. See <a href="/about">more information about the IKMC</a>.
446 <br>
447 </div> </th>
448 </tr>
449 <tr>
450
451 <td>
452 <table width="100%" class="featureless">
453 <? if ($programs) :
454 for ($i=0; $i<count($programs); $i++) :
455 $statuses = $CSDSTATUSES; // default to CSD statuses
456 if ($programs[$i]["name"] == "KOMP-Regeneron") {
457 $statuses = $REGNSTATUSES;
458 } else if ($programs[$i]["name"] == "EUCOMM") {
459 $statuses = $EUCOMMSTATUSES;
460 } else if ($programs[$i]["name"] == "NorCOMM") {
461 $statuses = $NORCOMMSTATUSES;
462 } else if ($programs[$i]["name"] == "TIGM") {
463 $statuses = $TIGMSTATUSES;
464 }
465 ?>
466 <tr bgcolor="<?= $bgcolor = ($bgcolor == '#ffffff') ? '#efefef' : '#ffffff' ?>">
467 <td valign="middle" width="10%" style="font-size:120%; color:black"><?=$programs[$i]["name"]?>
468 <br />
469 <?= ($programs[$i]["name"]!='TIGM') ? "Design: ".$programs[$i]['pid'] : '' ?>
470 </td>
471 <td>
472
473 <table class="featureless" cellspacing="0" cellpadding="0" style="padding:0;margin:0;">
474 <tr>
475 <? foreach ($PIPELINE_STATES as $state=>$name) : ?>
476 <td style="text-align:left;"><span style="font-size:110%;font-wight:bold;font-style:italic;"><?=$name?></span></td>
477 <? endforeach; ?>
478 </tr>
479 <tr>
480 <? reset($PIPELINE_STATES); ?>
481 <? while( list($key, $value) = each($PIPELINE_STATES)) : ?>
482 <?
483 // calculate which css class for the current cell based on
484 // the warning level of the status, the terminal level of
485 // the statusand the position of the status in the pipeline
486
487 switch ($statuses[$programs[$i]['value']]['category']) {
488 case 'mice':
489 if ($key == 'mice') {
490 $curr = 'g-';
491 if ($statuses[$programs[$i]['value']]['category'] == $key) {
492 if ($statuses[$programs[$i]['value']]['terminal']) {
493 $curr = 'r-';
494 } else if ($statuses[$programs[$i]['value']]['warning']) {
495 $curr = 'o-';
496 } else {
497 $curr = 'b-';
498 }
499 }
500 } else {
501 $curr = 'bb';
502 }
503 break;
504 case 'escell':
505 case 'vector':
506 case 'design':
507 case 'prepipeline':
508 $cat = $statuses[$programs[$i]['value']]['category'];
509 if ($key == $cat) {
510 $curr = 'bg';
511 if ($statuses[$programs[$i]['value']]['terminal']) {
512 $curr = 'rg';
513 } else if ($statuses[$programs[$i]['value']]['warning']) {
514 $curr = 'og';
515 }
516 } else {
517 $second='b';
518 if ($key != 'mice') {
519 if (
520 (($statuses[$programs[$i]['value']]['category'] == 'design' && $key == 'prepipeline') && $statuses[$programs[$i]['value']]['terminal']) ||
521 (($statuses[$programs[$i]['value']]['category'] == 'vector' && $key == 'design') && $statuses[$programs[$i]['value']]['terminal']) ||
522 (($statuses[$programs[$i]['value']]['category'] == 'escell' && $key == 'vector') && $statuses[$programs[$i]['value']]['terminal']) ||
523 (($statuses[$programs[$i]['value']]['category'] == 'mice' && $key == 'escell') && $statuses[$programs[$i]['value']]['terminal'])
524 ) {
525 $second = 'r';
526 } else if (
527 (($statuses[$programs[$i]['value']]['category'] == 'design' && $key == 'prepipeline') && $statuses[$programs[$i]['value']]['warning']) ||
528 (($statuses[$programs[$i]['value']]['category'] == 'vector' && $key == 'design') && $statuses[$programs[$i]['value']]['warning']) ||
529 (($statuses[$programs[$i]['value']]['category'] == 'escell' && $key == 'vector') && $statuses[$programs[$i]['value']]['warning']) ||
530 (($statuses[$programs[$i]['value']]['category'] == 'mice' && $key == 'escell') && $statuses[$programs[$i]['value']]['warning'])
531 ) {
532 $second = 'o';
533 }
534 } else {
535 $second = '-';
536 }
537
538 if($key == 'mice' && ($cat == 'prepipeline' || $cat == 'design' || $cat == 'vector' || $cat == 'escell')) {
539 $curr='g-';
540 } else if($key == 'escell' && ($cat == 'prepipeline' || $cat == 'design' || $cat == 'vector')) {
541 $curr='gg';
542 } else if($key == 'vector' && ($cat == 'prepipeline' || $cat == 'design')) {
543 $curr='gg';
544 } else if($key == 'design' && ($cat == 'prepipeline')) {
545 $curr='gg';
546 } else if($key != 'prepipeline' && ($cat == 'prepipeline')) {
547 $curr='g'.$second;
548 } else {
549 $curr = 'b'.$second;
550 }
551 }
552 break;
553 default:
554 break;
555 }
556
557 ?>
558 <td class="<?=$curr?>" width="20%">
559 <? if ($statuses[$programs[$i]['value']]['category'] == $key || ($programs[$i]["name"] == "TIGM" && $key =='escell')) : ?>
560 <div style="font-size:110%;line-height:1.0em;text-align:left;padding:2px; padding-right:10px">
561 <?= ($programs[$i]["name"] == "TIGM") ? count($doc->tigm)." Gene trap".((count($doc->tigm) == 1) ? '' : 's')." available" : $programs[$i]['value']?>
562 </div>
563 <? endif; ?>
564 <? if ($key =='vector') : ?>
565 <? if ($doc->available_product_display) : ?>
566 <? $available_product_displays = is_array($doc->available_product_display) ? $doc->available_product_display : array($doc->available_product_display); ?>
567 <? foreach ($available_product_displays as $available_product_display) : ?>
568 <? list($productid, $productpipeline, $producttype) = explode("||", $available_product_display); ?>
569 <? if (($productpipeline == 'KOMP-CSD' || $productpipeline == 'KOMP-Regeneron') && $productid == $programs[$i]["pid"] && $producttype=="Vector available") : ?>
570 <a target="_blank" class="orderlink" href="http://www.komp.org/vectorOrder.php?projectid=<?=$productid?>">Order <?=str_replace(" available","",$producttype)?> &raquo;</a>
571 <? endif; ?>
572 <? if ($productpipeline == 'EUCOMM' && $programs[$i]["name"] == "EUCOMM" && $productid == $programs[$i]["pid"] && $producttype=="vector available") : ?>
573 <a target="_blank" class="orderlink" href="http://www.eummcr.org/order.php">Order vector &raquo;</a>
574 <? endif; ?>
575 <? endforeach; ?>
576 <? endif; ?>
577 <? elseif ($programs[$i]["name"] == "TIGM" && $key =='escell') : ?>
578 <a class="orderlink" href="http://www.tigm.org/cgi-bin/tigminfo.cgi?survey=KOMP%20Website&mgi1=<?=$doc->mgiid?>&gene1=<?=$doc->symbol?>" target="_blank">Order gene traps &raquo;</a>
579 <? elseif ($key =='escell') : ?>
580 <? if ($doc->available_product_display) : ?>
581 <? $available_product_displays = is_array($doc->available_product_display) ? $doc->available_product_display : array($doc->available_product_display); ?>
582 <? foreach ($available_product_displays as $available_product_display) : ?>
583 <? list($productid, $productpipeline, $producttype) = explode("||", $available_product_display); ?>
584 <? if (($productpipeline == 'KOMP-CSD' || $productpipeline == 'KOMP-Regeneron') && $productid == $programs[$i]["pid"] && $producttype=="ES Cell available") : ?>
585 <a target="_blank" class="orderlink" href="http://www.komp.org/geneinfo.php?MGI_Number=<?=str_replace("MGI:","", $doc->mgiid)?>">Order <?=str_replace(" available","",$producttype)?> &raquo;</a>
586 <? endif; ?>
587 <? if ($productpipeline == 'EUCOMM' && $programs[$i]["name"] == "EUCOMM" && $productid == $programs[$i]["pid"] && $producttype=="ES Cell available") : ?>
588 <a target="_blank" class="orderlink" href="http://www.eummcr.org/order.php">Order ES cells &raquo;</a>
589 <? endif; ?>
590 <? endforeach; ?>
591 <? endif; ?>
592 <? elseif ($key =='mice') : ?>
593 <? if ($doc->available_product_display) : ?>
594 <? $available_product_displays = is_array($doc->available_product_display) ? $doc->available_product_display : array($doc->available_product_display); ?>
595 <? foreach ($available_product_displays as $available_product_display) : ?>
596 <? list($productid, $productpipeline, $producttype) = explode("||", $available_product_display); ?>
597 <? if (($productpipeline == 'KOMP-CSD' || $productpipeline == 'KOMP-Regeneron') && $productid == $programs[$i]["pid"] && $producttype=="Mouse available") : ?>
598 <a target="_blank" class="orderlink" href="http://www.komp.org/geneinfo.php?MGI_Number=<?=str_replace("MGI:","", $doc->mgiid)?>">Order <?=str_replace(" available","",$producttype)?> &raquo;</a>
599 <? endif; ?>
fab8890 @jmason-ikmc update EUCOMM repository links
authored May 7, 2009
600 <? if ($productpipeline == 'EUCOMM' && $programs[$i]["name"] == "EUCOMM" && $productid == $programs[$i]["pid"] && $producttype=="Mouse available") : ?>
601 <a target="_blank" class="orderlink" href="http://www.emmanet.org/apps/springEmma/search?keyword=<?=$doc->symbol?>%25EUCOMM&select_by=InternationalStrainName&search=ok">Order mice &raquo;</a>
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
602 <? endif; ?>
603 <? endforeach; ?>
604 <? endif; ?>
605 <? endif; ?>
606 </td>
607 <? endwhile; ?>
608 </tr>
609 </table>
610 <br />
611
612 </td>
613 <td width="5%">
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
614 <? if ((($programs[$i]["name"] == 'KOMP-CSD' || $programs[$i]["name"] == 'EUCOMM') && $programs[$i]["sequence"] >= 75) || $programs[$i]["name"] == 'KOMP-Regeneron' ) : ?>
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
615 <a class="ext" target=_blank" href="#" onclick="document.getElementById('proj-row-<?=($programs[$i]["pid"]) ? $programs[$i]["pid"] : $programs[$i]["name"]?>').style.display='block';return false;">Allele Details</a>
616 <? endif; ?>
617 <? if ($programs[$i]["name"] == 'TIGM'): ?>
618 <div style="position:relative;">
619 <div id="tigmShow" style="right:0;top:45px;z-index:1000;width:250px;display:none;position:absolute;background-color:white; color:black; border:solid 2px black; padding:5px;">
620 <a href="#" onclick="document.getElementById('tigmShow').style.display='none';return false;" style="float:right;color:red">close</a>
621 <h3 style="border-bottom: solid 1px;">All TIGM gene traps</h3>
622 <? $tigms = is_array($doc->tigm) ? $doc->tigm : array($doc->tigm); ?>
623 <ul>
624 <? foreach($tigms as $id) : ?>
625 <li><a class="ext" target="_blank" href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Search&db=nucgss&doptcmdl=GenBank&term=%22<?=$id?>%22"><?=$id?></a></li>
626 <? endforeach; ?>
627 </ul>
628 </div>
629 </div>
630 <a href="#" onclick="document.getElementById('tigmShow').style.display='block';return false;">View all gene&nbsp;traps</a>
631 <? endif; ?>
632 </td>
633 </tr>
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
634 <? if ((($programs[$i]["name"] == 'KOMP-CSD' || $programs[$i]["name"] == 'EUCOMM') && $programs[$i]["sequence"] >= 75) || $programs[$i]["name"] == 'KOMP-Regeneron' ) : ?>
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
635 <tr bgcolor="<?= $bgcolor ?>">
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
636 <td colspan="3">
637 <div style="display:none;" id="proj-row-<?=($programs[$i]["pid"]) ? $programs[$i]["pid"] : $programs[$i]["name"]?>">
638 <a href="#" onclick="document.getElementById('proj-row-<?= ($programs[$i]["pid"]) ? $programs[$i]["pid"] : $programs[$i]["name"] ?>').style.display='none';return false;" style="float:right;color:red;font-size:120%;">close</a>
639 <? if (($programs[$i]["name"] == 'KOMP-CSD' || $programs[$i]["name"] == 'EUCOMM') && $programs[$i]["sequence"] >= 75): ?>
640 <a target="_blank" href="http://www.sanger.ac.uk/htgt/report/gene_report?project_id=<?=$programs[$i]["pid"]?>" style="float:left;font-size:120%; margin-right: 10px;">View this project</a>
641 <iframe width="955" height="200" src="http://www.i-dcc.org/dev/allele_pages/<?=$programs[$i]["pid"]?>.html"></iframe>
642 <? elseif ($programs[$i]["name"] == 'KOMP-Regeneron'): ?>
643 <a target="_blank" href="http://www.velocigene.com/komp/detail/<?=str_replace("VG","",$programs[$i]["pid"])?>" style="float:left;font-size:120%; margin-right: 10px;">View this project at Regeneron</a>
644 <img src="images/regn_design.png" />
645 <? endif; ?>
646 </div>
647 </td>
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
648 </tr>
592b62f @jmason-ikmc Sort most advance projects first
authored May 14, 2009
649 <? endif; ?>
0f0e8af @jmason-ikmc first commit - dynamic ikmc query scripts and support files
authored May 6, 2009
650 <? endfor; ?>
651 <? endif; ?>
652
653 </table>
654 </td>
655 </tr>
656 <tr>
657
658 <th style="font-size:120%;font-weight:bold;"> Other Mutants/Resources </th>
659 </tr>
660 <tr>
661 <td style="padding:5px;font-size:120%;">
662 <table class="featureless" style="width:370px;">
663 <? if($doc->imsr) : ?>
664 <tr><td nowrap="nowrap">International Mouse Strain Resource (IMSR):</td><td nowrap="nowrap"><a href="http://www.informatics.jax.org/imsr/fetch?page=imsrSummary&amp;op:name=contains&amp;state=LM&amp;state=OV&amp;state=EM&amp;state=SP&amp;state=ES&amp;type=&amp;op:ga_symname=&amp;ga_symname=<?= $doc->symbol ?>&amp;ga_symnameBreadth=CM&amp;mutationType=chromosomal+aberration&amp;mutationType=chemically+induced+mutation&amp;mutationType=deletion&amp;mutationType=duplication&amp;mutationType=gene+trap&amp;mutationType=insertion&amp;mutationType=inversion&amp;mutationType=other&amp;mutationType=radiation+induced+mutation&amp;mutationType=robertsonian+translocation&amp;mutationType=spontaneous+mutation&amp;mutationType=reciprocal+translocation&amp;mutationType=targeted+mutation&amp;mutationType=transposition&amp;noLimit=" target="_blank"><?= $doc->imsr ?> strain/ES cell line</a></td></tr>
665 <? endif; ?>
666 <? if($doc->igtc) : ?>
667 <tr><td nowrap="nowrap">International Gene Trap Consortium (IGTC):</td><td nowrap="nowrap"><a href="http://www.genetrap.org/cgi-bin/annotation.py?mgi=<?= $doc->mgiid ?>" target="_blank"><?= $doc->igtc ?> gene traps</a></td></tr>
668 <? endif; ?>
669 <? if($doc->targeted_mutations) : ?>
670 <tr><td nowrap="nowrap">Targeted mutations in MGI:</td><td nowrap="nowrap"><a href="http://www.informatics.jax.org/searches/allele_report.cgi?markerID=<?= $doc->mgiid ?>&amp;alleleCategory=targAll" target="_blank"><?= $doc->targeted_mutations ?> mutants</a></td></tr>
671 <? endif; ?>
672 <? if($doc->other_mutations) : ?>
673 <tr><td nowrap="nowrap">Other mutations in MGI:</td><td nowrap="nowrap"><a href="http://www.informatics.jax.org/searches/allele_report.cgi?markerID=<?= $doc->mgiid ?>&amp;alleleCategory=not%20targeted%20(all)" target="_blank"><?= $doc->other_mutations ?> mutants</a></td></tr>
674 <? endif; ?>
675 </table>
676
677 </td>
678 </tr>
679 </table>
680 <?
681 }
682 }
683 ?>
684 </tbody>
685 </table>
686 </div>
687
688 </div>
689 </div> <!-- /#center -->
690
691 <div id="footer" class="clear">
692 <a href="/disclaimer">Warranty Disclaimer and Copyright Notice</a><br>
693 This site is maintained by the I-DCC and the KOMP-DCC.<br>Supported by the European Union and the National Institutes of Health.
694 </div> <!-- /#footer -->
695 </div> <!-- /#container -->
696 </div> <!-- /#wrapper -->
697 <!-- /layout -->
698
699 <script type="text/javascript">
700 //
701 if (navigator.userAgent.indexOf("Safari") > 0)
702 {
703 // Fix safari "label click/toggle checkbox" issue
704 var labels = document.getElementsByTagName("label");
705 for (i = 0; i < labels.length; i++) {
706 labels[i].addEventListener("click", addLabelFocus, false);
707 }
708 // Fix Safari "back button re-execute onload" issue
709 var jj=onload;
710 if (jj) {
711 if (onunload==null) {
712 document.body.setAttribute('onunload',jj);
713 }
714 }
715 }
716 //
717 </script>
718 <script type="text/javascript">
719 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
720 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
721 </script>
722 <script type="text/javascript">
723 var pageTracker = _gat._getTracker("UA-6140792-1");
724 pageTracker._trackPageview();
725 </script>
726 </body>
727 </html>
Something went wrong with that request. Please try again.