.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Bio::Ontology::Term 3pm" .TH Bio::Ontology::Term 3pm "2021-08-15" "perl v5.32.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Bio::Ontology::Term \- implementation of the interface for ontology terms .SH "SYNOPSIS" .IX Header "SYNOPSIS" #get Bio::Ontology::TermI somehow. .PP .Vb 5 \& print $term\->identifier(), "\en"; \& print $term\->name(), "\en"; \& print $term\->definition(), "\en"; \& print $term\->is_obsolete(), "\en"; \& print $term\->comment(), "\en"; \& \& foreach my $synonym ( $term\->each_synonym() ) { \& print $synonym, "\en"; \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This is a simple implementation for ontology terms providing basic methods (it provides no functionality related to graphs). It implements the Bio::Ontology::TermI interface. .PP This class also implements Bio::IdentifiableI and Bio::DescribableI. .SH "FEEDBACK" .IX Header "FEEDBACK" .SS "Mailing Lists" .IX Subsection "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. .PP .Vb 2 \& bioperl\-l@bioperl.org \- General discussion \& http://bioperl.org/wiki/Mailing_lists \- About the mailing lists .Ve .SS "Support" .IX Subsection "Support" Please direct usage questions or support issues to the mailing list: .PP \&\fIbioperl\-l@bioperl.org\fR .PP 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. .SS "Reporting Bugs" .IX Subsection "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: .PP .Vb 1 \& https://github.com/bioperl/bioperl\-live/issues .Ve .SH "AUTHOR" .IX Header "AUTHOR" Christian M. Zmasek .PP Email: czmasek\-at\-burnham.org or cmzmasek@yahoo.com .PP \&\s-1WWW:\s0 http://monochrome\-effect.net/ .PP Address: .PP .Vb 3 \& Genomics Institute of the Novartis Research Foundation \& 10675 John Jay Hopkins Drive \& San Diego, CA 92121 .Ve .SH "APPENDIX" .IX Header "APPENDIX" The rest of the documentation details each of the object methods. .SS "new" .IX Subsection "new" .Vb 10 \& Title : new \& Usage : $term = Bio::Ontology::Term\->new( \& \-identifier => "16847", \& \-name => "1\-aminocyclopropane\-1\-carboxylate synthase", \& \-definition => "Catalysis of ...", \& \-is_obsolete => 0, \& \-comment => "" ); \& Function: Creates a new Bio::Ontology::Term. \& Returns : A new Bio::Ontology::Term object. \& Args : \-identifier => the identifier of this term [scalar] \& \-name => the name of this term [scalar] \& \-definition => the definition of this term [scalar] \& \-ontology => the ontology this term lives in \& (a Bio::Ontology::OntologyI object) \& \-version => version information [scalar] \& \-is_obsolete => the obsoleteness of this term [0 or 1] \& \-comment => a comment [scalar] \& \-dblinks => Bio::Annotation::DBLink objects \& [reference to array] \& \-references => Bio::Annotation::Reference objects \& [reference to array] .Ve .PP See Bio::Ontology::OntologyI, Bio::Annotation::Reference, Bio::Annotation::DBLink. .SS "identifier" .IX Subsection "identifier" .Vb 7 \& Title : identifier \& Usage : $term\->identifier( "GO:0003947" ); \& or \& print $term\->identifier(); \& Function: Set/get for the identifier of this Term. \& Returns : The identifier [scalar]. \& Args : The identifier [scalar] (optional). .Ve .SS "name" .IX Subsection "name" .Vb 7 \& Title : name \& Usage : $term\->name( "N\-acetylgalactosaminyltransferase" ); \& or \& print $term\->name(); \& Function: Set/get for the name of this Term. \& Returns : The name [scalar]. \& Args : The name [scalar] (optional). .Ve .SS "definition" .IX Subsection "definition" .Vb 7 \& Title : definition \& Usage : $term\->definition( "Catalysis of ..." ); \& or \& print $term\->definition(); \& Function: Set/get for the definition of this Term. \& Returns : The definition [scalar]. \& Args : The definition [scalar] (optional). .Ve .SS "ontology" .IX Subsection "ontology" .Vb 5 \& Title : ontology \& Usage : $ont = $term\->ontology(); \& or \& $term\->ontology( $ont ); \& Function: Get the ontology this term is in. \& \& Note that with the ontology in hand you can query for all \& related terms etc. \& \& Returns : The ontology of this Term as a Bio::Ontology::OntologyI \& implementing object. \& Args : On set, the ontology of this Term as a Bio::Ontology::OntologyI \& implementing object or a string representing its name. .Ve .PP See Bio::Ontology::OntologyI. .SS "version" .IX Subsection "version" .Vb 7 \& Title : version \& Usage : $term\->version( "1.00" ); \& or \& print $term\->version(); \& Function: Set/get for version information. \& Returns : The version [scalar]. \& Args : The version [scalar] (optional). .Ve .SS "is_obsolete" .IX Subsection "is_obsolete" .Vb 7 \& Title : is_obsolete \& Usage : $term\->is_obsolete( 1 ); \& or \& if ( $term\->is_obsolete() ) \& Function: Set/get for the obsoleteness of this Term. \& Returns : the obsoleteness [0 or 1]. \& Args : the obsoleteness [0 or 1] (optional). .Ve .SS "comment" .IX Subsection "comment" .Vb 7 \& Title : comment \& Usage : $term\->comment( "Consider the term ..." ); \& or \& print $term\->comment(); \& Function: Set/get for an arbitrary comment about this Term. \& Returns : A comment. \& Args : A comment (optional). .Ve .SS "get_synonyms" .IX Subsection "get_synonyms" .Vb 5 \& Title : get_synonyms \& Usage : @aliases = $term\->get_synonyms; \& Function: Returns a list of aliases of this Term. \& Returns : A list of aliases [array of [scalar]]. \& Args : .Ve .SS "add_synonym" .IX Subsection "add_synonym" .Vb 7 \& Title : add_synonym \& Usage : $term\->add_synonym( @asynonyms ); \& or \& $term\->add_synonym( $synonym ); \& Function: Pushes one or more synonyms into the list of synonyms. \& Returns : \& Args : One synonym [scalar] or a list of synonyms [array of [scalar]]. .Ve .SS "remove_synonyms" .IX Subsection "remove_synonyms" .Vb 5 \& Title : remove_synonyms() \& Usage : $term\->remove_synonyms(); \& Function: Deletes (and returns) the synonyms of this Term. \& Returns : A list of synonyms [array of [scalar]]. \& Args : .Ve .SS "get_dblinks" .IX Subsection "get_dblinks" .Vb 9 \& Title : get_dblinks() \& Usage : @ds = $term\->get_dblinks(); \& Function: Returns a list of each dblinks of this GO term. \& Returns : A list of dblinks [array of [scalars]]. \& Args : A scalar indicating the context (optional). \& If omitted, all dblinks will be returned. \& Note : deprecated method due to past use of mixed data types; use \& get_dbxrefs() instead, which handles both strings and DBLink \& instances .Ve .SS "get_dbxrefs" .IX Subsection "get_dbxrefs" .Vb 3 \& Title : get_dbxrefs() \& Usage : @ds = $term\->get_dbxrefs(); \& Function: Returns a list of each link for this term. \& \& If an implementor of this interface permits modification of \& this array property, the class should define at least \& methods add_dbxref() and remove_dbxrefs(), with obvious \& functionality. \& \& Returns : A list of L instances \& Args : [optional] string which specifies context (default : returns all dbxrefs) .Ve .SS "get_dblink_context" .IX Subsection "get_dblink_context" .Vb 7 \& Title : get_dblink_context \& Usage : @context = $term\->get_dblink_context; \& Function: Return all context existing in Term \& Returns : a list of scalar \& Args : [none] \& Note : deprecated method due to past use of mixed data types; use \& get_dbxref_context() instead .Ve .SS "get_dbxref_context" .IX Subsection "get_dbxref_context" .Vb 5 \& Title : get_dbxref_context \& Usage : @context = $term\->get_dbxref_context; \& Function: Return all context strings existing in Term \& Returns : a list of scalars \& Args : [none] .Ve .SS "add_dblink" .IX Subsection "add_dblink" .Vb 10 \& Title : add_dblink \& Usage : $term\->add_dblink( @dbls ); \& or \& $term\->add_dblink( $dbl ); \& Function: Pushes one or more dblinks onto the list of dblinks. \& Returns : \& Args : One or more L instances \& Note : deprecated method due to past use of mixed data types; use \& add_dbxref() instead, which handles both strings and \& DBLink instances .Ve .SS "add_dbxref" .IX Subsection "add_dbxref" .Vb 9 \& Title : add_dbxref \& Usage : $term\->add_dbxref( @dbls ); \& or \& $term\->add_dbxref( $dbl ); \& Function: Pushes one or more dblinks onto the list of dblinks. \& Returns : \& Args : \-dbxrefs : array ref of Bio::Annotation::DBLink instances \& \-context : string designating the context for the DBLink \& (default : \*(Aq_default\*(Aq \- contextless) .Ve .SS "has_dblink" .IX Subsection "has_dblink" .Vb 8 \& Title : has_dblink \& Usage : $term\->has_dblink($dblink); \& Function: Checks if a DBXref is already existing in the OBOterm object \& Return : TRUE/FALSE \& Args : [arg1] A DBxref identifier \& Note : deprecated method due to past use of mixed data types; use \& has_dbxref() instead, which handles both strings and \& DBLink instances .Ve .SS "has_dbxref" .IX Subsection "has_dbxref" .Vb 7 \& Title : has_dbxref \& Usage : $term\->has_dbxref($dbxref); \& Function: Checks if a dbxref string is already existing in the OBOterm object \& Return : TRUE/FALSE \& Args : [arg1] A DBxref identifier (string). \& Bio::Annotation::DBLink::display_text() is used for comparison \& against the string. .Ve .SS "add_dblink_context" .IX Subsection "add_dblink_context" .Vb 9 \& Title : add_dblink_context \& Usage : $term\->add_dblink_context($db, $context); \& Function: add a dblink with its context \& Return : [none] \& Args : [arg1] a Bio::Annotation::DBLink instance \& [arg2] a string for context; if omitted, the \& default/context\-less one will be used. \& Note : deprecated method due to past use of mixed data types; use \& add_dbxref() instead .Ve .SS "remove_dblinks" .IX Subsection "remove_dblinks" .Vb 9 \& Title : remove_dblinks() \& Usage : $term\->remove_dblinks(); \& Function: Deletes (and returns) the definition references of this GO term. \& Returns : A list of definition references [array of [scalars]]. \& Args : Context. If omitted or equal to \*(Aqall\*(Aq, all dblinks \& will be removed. \& Note : deprecated method due to past use of mixed data types; use \& remove_dblinks() instead, which handles both strings and \& DBLink instances .Ve .SS "remove_dbxrefs" .IX Subsection "remove_dbxrefs" .Vb 6 \& Title : remove_dbxrefs() \& Usage : $term\->remove_dbxrefs(); \& Function: Deletes (and returns) the definition references of this GO term. \& Returns : A list of definition references [array of [scalars]]. \& Args : Context. If omitted or equal to \*(Aqall\*(Aq, all dblinks \& will be removed. .Ve .SS "get_references" .IX Subsection "get_references" .Vb 5 \& Title : get_references \& Usage : @references = $self\->get_references \& Fuctnion: Returns a list of references \& Return : A list of objects \& Args : [none] .Ve .SS "add_reference" .IX Subsection "add_reference" .Vb 5 \& Title : add_reference \& Usage : $self\->add_reference($reference); \& $self\->add_reference($reference1, $reference2); \& Fuctnion: Add one or more references \& Returns : [none] .Ve .SS "remove_references" .IX Subsection "remove_references" .Vb 5 \& Title : remove_references \& Usage : $self\->remove_references; \& Function: Deletes (and returns) all references \& Returns : A list of references \& Args : [none] .Ve .SS "get_secondary_ids" .IX Subsection "get_secondary_ids" .Vb 3 \& Title : get_secondary_ids \& Usage : @ids = $term\->get_secondary_ids(); \& Function: Returns a list of secondary identifiers of this Term. \& \& Secondary identifiers mostly originate from merging terms, \& or possibly also from splitting terms. \& \& Returns : A list of secondary identifiers [array of [scalar]] \& Args : .Ve .SS "add_secondary_id" .IX Subsection "add_secondary_id" .Vb 7 \& Title : add_secondary_id \& Usage : $term\->add_secondary_id( @ids ); \& or \& $term\->add_secondary_id( $id ); \& Function: Adds one or more secondary identifiers to this term. \& Returns : \& Args : One or more secondary identifiers [scalars] .Ve .SS "remove_secondary_ids" .IX Subsection "remove_secondary_ids" .Vb 5 \& Title : remove_secondary_ids \& Usage : $term\->remove_secondary_ids(); \& Function: Deletes (and returns) the secondary identifiers of this Term. \& Returns : The previous list of secondary identifiers [array of [scalars]] \& Args : .Ve .SH "Methods implementing Bio::IdentifiableI and Bio::DescribableI" .IX Header "Methods implementing Bio::IdentifiableI and Bio::DescribableI" .SS "object_id" .IX Subsection "object_id" .Vb 4 \& Title : object_id \& Usage : $string = $obj\->object_id() \& Function: a string which represents the stable primary identifier \& in this namespace of this object. \& \& This is a synonym for identifier(). \& \& Returns : A scalar .Ve .SS "authority" .IX Subsection "authority" .Vb 5 \& Title : authority \& Usage : $authority = $obj\->authority() \& Function: a string which represents the organisation which \& granted the namespace, written as the DNS name for \& organisation (eg, wormbase.org) \& \& This forwards to ontology()\->authority(). Note that you \& cannot set the authority before having set the ontology or \& the namespace (which will set the ontology). \& \& Returns : A scalar \& Args : on set, the new value (a scalar) .Ve .SS "namespace" .IX Subsection "namespace" .Vb 5 \& Title : namespace \& Usage : $string = $obj\->namespace() \& Function: A string representing the name space this identifier \& is valid in, often the database name or the name \& describing the collection. \& \& This forwards to ontology() (set mode) and \& ontology()\->name() (get mode). I.e., setting the namespace \& will set the ontology to one matching that name in the \& ontology store, or to one newly created. \& \& Returns : A scalar \& Args : on set, the new value (a scalar) .Ve .SS "display_name" .IX Subsection "display_name" .Vb 3 \& Title : display_name \& Usage : $string = $obj\->display_name() \& Function: A string which is what should be displayed to the user. \& \& The definition in Bio::DescribableI states that the \& string should not contain spaces. As this is not very \& sensible for ontology terms, we relax this here. The \& implementation just forwards to name(). \& \& Returns : A scalar \& Args : on set, the new value (a scalar) .Ve .SS "description" .IX Subsection "description" .Vb 6 \& Title : description \& Usage : $string = $obj\->description() \& Function: A text string suitable for displaying to the user a \& description. This string is likely to have spaces, but \& should not have any newlines or formatting \- just plain \& text. \& \& This forwards to definition(). The caveat is that the text \& will often be longer for ontology term definitions than the \& 255 characters stated in the definition in \& Bio::DescribableI. \& \& Returns : A scalar \& Args : on set, the new value (a scalar) .Ve .SH "Deprecated methods" .IX Header "Deprecated methods" Used for looking up the methods that supersedes them.