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