| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
use Bio::Annotation::SimpleValue;
use Bio::Annotation::Collection;
my $col = Bio::Annotation::Collection->new(); my $sv = Bio::Annotation::SimpleValue->new(-value => 'someval'); $col->add_Annotation('tagname', $sv);
| new | Description | Code |
| as_text | Description | Code |
| display_text | Description | Code |
| hash_tree | Description | Code |
| tagname | Description | Code |
| value | Description | Code |
| tag_term | Description | Code |
| new | code | next | Top |
Title : new |
| as_text | code | prev | next | Top |
Title : as_text |
| display_text | code | prev | next | Top |
Title : display_text |
| hash_tree | code | prev | next | Top |
Title : hash_tree |
| tagname | code | prev | next | Top |
Title : tagname |
| value | code | prev | next | Top |
Title : value |
| tag_term | code | prev | next | Top |
Title : tag_term |
| new | description | prev | next | Top |
my ($class,@args) = @_; my $self = $class->SUPER::new(@args); my ($value,$tag,$term) = $self->_rearrange([qw(VALUE TAGNAME TAG_TERM)], @args); # set the term first}
defined $term && $self->tag_term($term); defined $value && $self->value($value); defined $tag && $self->tagname($tag); return $self;
| as_text | description | prev | next | Top |
my ($self) = @_; return "Value: ".$self->value;}
| display_text | description | prev | next | Top |
my ($self, $cb) = @_; $cb ||= $DEFAULT_CB; $self->throw("Callback must be a code reference") if ref $cb ne 'CODE'; return $cb->($self); }}
| hash_tree | description | prev | next | Top |
my $self = shift; my $h = {}; $h->{'value'} = $self->value; return $h;}
| tagname | description | prev | next | Top |
my $self = shift; # check for presence of an ontology term}
if($self->{'_tag_term'}) { # keep a copy in case the term is removed later
$self->{'tagname'} = $_[0] if @_; # delegate to the ontology term object
return $self->tag_term->name(@_); } return $self->{'tagname'} = shift if @_; return $self->{'tagname'};
| value | description | prev | next | Top |
my ($self,$value) = @_; if( defined $value) { $self->{'value'} = $value; } return $self->{'value'};}
| tag_term | description | prev | next | Top |
my $self = shift; return $self->{'_tag_term'} = shift if @_; return $self->{'_tag_term'}; } 1;}
| FEEDBACK | Top |
| Mailing Lists | Top |
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
| Reporting Bugs | Top |
http://bugzilla.open-bio.org/
| AUTHOR - Ewan Birney | Top |
| APPENDIX | Top |
| AnnotationI implementing functions | Top |
| Specific accessors for SimpleValue | Top |