TFBS::PatternGen::Gibbs

Motif

Summary Included libraries Package variables Synopsis Description General documentation Methods

Summary
TFBS::PatternGen::Gibbs::Motif - class for unprocessed motifs and associated 
numerical scores created by the Gibbs program
Package variables top
No package variables defined.
Included modulestop
TFBS::Matrix::PFM
TFBS::PatternGen::Motif::Matrix
strict
Inherit top
TFBS::PatternGen::Motif::Matrix
Synopsistop

Descriptiontop
TFBS::PatternGen::Gibbs::Motif is used to store and manipulate unprocessed 
motifs and associated numerical scores created by the Gibbs program. You do not
normally want to create a TFBS::PatternGen::Gibbs::Motif yourself. They are created
by running TFBS::PatternGen::Gibbs
Methodstop
MAPDescriptionCode
_calculate_PFMNo descriptionCode

Methods description

MAPcodetopprevnext
 Title   : MAP
Usage : my $map_score = $motif->MAP;
Function: returns MAP score for the detected motif
(This is a backward compatibility method. For consistency,
you should use $motif->tag('MAP_score') instead
Returns : float (a scalar)
Args : none

Methods code

MAPdescriptiontopprevnext
sub MAP {
    my ($self) = @_;
    return $self->tag("MAP_score");
}
_calculate_PFMdescriptiontopprevnext
sub _calculate_PFM {
    my $self = shift;
    unless ($self->{'nr_hits'}) {
	$self->throw(ref($self).
		     " objects must be created with a (nonzero)".
		     " -nr_hits parameter in constructor"
		     );
    }
    my @PFM;
    foreach my $rowref ( @{$self->{'matrix'}} )  {
	my @PFMrow;
	foreach my $element (@$rowref) {
	    push @PFMrow, int($self->{'nr_hits'}*$element/100 + 0.5);
} push @PFM, [@PFMrow]; } return\@ PFM;
}

General documentation

FEEDBACK top
Please send bug reports and other comments to the author.
AUTHOR - Boris Lenhard and Wynand Alkema top
Boris Lenhard Boris.Lenhard@cgb.ki.seEi.seWynand.Alkema@cgb.ki.seE>Wynand.Alkema@cgb.ki.seE<gt>
APPENDIX top
The rest of the documentation details each of the object
methods. Internal methods are preceded with an underscore.
Other methods top
TFBS::PatterGen::Motif::Gibbs inherits from TFBS::PatternGen::Motif,
which inherits from TFBS::Matrix. Please consult the documentation of those modules
for additional available methods.