logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TFBS::PatternGen::SimplePFM - a simple position frequency matrix factory

Description

       TFBS::PatternGen::SimplePFM generates a position frequency matrix from a set of nucleotide sequences of
       equal length, The sequences can be passed either as strings, as Bio::Seq objects or as a fasta file.

       This pattern generator always creates only one pattern from a given set of sequences.

   new
        Title   : new
        Usage   : my $db = TFBS::PatternGen::SimplePFM->new(%args);
        Function: the constructor for the TFBS::PatternGen::SimplePFM
                   object
        Returns : a TFBS::PatternGen::SimplePFM obkect
        Args    : This method takes named arguments;
                   you must specify one of the following
                   -seq_list     # a reference to an array of strings
                                 # and/or Bio::Seq objects
                     # or
                   -seq_stream   # A Bio::SeqIO object
                     # or
                   -seq_file     # the name of the fasta file containing
                                 # all the sequences

   patternall_patternspatternSet
       The three above methods are used fro the retrieval of patterns, and are common to all TFBS::PatternGen::*
       classes. Please see TFBS::PatternGen for details.

perl v5.40.0                                       2024-10-20                   TFBS::PatternGen::SimplePFM(3pm)

Name

       TFBS::PatternGen::SimplePFM - a simple position frequency matrix factory

Synopsis

           my @sequences = qw( AAGCCT AGGCAT AAGCCT
                               AAGCCT AGGCAT AGGCCT
                               AGGCAT AGGTTT AGGCAT
                               AGGCCT AGGCCT );
           my $patterngen =
                   TFBS::PatternGen::SimplePFM->new(-seq_list=>\@sequences);

           my $pfm = $patterngen->pattern(); # $pfm is now a TFBS::Matrix::PFM object

See Also