OBO::APO::APO_ID_Term_Map - A map between APO IDs and term names.
use OBO::APO::APO_ID_Term_Map;
$apo_id_set = APO_ID_Term_Map -> new;
$apo_id_set->file("ontology.ids");
$file = $apo_id_set -> file;
$size = $apo_id_set -> size;
$apo_id_set->file("APO");
if ($apo_id_set->add("APO:C1234567")) { ... }
$new_id = $apo_id_set->get_new_id("APO", "C");
The OBO::APO::APO_ID_Term_Map class implements a map for storing APO IDs and their corresponding names.
Erick Antezana, <erick.antezana -@- gmail.com>
Copyright (c) 2006-2015 by Erick Antezana. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
Usage - $map->get_new_id("APO", "P", "cell cycle") or $map->get_new_id("APO", "Pa", "cell cycle") Returns - a new APO ID (string) Args - idspace (string), subnamespace (string), term (string) Function - get a new APO ID and insert it (put) into this map
To install OBO::Util::Set, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OBO::Util::Set
CPAN shell
perl -MCPAN -e shell install OBO::Util::Set
For more information on module installation, please visit the detailed CPAN module installation guide.