TFBS

PatternI

Summary Included libraries Package variables Description General documentation Methods

Summary
TFBS::PatternI - interface definition for all pattern objects (currently
includes matrices and word (consensus and regular expressions )
Package variables top
No package variables defined.
Included modulestop
Bio::Root::Root
strict
Inherit top
Bio::Root::Root
Synopsistop
No synopsis!
Descriptiontop
TFBS::PatternI is a draft class that should contain general interface for matrix and other (future) pattern objects. It is not defined and not used yet, as I need to ponder over certain unresolved issues in general pattern definition. User feedback is more than welcome.
Methodstop
IDDescriptionCode
all_tagsDescriptionCode
classDescriptionCode
delete_tagDescriptionCode
nameDescriptionCode
tagDescriptionCode

Methods description

IDcodetopprevnext
 Title   : ID
Usage : my $ID = $icm->ID()
$pfm->ID('M00119');
Function: Get/set on the ID of the pattern (unique in a DB or a set)
Returns : pattern ID (a string)
Args : none for get, string for set
all_tagscodetopprevnext
 Title   : all_tags
Usage : my %tag = $pfm->all_tags();
Function: get a hash of all tags for a matrix
Returns : a hash of all tag values keyed by tag name
Args : none
classcodetopprevnext
 Title   : class
Usage : my $class = $pwm->class()
$pfm->class('forkhead');
Function: Get/set on the structural class of the pattern
Returns : class name (a string)
Args : none for get, string for set
delete_tagcodetopprevnext
 Title   : delete_tag
Usage : $pfm->delete_tag('score');
Function: get a hash of all tags for a matrix
Returns : nothing
Args : a string (tag name)
namecodetopprevnext
 Title   : name
Usage : my $name = $pwm->name()
$pfm->name('PPARgamma');
Function: Get/set on the name of the pattern
Returns : pattern name (a string)
Args : none for get, string for set
tagcodetopprevnext
 Title   : tag
Usage : my $acc = $pwm->tag('acc')
$pfm->tag(source => "Gibbs");
Function: Get/set on the structural class of the pattern
Returns : tag value (a scalar/reference)
Args : tag name (string) for get,
tag name (string) and value (any scalar/reference) for set

Methods code

IDdescriptiontopprevnext
sub ID {
    my ($self, $ID) = @_;
    $self->{'ID'} = $ID if $ID;
    return $self->{'ID'};
}
all_tagsdescriptiontopprevnext
sub all_tags {
    return %{$_[0]->{'tags'}};
}
classdescriptiontopprevnext
sub class {
    my ($self, $class) = @_;
    $self->{'class'} = $class if $class;
    return $self->{'class'};
}
delete_tagdescriptiontopprevnext
sub delete_tag {
    my ($self, $tag) = @_;
    delete $self->{'tags'}->{$tag};
}
namedescriptiontopprevnext
sub name {
    my ($self, $name) = @_;
    $self->{'name'} = $name if $name;
    return $self->{'name'};
}
tagdescriptiontopprevnext
sub tag {
    my $self = shift;
    my $tag = shift || return;
    if (scalar @_)  {
	$self->{'tags'}->{$tag} =shift;
    }
    return $self->{'tags'}->{$tag};
}

General documentation

FEEDBACK top
Please send bug reports and other comments to the author.
AUTHOR - Boris Lenhard top
Boris Lenhard Boris.Lenhard@cgb.ki.seEi.se>
APPENDIX top
The rest of the documentation details each of the object
methods. Internal methods are preceded with an underscore.