コード例 #1
0
ファイル: speedtest.php プロジェクト: BackupTheBerlios/eqtl
<?php

include 'html/header.html';
require_once 'db_functions.php';
require_once 'qtl_functions.php';
require_once 'utils.php';
require_once 'fill_related_projects.php';
fill_compara_array();
connectToQtlDBs(array('Ratte'));
global $compara_array;
$db = $compara_array['Ratte']['connection'];
useDB('eqtl_stockholm_eae_logplier', $db);
//useDB('eqtl_rostock_eae', $db);
$loci = array('c1.loc1', 'c1.loc10', 'c1.loc100', 'c1.loc101', 'c1.loc102', 'c1.loc103', 'c1.loc104', 'c1.loc105', 'c1.loc106', 'c1.loc107', 'c1.loc108', 'c1.loc109', 'c1.loc11', 'c1.loc110', 'c1.loc111', 'c1.loc112', 'c1.loc113', 'c1.loc114', 'c1.loc115');
//$loci = array('c9.loc48', 'c9.loc43', 'c9.loc40' , 'c9.loc39');
loci2stable_ids_new($loci, $db);
loci2stable_ids_new($loci, $db);
$t = tic();
print_r(loci2stable_ids_new($loci, $db));
print "<br>";
print "<br>";
toc($t, 'opt');
print "<br>";
print "<br>";
$t = tic();
print_r(loci2stable_ids($loci, $db));
print "<br>";
print "<br>";
toc($t, 'normal');
include 'html/footer.html';
コード例 #2
0
ファイル: compara.php プロジェクト: BackupTheBerlios/eqtl
<script
	src="js/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script>
<script
	src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script
	src="js/mouseposition.js" type="text/javascript"></script>

<?php 
require_once 'qtl_functions.php';
require_once 'db_functions.php';
require_once 'utils.php';
require_once 'fill_related_projects.php';
fill_compara_array();
//measure running-time
$start = tic();
$args = $_GET;
$compara = connectToCompara();
$proj_str = 'projects';
if (!isset($args[$proj_str])) {
    fatal_error('No project given as argument!');
}
$projects = $args[$proj_str];
$n_proj = count($projects);
switch ($n_proj) {
    case 1:
        // is possible, if the referrer is locus.php
        break;
    case 2:
        // is possible, if the referrer is regions.php
        connectToQtlDBs($projects);
コード例 #3
0
ファイル: qs_compare.php プロジェクト: gutza/octave-daemon
function test_long_out($octave)
{
    tic();
    $octave->query("C");
}