| Summary | Package variables | Synopsis | Description | General documentation | Methods |
use Bio::DB::GFF; my $type = Bio::DB::GFF::Typename->new(similarity => 'BLAT_EST_GENOME'); my $segment = $segment->features($type);
| new | Description | Code |
| method | Description | Code |
| source | Description | Code |
| asString | Description | Code |
| clone | Description | Code |
| match | Description | Code |
| new | code | next | Top |
Title : new Usage : $type = Bio::DB::GFF::Typename->new($method,$source) Function: create a new Bio::DB::GFF::Typename object Returns : a new Bio::DB::GFF::Typename object Args : method and source Status : Public |
| method | code | prev | next | Top |
Title : method Usage : $method = $type->method([$newmethod]) Function: get or set the method Returns : a method name Args : new method name (optional) Status : Public |
| source | code | prev | next | Top |
Title : source Usage : $source = $type->source([$newsource]) Function: get or set the source Returns : a source name Args : new source name (optional) Status : Public |
| asString | code | prev | next | Top |
Title : asString Usage : $string = $type->asString Function: get the method and source as a string Returns : a string in "method:source" format Args : none Status : PublicThis method is used by operator overloading to overload the '""' operator. |
| clone | code | prev | next | Top |
Title : clone Usage : $new_clone = $type->clone; Function: clone this object Returns : a new Bio::DB::GFF::Typename object Args : none Status : PublicThis method creates an exact copy of the object. |
| match | code | prev | next | Top |
Title : match Usage : $boolean = $type->match($type_or_string) Function: fuzzy match on types Returns : a flag indicating that the argument matches the object Args : a Bio::DB::GFF::typename object, or a string in method:source format Status : PublicThis match allows Sequence:Link and Sequence: to match, but not Sequence:Link and Sequence:Genomic_canonical. |
| new | description | prev | next | Top |
my $package = shift; my ($method,$source) = @_; $method ||= ''; $source ||= ''; if ($source eq '' && $method =~ /^(\w+):(\w+)$/) { $method = $1; $source = $2; } return $OBJECT_CACHE{"$method:$source"} ||= bless [$method,$source],$package;}
| method | description | prev | next | Top |
my $self = shift; my $d = $self->[0]; $self->[0] = shift if @_; $d;}
| source | description | prev | next | Top |
my $self = shift; my $d = $self->[1]; $self->[1] = shift if @_; $d;}
| asString | description | prev | next | Top |
$_[0]->[1] ? join ':',@{$_[0]} : $_[0]->[0];}
| clone | description | prev | next | Top |
my $self = shift; return bless [@$self],ref $self;}
| match | description | prev | next | Top |
my $self = shift; my $target = shift; my ($method,$source); if (UNIVERSAL::isa($target,'Bio::DB::GFF::Typename')) { ($method,$source) = ($target->method,$target->source); } else { ($method,$source) = split /:/,$target; } return if $method ne '' && $self->method ne '' && $method ne $self->method; return if $source ne '' && $self->source ne '' && $source ne $self->source; 1;}
| BUGS | Top |
| SEE ALSO | Top |
| AUTHOR | Top |