| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
| WebCvs |
$target1 = Bio::Annotation::Target->new(-target_id => 'F321966.1',
-start => 1,
-end => 200,
-strand => 1, # or -1
);
# or $target2 = Bio::Annotation::Target->new(); $target2->target_id('Q75IM5'); $target2->start(7); # ... etc ... # Target is-a Bio::AnnotationI object, can be added to annotation # collections, e.g. the one on features or seqs $feat->annotation->add_Annotation('Target', $target2);
| new | No description | Code |
| as_text | Description | Code |
| display_text | Description | Code |
| tagname | Description | Code |
| target_id | Description | Code |
| as_text | code | next | Top |
Title : as_text |
| display_text | code | prev | next | Top |
Title : display_text |
| tagname | code | prev | next | Top |
Title : tagname |
| target_id | code | prev | next | Top |
Usage $obj->target_id() #get existing value $obj->target_id($newval) #set new value Function Returns value of target_id (a scalar) Arguments new value of target_id (to set) |
| new | description | prev | next | Top |
my($class,@args) = @_; my $self = $class->SUPER::new(@args); my ($target_id, $tstart, $tend, $tstrand) = $self->_rearrange([ qw( TARGET_ID START END STRAND ) ], @args); $target_id && $self->target_id($target_id); $tstart && $self->start($tstart); $tend && $self->end($tend); $tstrand && $self->strand($tstrand); return $self;}
| as_text | description | prev | next | Top |
my ($self) = @_; my $target = $self->target_id || ''; my $start = $self->start || ''; my $end = $self->end || ''; my $strand = $self->strand || ''; return "Target=".$target." ".$start." ".$end." ".$strand;}
| 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); }}
| tagname | description | prev | next | Top |
my ($self,$value) = @_; if( defined $value) { $self->{'tagname'} = $value; } return $self->{'tagname'};}
| target_id | description | prev | next | Top |
my $self = shift; return $self->{'target_id'} = shift if defined($_[0]); return $self->{'target_id'}; } 1;}
| AUTHOR - Scott Cain | Top |
| APPENDIX | Top |
| AnnotationI implementing functions | Top |
| Specific accessors for Targets | Top |