コード例 #1
0
/**
 * Get all genes matching biobricks belong to category of protein coding sequence in Registry of standard biological parts.
 * @return array
 */
function getAllMatchingGene()
{
    $result = array();
    $annotationArr = queryAllAnnotation();
    $cdsArr = queryAllCdsBiobrick();
    foreach ($annotationArr as $row) {
        foreach ($cdsArr as $cds) {
            if (strtoupper($cds['protein']) == strtoupper($row['Gene_Name'])) {
                $match = array('gid' => $row['gid'], 'biobrick_name' => $cds['name'], 'protein' => $cds['protein']);
                array_push($result, $match);
            }
        }
    }
    return $result;
}
コード例 #2
0
/**
 * Get all annotations of gene from database.
 * @return array
 */
function getAllAnnotation()
{
    return queryAllAnnotation();
}