TFBS::...mplePFM(3pm)

🌸 NAME

TFBS::PatternGen::SimplePFM β€” a simple position frequency matrix factory, bestie πŸ’–


✨ 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

πŸ¦‹ DESCRIPTION

Okay so TFBS::PatternGen::SimplePFM does exactly what it says on the tin: it builds you a position frequency matrix out of a bunch of nucleotide sequences that are all the same length. That's the whole vibe check, no cap. 🧬

And the way you hand it those sequences? You've got options, bestie:

  • as plain strings
  • as Bio::Seq objects
  • as a fasta file

Obsessed with the flexibility fr fr.

Heads up: this pattern generator always creates only one pattern from a given set of sequences. One set in, one pattern out. Periodt. πŸ’…

🌟 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 object
  • Args β€” this method takes named arguments, and you must specify one of these three:
    • -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 πŸ“‚

πŸ‘‘ pattern

πŸ‘‘ all_patterns

πŸ‘‘ patternSet

These three methods up above are your go-to for retrieving patterns, and they're common to all TFBS::PatternGen::* classes β€” so like, every sibling class has them too, iykyk. For the full tea, go check out TFBS::PatternGen 🫢


and that's the whole page, bestie!! this little icon was cooked up as part of perl v5.42.3, dated 2026-08-21 β€” go forth and build matrices πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from