Relationship - a relationship for an ontology
$rel = Bio::Ontology::Relationship->new( -identifier => "16847", -parent_term => $parent, -child_term => $child, -relationship_type => $type );
This is a basic implementation of Bio::Ontology::RelationshipI.
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing lists Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion http://bio.perl.org/MailList.html - About the mailing lists
report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via email or the web:
bioperl-bugs@bio.perl.org http://bio.perl.org/bioperl-bugs/
Christian M. Zmasek
Email: czmasek@gnf.org or cmzmasek@yahoo.com
WWW: http://www.genetics.wustl.edu/eddy/people/zmasek/
Address:
Genomics Institute of the Novartis Research Foundation 10675 John Jay Hopkins Drive San Diego, CA 92121
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
Title : new Usage : $rel = Bio::Ontology::Relationship->new( -identifier => "16847", -parent_term => $parent, -child_term => $child, -relationship_type => $type ); Function: Creates a new Bio::Ontology::Relationship. Returns : A new Bio::Ontology::Relationship object. Args : -identifier => the identifier of this relationship [scalar] -parent_term => the parent term [Bio::Ontology::TermI] -child_term => the child term [Bio::Ontology::TermI] -relationship_type => the relationship type [Bio::Ontology::TermI]
Title : init() Usage : $rel->init(); Function: Initializes this Relationship to all undef. Returns : Args :
Title : identifier Usage : $rel->identifier( "100050" ); or print $rel->identifier(); Function: Set/get for the identifier of this Relationship. Returns : The identifier [scalar]. Args : The identifier [scalar] (optional).
Title : parent_term Usage : $rel->parent_term( $parent ); or $parent = $rel->parent_term(); Function: Set/get for the parent term of this Relationship. Returns : The parent term [Bio::Ontology::TermI]. Args : The parent term [Bio::Ontology::TermI] (optional).
Title : child_term Usage : $rel->child_term( $child ); or $child = $rel->child_term(); Function: Set/get for the child term of this Relationship. Returns : The child term [Bio::Ontology::TermI]. Args : The child term [Bio::Ontology::TermI] (optional).
Title : relationship_type Usage : $rel->relationship_type( $type ); or $type = $rel->relationship_type(); Function: Set/get for the relationship type of this relationship. Returns : The relationship type [Bio::Ontology::TermI]. Args : The relationship type [Bio::Ontology::TermI] (optional).
Title : to_string() Usage : print $rel->to_string(); Function: to_string method for Relationship. Returns : A string representation of this Relationship. Args :
To install LocalConfig, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LocalConfig
CPAN shell
perl -MCPAN -e shell install LocalConfig
For more information on module installation, please visit the detailed CPAN module installation guide.