NAME
OBO::APO::APO_ID_Term_Map - A map between APO IDs and term names.
SYNOPSIS
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");
DESCRIPTION
The OBO::APO::APO_ID_Term_Map class implements a map for storing APO IDs and their corresponding names.
AUTHOR
Erick Antezana, <erick.antezana -@- gmail.com>
COPYRIGHT AND LICENSE
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.
get_new_id
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