tripal_cv.api.inc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. <?php
  2. /**
  3. * @file
  4. * Controlled Vocabulary API
  5. *
  6. * @defgroup tripal_cv_api CV Module API
  7. * @ingroup tripal_api
  8. * @ingroup tripal_cv
  9. * This module provides a set of functions to simplify working with
  10. * controlled vocabularies. Most of the API functions deal with retrieving
  11. * terms or their parent vocabularies.
  12. *
  13. * However, the API also supports
  14. * generation of trees for browsing a vocabulary as well as generation of
  15. * pie graphs for display of hierarchical counts of terms. Version 0.3b of
  16. * Tripal provides a feature browser and a feature summary chart uses
  17. * the API functions provided here. But in general charts and trees can be
  18. * created for any controlled vocabulary.
  19. *
  20. */
  21. /**
  22. * Purpose: To retrieve a chado controlled vocabulary object
  23. *
  24. * @param $select_values
  25. * An array meant to uniquely select a given controlled vocabulary
  26. *
  27. * @return
  28. * Chado controlled vocabulary object
  29. *
  30. * The controlled vocabulary is selected using tripal_core_chado select and as such the
  31. * $select_values array parameter meant to uniquely identify the controlled vocab to be
  32. * returned follows the same form as when using tripal_core_chado_select directly.
  33. *
  34. * Example Usage:
  35. * @code
  36. $select_values = array(
  37. 'name' => 'feature_property'
  38. );
  39. $cv_object = tripal_cv_get_cv($select_values);
  40. * @endcode
  41. * The above code selects the feature_property cv and returns the following object:
  42. * @code
  43. $cv_object = stdClass Object (
  44. [cv_id] => 13
  45. [name] => feature_property
  46. [definition] =>
  47. );
  48. * @endcode
  49. *
  50. * @ingroup tripal_cv_api
  51. */
  52. function tripal_cv_get_cv($select_values) {
  53. $columns = array(
  54. 'cv_id',
  55. 'name',
  56. 'definition',
  57. );
  58. $results = tripal_core_chado_select('cv', $columns, $select_values);
  59. if (sizeof($results) == 1) {
  60. return $results[0];
  61. }
  62. elseif (empty($results)) {
  63. watchdog('tripal_cv',
  64. 'tripal_cv_get_cv: No cv matches criteria values:%values',
  65. array('%values' => print_r($select_values, TRUE)),
  66. WATCHDOG_WARNING
  67. );
  68. return FALSE;
  69. }
  70. else {
  71. watchdog('tripal_cv',
  72. 'tripal_cv_get_cv: 2+ cvs match criteria values:%values',
  73. array('%values' => print_r($select_values, TRUE)),
  74. WATCHDOG_WARNING
  75. );
  76. }
  77. }
  78. // Purpose: To retrieve a chado cv object
  79. // @param $where_options
  80. // @code
  81. // array(
  82. // <column_name> => array(
  83. // 'type' => <type of column: INT/STRING>,
  84. // 'value' => <the vlaue you want to filter on>,
  85. // 'exact' => <if TRUE use =; if FALSE use ~>,
  86. // )
  87. // )
  88. // @endcode
  89. //
  90. // @return
  91. // Chado cv object with all fields from the chado cv table
  92. //
  93. // @ingroup tripal_cv_api
  94. //
  95. //function tripal_cv_get_cv ($where_options)
  96. /**
  97. * Retrieve a cv given the cv name
  98. *
  99. * @param $name
  100. * The name of the cv to be returned
  101. * @return
  102. * The cv object for the specified CV name
  103. *
  104. * @ingroup tripal_cv_api
  105. */
  106. function tripal_cv_get_cv_by_name($name) {
  107. $previous_db = tripal_db_set_active('chado');
  108. $r = tripal_core_chado_select('cv', array('*'), array('name' => $name));
  109. tripal_db_set_active($previous_db);
  110. return $r[0];
  111. }
  112. /**
  113. * Retrieve the cv object for the specified CV id
  114. *
  115. * NOTE: This function is deprecated.
  116. * @see tripal_core_chado_generate_vars()
  117. *
  118. * @param $cv_id
  119. * The unique identifier for the cv retrieve
  120. *
  121. * @return
  122. * An object describing the cv
  123. *
  124. * @ingroup tripal_cv_api
  125. */
  126. function tripal_cv_get_cv_by_id($cv_id) {
  127. $previous_db = tripal_db_set_active('chado');
  128. $r = tripal_core_chado_select('cv', array('*'), array('cv_id' => $cv_id));
  129. tripal_db_set_active($previous_db);
  130. return $r;
  131. }
  132. /**
  133. * Create an options array to be used in a form element which provides a list of all chado cvs
  134. *
  135. * @return
  136. * An array(cv_id => name) for each cv in the chado cv table
  137. *
  138. * @ingroup tripal_cv_api
  139. */
  140. function tripal_cv_get_cv_options() {
  141. $results = tripal_core_chado_select('cv', array('cv_id', 'name'), array());
  142. $options = array();
  143. foreach ($results as $r) {
  144. $options[$r->cv_id] = $r->name;
  145. }
  146. return $options;
  147. }
  148. /**
  149. * Retrieve a chado cvterm object with a given name
  150. *
  151. * @param $name
  152. * the cvterm.name
  153. * @param $cv_id
  154. * the cv_id of the term you are looking for
  155. * @param $cv_name
  156. * the name of the CV
  157. *
  158. * @return
  159. * cvterm object
  160. *
  161. * @ingroup tripal_cv_api
  162. */
  163. function tripal_cv_get_cvterm_by_name($name, $cv_id = 0, $cv_name = 'tripal') {
  164. if ($cv_id) {
  165. $values = array(
  166. 'name' => $name,
  167. 'cv_id' => $cv_id,
  168. );
  169. $r = tripal_core_chado_select('cvterm', array('*'), $values);
  170. }
  171. elseif ($cv_name) {
  172. $values = array(
  173. 'name' => $name,
  174. 'cv_id' => array(
  175. 'name' => $cv_name,
  176. ),
  177. );
  178. $r = tripal_core_chado_select('cvterm', array('*'), $values);
  179. }
  180. else {
  181. $values = array(
  182. 'name' => $name,
  183. );
  184. $r = tripal_core_chado_select('cvterm', array('*'), $values);
  185. }
  186. if (!$r) {
  187. return FALSE;
  188. }
  189. if (count($r) > 0) {
  190. return FALSE;
  191. }
  192. return $r[0];
  193. }
  194. /**
  195. * Create an options array to be used in a form element
  196. * which provides a list of all chado cvterms
  197. *
  198. * @param $cv_id
  199. * The chado cv_id;
  200. * only cvterms with the supplied cv_id will be returned
  201. * @return
  202. * An array(cvterm_id => name)
  203. * for each cvterm in the chado cvterm table where cv_id=that supplied
  204. *
  205. * @ingroup tripal_cv_api
  206. */
  207. function tripal_cv_get_cvterm_options($cv_id = 0) {
  208. if ($cv_id > 0) {
  209. $results = tripal_core_chado_select('cvterm', array('cvterm_id', 'name'), array('cv_id' => $cv_id));
  210. }
  211. else {
  212. $results = tripal_core_chado_select('cvterm', array('cvterm_id', 'name'), array());
  213. }
  214. $options = array();
  215. foreach ($results as $r) {
  216. $options[$r->cvterm_id] = $r->name;
  217. }
  218. return $options;
  219. }
  220. /**
  221. * Adds a controlled vocabular to the CV table of Chado.
  222. *
  223. * @param $name
  224. * The name of the controlled vocabulary. These are typically all lower case
  225. * with no special characters other than an undrescore (for spaces).
  226. * @param $comment
  227. * A description or definition of the vocabulary.
  228. *
  229. * @return
  230. * An object populated with fields from the newly added database.
  231. *
  232. * @ingroup tripal_cv_api
  233. */
  234. function tripal_cv_add_cv($name, $definition) {
  235. // insert/update values
  236. $ins_values = array(
  237. 'name' => $name,
  238. 'definition' => $definition
  239. );
  240. // see if the CV (default-namespace) exists already in the database
  241. $sel_values = array('name' => $name);
  242. $sel_options = array('statement_name' => 'sel_cv_na');
  243. $results = tripal_core_chado_select('cv', array('*'), $sel_values, $sel_options);
  244. // if it does not exists then add it
  245. if (count($results) == 0) {
  246. $ins_options = array('statement_name' => 'ins_cv_nade');
  247. $success = tripal_core_chado_insert('cv', $ins_values, $ins_options);
  248. if (!$success) {
  249. watchdog('tripal_cv', "Failed to create the CV record", NULL, WATCHDOG_WARNING);
  250. return FALSE;
  251. }
  252. $results = tripal_core_chado_select('cv', array('*'), $sel_values, $sel_options);
  253. }
  254. // if it already exists then do an update
  255. else {
  256. $upd_options = array('statement_name' => 'upd_cv_nade');
  257. $success = tripal_core_chado_update('cv', $sel_values, $ins_values, $upd_options);
  258. if (!$success) {
  259. watchdog('tripal_cv', "Failed to update the CV record", NULL, WATCHDOG_WARNING);
  260. return FALSE;
  261. }
  262. $results = tripal_core_chado_select('cv', array('*'), $sel_values, $sel_options);
  263. }
  264. // return the cv object
  265. return $results[0];
  266. }
  267. /**
  268. * Add's a CV term to the cvterm table. If the parent CV does not exist then
  269. * that too is added to the CV table. If the cvterm is a relationship term
  270. * then the $is_relationship argument should be set. The function will try
  271. * to first find the relationship in the relationship ontology for updating and
  272. * if it can't be found will add the relationship to the __global CV. All terms
  273. * must also have a corresponding database. This is specified in the term's
  274. * ID just before the colon (e.g. GO:003824). If the database does not exist
  275. * in the DB table then it will be added automatically. The accession (the
  276. * value just after the colon in the term's ID) will be added to the dbxref
  277. * table. If the CVterm already exists and $update is set (default) then the
  278. * cvterm is updated. If the CVTerm already exists and $update is not set, then
  279. * no changes are made and the CVTerm object is returned.
  280. *
  281. * @param $term
  282. * An associative array with the following keys: 'id', 'name' and 'namespace',
  283. * 'is_obsolete', and 'def'. Where 'id' is the term accession, 'name' is the
  284. * term name, 'namespace' is the CV name for the term, 'def' is the term
  285. * definition and 'is_obsolete' is present and set to 1 if the term is defunct.
  286. * The 'id' must be of the form <DB>:<ACCESSION>, where <DB> is the name of
  287. * the database to which the cvterm belongs and the <ACCESSION> is the
  288. * term's accession number in the database.
  289. * @param $defaultcv
  290. * Optional. The CV name to which the term
  291. * belongs. If this arugment is null or not provided then the function tries
  292. * to find a record in the CV table with the same name provided in the
  293. * $term[namespace]. If this field is provided then it overrides what the
  294. * value in $term[namespace]
  295. * @param $is_relationship
  296. * If this term is a relationship term then this value should be 1.
  297. * @param $update
  298. * By default this is set to 1. If the term exists it is automatically updated.
  299. * @param $dbname
  300. * In some cases the database name will not be part of the $term['id'] and it
  301. * needs to be explicitly set. Use this argument only if the database name
  302. * cannot be specififed in the term ID (e.g. <DB>:<ACCESSION>).
  303. *
  304. * @return
  305. * A CVTerm object
  306. *
  307. * @ingroup tripal_cv_api
  308. */
  309. function tripal_cv_add_cvterm($term, $defaultcv = '_global', $is_relationship = 0,
  310. $update = 1, $dbname = 'internal') {
  311. $connection = tripal_db_persistent_chado();
  312. // get the term properties
  313. $id = $term['id'];
  314. if (isset($term['name'])) {
  315. $name = $term['name'];
  316. }
  317. else {
  318. $name = $id;
  319. }
  320. if (isset($term['namespace'])) {
  321. $cvname = $term['namespace'];
  322. }
  323. else {
  324. $cvname = $defaultcv;
  325. }
  326. if (isset($term['def'])) {
  327. $definition = preg_replace('/^\"(.*)\"/', '\1', $term['def']);
  328. }
  329. else {
  330. $definition = '';
  331. }
  332. $is_obsolete = 0;
  333. if (isset($term['is_obsolete']) and strcmp($term['is_obsolete'], 'true') == 0) {
  334. $is_obsolete = 1;
  335. }
  336. if (!$name and !$id) {
  337. watchdog('tripal_cv', "Cannot find cvterm without 'id' or 'name'", NULL, WATCHDOG_WARNING);
  338. return 0;
  339. }
  340. if (!$id) {
  341. $id = $name;
  342. }
  343. // get the accession and the database from the cvterm id
  344. if ($dbname) {
  345. $accession = $id;
  346. }
  347. if (preg_match('/^.+?:.*$/', $id)) {
  348. $accession = preg_replace('/^.+?:(.*)$/', '\1', $id);
  349. $dbname = preg_replace('/^(.+?):.*$/', '\1', $id);
  350. }
  351. // check that we have a database name, give a different message if it's a relationship
  352. if ($is_relationship and !$dbname) {
  353. watchdog('tripal_cv', "A database name is not provided for this relationship term: $id", NULL, WATCHDOG_WARNING);
  354. return 0;
  355. }
  356. if (!$is_relationship and !$dbname) {
  357. watchdog('tripal_cv', "A database identifier is missing from the term: $id", NULL, WATCHDOG_WARNING);
  358. return 0;
  359. }
  360. // make sure the CV name exists
  361. $cv = tripal_cv_add_cv($cvname, '');
  362. if (!$cv) {
  363. watchdog('tripal_cv', "Cannot find namespace '$cvname' when adding/updating $id", NULL, WATCHDOG_WARNING);
  364. return 0;
  365. }
  366. // this SQL statement will be used a lot to find a cvterm so just set it
  367. // here for easy reference below. Because CV terms can change their names
  368. // but accessions don't change, the following SQL finds cvterms based on
  369. // their accession rather than the name
  370. if (!tripal_core_is_sql_prepared('sel_cvterm_by_accession')) {
  371. $pcvtermsql = "
  372. PREPARE sel_cvterm_by_accession(text, text) AS
  373. SELECT CVT.name, CVT.cvterm_id, CV.cv_id, CV.name as cvname,
  374. DB.name as dbname, DB.db_id, DBX.accession
  375. FROM cvterm CVT
  376. INNER JOIN dbxref DBX on CVT.dbxref_id = DBX.dbxref_id
  377. INNER JOIN db DB on DBX.db_id = DB.db_id
  378. INNER JOIN cv CV on CV.cv_id = CVT.cv_id
  379. WHERE DBX.accession = $1 and DB.name = $2";
  380. if (!chado_query($pcvtermsql)) {
  381. watchdog('tripal_cv', "Cannot prepare statement 'sel_cvterm_by_accession'", NULL, WATCHDOG_WARNING);
  382. return 0;
  383. }
  384. }
  385. $cvtermsql = "EXECUTE sel_cvterm_by_accession('%s','%s')";
  386. // add the database. The function will just return the DB object if the
  387. // database already exists.
  388. $db = tripal_db_add_db($dbname);
  389. if (!$db) {
  390. watchdog('tripal_cv', "Cannot find database '$dbname' in Chado.", NULL, WATCHDOG_WARNING);
  391. return 0;
  392. }
  393. // the cvterm table has two unique dependencies. We need to check both.
  394. // first check the (name, cv_id, is_obsolete) constraint
  395. $values = array(
  396. 'name' => $name,
  397. 'is_obsolete' => $is_obsolete,
  398. 'cv_id' => array(
  399. 'name' => $cvname,
  400. ),
  401. );
  402. $options = array('statement_name' => 'sel_cvterm_c1');
  403. $result = tripal_core_chado_select('cvterm', array('*'), $values, $options);
  404. // if the constraint is met then let's check it to see if
  405. // the database name matches the one we have been provided
  406. if (count($result) == 1) {
  407. $cvterm = $result[0];
  408. // get the dbxref record
  409. $values = array('dbxref_id' => $cvterm->dbxref_id);
  410. $options = array('statement_name' => 'sel_dbxref_id');
  411. $result = tripal_core_chado_select('dbxref', array('*'), $values, $options);
  412. $dbxref = $result[0];
  413. // get the db
  414. $values = array('db_id' => $dbxref->db_id);
  415. $options = array('statement_name' => 'sel_db_id');
  416. $result = tripal_core_chado_select('db', array('*'), $values, $options);
  417. $db_check = $result[0];
  418. // the database name for this existing term does not match that of the
  419. // one provided to this function. The CV name matches otherwise we
  420. // wouldn't have made it this far. So, let's swap the database for
  421. // this term
  422. if ($db_check->name != $db->name) {
  423. // look to see if the correct dbxref record already exists for this database
  424. $values = array(
  425. 'db_id' => $db->db_id,
  426. 'accession' => $accession,
  427. );
  428. $options = array('statement_name' => 'sel_dbxref_idac');
  429. $result = tripal_core_chado_select('dbxref', array('*'), $values, $options);
  430. // if we already have a good dbxref then we want to update our cvterm
  431. // to use this dbxref
  432. if (count($result) > 0) {
  433. $dbxref = $result[0];
  434. $match = array('cvterm_id' => $cvterm->cvterm_id);
  435. $values = array('dbxref_id' => $dbxref->dbxref_id);
  436. $options = array('statement_name' => 'upd_cvterm_db');
  437. $success = tripal_core_chado_update('cvterm', $match, $values, $options);
  438. if (!$success) {
  439. watchdog('tripal_cv', "Failed to correct the dbxref id for the cvterm " .
  440. "'$name' (id: $accession), for database $dbname", NULL, WATCHDOG_WARNING);
  441. return 0;
  442. }
  443. }
  444. // if we don't have the record then we want to delete our cvterm and let the code
  445. // below recreate it with the correct info
  446. else {
  447. $match = array('cvterm_id' => $cvterm->cvterm_id);
  448. $options = array('statement_name' => 'del_cvterm_cv');
  449. tripal_core_chado_delete('cvterm', $match, $options);
  450. }
  451. }
  452. // check that the accession matches. Sometimes an OBO can define the same term
  453. // multiple times but with different accessions. If this is the case we
  454. // can't do an insert or it will violate the constraint in the cvterm table.
  455. // so we'll need to add the record to the cvterm_dbxref table instead
  456. if ($dbxref->accession != $accession) {
  457. // get/add the dbxref fort his term
  458. $dbxref_new = tripal_db_add_dbxref($db->db_id, $accession);
  459. if (!$dbxref_new) {
  460. watchdog('tripal_cv', "Failed to find or insert the dbxref record for cvterm, " .
  461. "$name (id: $accession), for database $dbname", NULL, WATCHDOG_WARNING);
  462. return 0;
  463. }
  464. // check to see if the cvterm_dbxref record already exists
  465. $values = array(
  466. 'cvterm_id' => $cvterm->cvterm_id,
  467. 'dbxref_id' => $dbxref_new->dbxref_id,
  468. 'is_for_definition' => 1,
  469. );
  470. $options = array('statement_name' => 'sel_cvtermdbxref_cvdbis');
  471. $result = tripal_core_chado_select('cvterm_dbxref', array('*'), $values, $options);
  472. // if the cvterm_dbxref record does not exists then add it
  473. if (count($result)==0) {
  474. $options = array(
  475. 'statement_name' => 'ins_cvtermdbxref_cvdbis',
  476. 'return_record' => FALSE,
  477. );
  478. $success = tripal_core_chado_insert('cvterm_dbxref', $values, $options);
  479. if (!$success) {
  480. watchdog('tripal_cv', "Failed to find or insert the cvterm_dbxref record for a " .
  481. "duplicated cvterm: $name (id: $accession), for database $dbname", NULL, WATCHDOG_WARNING);
  482. return 0;
  483. }
  484. }
  485. // get the original cvterm with the same name and return that.
  486. $cvterm = db_fetch_object(chado_query($cvtermsql, $dbxref->accession, $dbname));
  487. return $cvterm;
  488. }
  489. // continue on, we've fixed the record if the db_id did not match,
  490. // we can now perform and updated if we need to.
  491. }
  492. // get the CVterm record
  493. $cvterm = db_fetch_object(chado_query($cvtermsql, $accession, $dbname));
  494. //print "$pcvtermsql\n$cvtermsql\n$accession, $dbname\n";
  495. //print "CVTERM:\n";
  496. //print_r($cvterm);
  497. if (!$cvterm) {
  498. // check to see if the dbxref exists if not, add it
  499. $dbxref = tripal_db_add_dbxref($db->db_id, $accession);
  500. if (!$dbxref) {
  501. watchdog('tripal_cv', "Failed to find or insert the dbxref record for cvterm, " .
  502. "$name (id: $accession), for database $dbname", NULL, WATCHDOG_WARNING);
  503. return 0;
  504. }
  505. // check to see if the dbxref already has an entry in the cvterm table
  506. // this is the second constraint in the cvterm table
  507. $values = array('dbxref_id' => $dbxref->dbxref_id);
  508. $options = array('statement_name' => 'sel_cvterm_db');
  509. $check = tripal_core_chado_select('cvterm', array('cvterm_id'), $values, $options);
  510. if (count($check) == 0) {
  511. // now add the cvterm
  512. $ins_values = array(
  513. 'cv_id' => $cv->cv_id,
  514. 'name' => $name,
  515. 'definition' => $definition,
  516. 'dbxref_id' => $dbxref->dbxref_id,
  517. 'is_obsolete' => $is_obsolete,
  518. 'is_relationshiptype' => $is_relationship,
  519. );
  520. $ins_options = array('statement_name' => 'ins_cvterm_all');
  521. $success = tripal_core_chado_insert('cvterm', $ins_values, $ins_options);
  522. if (!$success) {
  523. if (!$is_relationship) {
  524. watchdog('tripal_cv', "Failed to insert the term: $name ($dbname)", NULL, WATCHDOG_WARNING);
  525. return 0;
  526. }
  527. else {
  528. watchdog('tripal_cv', "Failed to insert the relationship term: $name (cv: " . $cvname . " db: $dbname)", NULL, WATCHDOG_WARNING);
  529. return 0;
  530. }
  531. }
  532. }
  533. // this dbxref already exists in the cvterm table
  534. else {
  535. watchdog('tripal_cv', "The dbxref already exists for another cvterm record: $name (cv: " . $cvname . " db: $dbname)", NULL, WATCHDOG_WARNING);
  536. return 0;
  537. }
  538. $cvterm = db_fetch_object(chado_query($cvtermsql, $accession, $dbname));
  539. }
  540. // upate the cvterm
  541. elseif ($update) {
  542. $match = array('cvterm_id' => $cvterm->cvterm_id);
  543. $upd_values = array(
  544. 'name' => $name,
  545. 'definition' => $definition,
  546. 'is_obsolete' => $is_obsolete,
  547. 'is_relationshiptype' => $is_relationship,
  548. );
  549. $upd_options = array('statement_name' => 'upd_cvterm_nadeisis');
  550. $success = tripal_core_chado_update('cvterm', $match, $upd_values, $upd_options);
  551. if (!$success) {
  552. watchdog('tripal_cv', "Failed to update the term: $name", NULL, WATCHDOG_WARNING);
  553. return 0;
  554. }
  555. $cvterm = db_fetch_object(chado_query($cvtermsql, $accession, $dbname));
  556. }
  557. else {
  558. // do nothing, we have the cvterm but we don't want to update
  559. }
  560. // return the cvterm
  561. return $cvterm;
  562. }