TFBS::PatternGen::Motif

Matrix

Included libraries Package variables General documentation Methods

Package variables top
No package variables defined.
Included modulestop
TFBS::Matrix
TFBS::Matrix::PFM
strict
Inherit top
TFBS::Matrix
Synopsistop
No synopsis!
Descriptiontop
No description!
Methodstop
PFMNo descriptionCode
_calculate_PFMNo descriptionCode
get_sitesNo descriptionCode
newNo descriptionCode
patternNo descriptionCode

Methods description


Methods code

PFMdescriptiontopprevnext
sub PFM {
    my ($self, %args) = @_;
    return TFBS::Matrix::PFM->new (-name => "unknown",
				   -ID   => "unknown",
				   -class=> "unknown",
				   -tags => { %{$self->{'tags'} } },
				   %args,
				   -matrix => $self->_calculate_PFM()
				   );
}
_calculate_PFMdescriptiontopprevnext
sub _calculate_PFM {
 ## simplest case: matrix already IS PFM    my $self = shift;
return [@{$self->{'matrix'}}];
}
get_sitesdescriptiontopprevnext
sub get_sites {
    return @{$_[0]->{'sites'}};
}
newdescriptiontopprevnext
sub new {
    my ($caller, %args) = @_;
    ##my $matrix = TFBS::Matrix->new(%args, -matrixtype=>"PFM");
##my $self = bless $matrix, ref($caller) || $caller;
my $self = $caller->SUPER::new(%args, -matrixtype=>"PFM"); $self->{'length'} = $args{'-length'} || scalar @{$self->{'matrix'}->[0]}; $self->{'nr_hits'} = ($args{'-nr_hits'} || undef); ## || $self->throw("No -nr_hits provided.");
## Why was nr_hits required ?? (Boris)
$self->{'sites'}=$args{'-sites'}; ## $self->{'tags'} = ($args{'-tags'} || {});
return $self;
}
patterndescriptiontopprevnext
sub pattern {
    my ($self, %args ) = @_;
    $self->PFM(%args);
}

General documentation

No general documentation available.