Esempio n. 1
0
/**
 * Get CEG base record, each cluster with a description.
 * @param type $idArr
 * @return type
 */
function getCegBaseByIdArr($idArr)
{
    $result = array();
    $clusterArr = getPureCegArr($idArr);
    $cegBase = queryAllCegBase();
    foreach ($cegBase as $row) {
        if (in_array($row['access_num'], $clusterArr)) {
            array_push($result, $row);
        }
    }
    return $result;
}
Esempio n. 2
0
/**
 * Get KO number by an array of organism ID.
 * @param type $idArr
 * @return type
 */
function getKOByIdArr($idArr)
{
    $clusterArr = getPureCegArr($idArr);
    return getKOByCegArr($clusterArr);
}