NAME
Bio::IdentifiableI - interface for objects with identifiers
SYNOPSIS
# to test this is an identifiable object$obj->isa("Bio::IdentifiableI") ||$obj->throw("$obj does not implement the Bio::IdentifiableI interface");# Accessors$object_id = $obj->object_id();$namespace = $obj->namespace();$authority = $obj->authority();$version = $obj->version();# Gets authority:namespace:object_id$lsid = $obj->lsid_string();# Gets namespace:object_id.version$ns_string = $obj->namespace_string();
DESCRIPTION
This interface describes methods expected on identifiable objects, i.e. ones which have identifiers expected to make sense across a number of instances and/or domains. This interface is modeled after pretty much ubiquitous ideas for names in bioinformatics being
databasename:object_id.version
Example:
swissprot:P012334.2
or:
GO:0007048
The object will also work with LSID proposals which adds the concept of an authority, being the DNS name of the organisation assigning the namespace. See <http://lsid.sourceforge.net/>.
Helper functions are provided to make useful strings:
lsid_string - string complying to the LSID standardnamespace_string - string complying to the usual convention ofnamespace:object_id.version
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Ewan Birney
Email [email protected]
Implementation Specific Functions
These functions are the ones that a specific implementation must define.
object_id
Title : object_idUsage : $string = $obj->object_id()Function: a string which represents the stable primary identifierin this namespace of this object. For DNA sequences thisis its accession_number, similarly for protein sequencesReturns : A scalarStatus : Virtual
version
Title : versionUsage : $version = $obj->version()Function: a number which differentiates between versions ofthe same object. Higher numbers are considered to belater and more relevant, but a single object describedthe same identifier should represent the same conceptReturns : A numberStatus : Virtual
authority
Title : authorityUsage : $authority = $obj->authority()Function: a string which represents the organisation whichgranted the namespace, written as the DNS name fororganisation (eg, wormbase.org)Returns : A scalarStatus : Virtual
namespace
Title : namespaceUsage : $string = $obj->namespace()Function: A string representing the name space this identifieris valid in, often the database name or the namedescribing the collectionReturns : A scalarStatus : Virtual
Implementation optional functions
These functions are helper functions that are provided by the interface but can be overridden if so wished
lsid_string
Title : lsid_stringUsage : $string = $obj->lsid_string()Function: a string which gives the LSID standardnotation for the identifier of interestReturns : A scalar
namespace_string
Title : namespace_stringUsage : $string = $obj->namespace_string()Function: a string which gives the common notation ofnamespace:object_id.versionReturns : A scalar