コード例 #1
0
#!/usr/bin/php
<?php 
// Copyright 2009 Scalable Computing Experts, Inc.
// Author: Tom Clegg
if ($_SERVER["argc"] != 2) {
    die("Usage: " . $_SERVER["argv"][0] . " genenames.txt\n");
}
$fh = fopen($_SERVER["argv"][1], "r");
chdir('public_html');
require_once 'lib/setup.php';
ini_set("memory_limit", pow(2, 27));
print "Creating/updating get-evidence tables...";
evidence_create_tables();
print "\n";
$official = array();
$donottranslate = array();
print "Reading input...";
$in = 0;
while (($line = fgets($fh)) !== FALSE) {
    if (ereg("^HGNC ID", $line)) {
        // header
        continue;
    }
    ++$in;
    $f = explode("\t", rtrim($line, "\n"));
    $canonical = $f[1];
    $donottranslate[$canonical] = 1;
    if ($f[4] == "") {
        // no aliases listed
        continue;
    }
コード例 #2
0
ファイル: genomes.php プロジェクト: jwssb90/get-evidence
function genomes_create_tables()
{
    evidence_create_tables();
}