NAME
Bio::Annotation::Relation - Relationship (pairwise) with other objects SeqI and NodeI;
SYNOPSIS
use Bio::Annotation::Relation;use Bio::Annotation::Collection;my $col = Bio::Annotation::Collection->new();my $sv = Bio::Annotation::Relation->new(-type => "paralogy" -to => "someSeqI");$col->add_Annotation('tagname', $sv);
DESCRIPTION
Scalar value annotation object
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 - Mira Han
Email [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : my $sv = Bio::Annotation::Relation->new();Function: Instantiate a new Relation objectReturns : Bio::Annotation::Relation objectArgs : -type => $type of relation [optional]-to => $obj which $self is in relation to [optional]-tagname => $tag to initialize the tagname [optional]-tag_term => ontology term representation of the tag [optional]
AnnotationI implementing functions
as_text
Title : as_textUsage : my $text = $obj->as_textFunction: return the string "Value: $v" where $v is the valueReturns : stringArgs : none
display_text
Title : display_textUsage : my $str = $ann->display_text();Function: returns a string. Unlike as_text(), this method returns a stringformatted as would be expected for te specific implementation.One can pass a callback as an argument which allows custom textgeneration; the callback is passed the current instance and any textreturnedExample :Returns : a stringArgs : [optional] callback
hash_tree
Title : hash_treeUsage : my $hashtree = $value->hash_treeFunction: For supporting the AnnotationI interface just returns the valueas a hashref with the key 'value' pointing to the valueReturns : hashrfArgs : none
tagname
Title : tagnameUsage : $obj->tagname($newval)Function: Get/set the tagname for this annotation value.Setting this is optional. If set, it obviates the need toprovide a tag to AnnotationCollection when adding thisobject.Example :Returns : value of tagname (a scalar)Args : new value (a scalar, optional)
Specific accessors for Relation
type
Title : typeUsage : $obj->type($newval)Function: Get/Set the typeReturns : type of relationArgs : newtype (optional)
to
Title : toUsage : $obj->to($newval)Function: Get/Set the object which $self is in relation toReturns : the object which the relation applies toArgs : new target object (optional)
confidence
Title : confidenceUsage : $self->confidence($newval)Function: Gives the confidence value.Example :Returns : value of confidenceArgs : newvalue (optional)
confidence_type
Title : confidence_typeUsage : $self->confidence_type($newtype)Function: Gives the confidence type.Example :Returns : type of confidenceArgs : newtype (optional)
tag_term
Title : tag_termUsage : $obj->tag_term($newval)Function: Get/set the L<Bio::Ontology::TermI> object representingthe tag name.This is so you can specifically relate the tag of thisannotation to an entry in an ontology. You may want to dothis to associate an identifier with the tag, or aparticular category, such that you can better match the tagagainst a controlled vocabulary.This accessor will return undef if it has never been setbefore in order to allow this annotation to staylight-weight if an ontology term representation of the tagis not needed. Once it is set to a valid value, tagname()will actually delegate to the name() of this term.Example :Returns : a L<Bio::Ontology::TermI> compliant object, or undefArgs : on set, new value (a L<Bio::Ontology::TermI> compliantobject or undef, optional)