TFBS::...::Gibbs(3pm)
π NAME π
TFBS::PatternGen::Gibbs β it's a pattern factory bestie, and it runs on Chip Lawrence's Gibbs program π
(You'll also see it filed under TFBS::...::Gibbs(3pm) in the man pages, iykyk.)
β¨ SYNOPSIS β¨
my $patterngen =
TFBS::PatternGen::Gibbs->new(-seq_file=>'sequences.fa',
-binary => '/Programs/Gibbs-1.0/bin/Gibbs'
-nr_hits => 24,
-motif_length => [8, 9, 10],
-additional_params => '-x -r -e');
my $pfm = $patterngen->pattern(); # $pfm is now a TFBS::Matrix::PFM object
Look at her go. She builds the thing (<code>$patterngen</code>), then she pulls a pattern out of it (<code>$pfm</code>), and <code>$pfm</code> is a whole <code>TFBS::Matrix::PFM</code> object. It's giving chemistty but make it β¨computationalβ¨.
πΈ DESCRIPTION πΈ
TFBS::PatternGen::Gibbs builds position frequency matrices using a very fancy Gibbs sampling algorithm β and that algorithm isn't even hers, it lives in an external program written by Chip Lawrence. Renting the vibe, not owning it π
The slay here is that this algorithm can produce multiple patterns from one single set of sequences. One sequence set, many motifs. Main character energy fr fr π
π new
- Title :
new - Usage :
my $db = TFBS::PatternGen::Gibbs->new(%args); - Function : the constructor for the
TFBS::PatternGen::Gibbsobject β it's the birth of the whole situation - Returns : a
TFBS::PatternGen::Gibbsobject π«Ά - Args : this method takes named arguments:
You must specify one of these three (pick your fighter, but only one):
-seq_listβ a reference to an array of strings and/orBio::Seqobjects-seq_streamβ aBio::SeqIOobject-seq_fileβ the name of the fasta file holding all the sequences
...and then the other arguments, bestie:
-binaryβ a fully qualified path to the Gibbs executable. OPTIONAL: default is'Gibbs'.-nr_hitsβ a presumed number of pattern occurrences in the sequence set. Can be a single integer, like-nr_hits => 24, or a reference to an array of integers, like-nr_hits => [12, 24, 36]β¨-motif_lengthβ an expected length of the motif in nucleotides. Can be a single integer, like-motif_length => 8, or a reference to an array of integers, like-motif_length => [8..12]-additional_paramsβ a string containing extra command-line switches for the Gibbs program π₯
reminder bestie: -binary is optional with a default, but the three sequence sources are a choose-exactly-one situation. Don't come at her with zero, don't come at her with all three. π«
π¦ pattern
π all_patterns
π§ patternSet
These three methods above are the retrieval girlies β they're how you pull patterns out of your object, and they're common to every <code>TFBS::PatternGen::*</code> class. So if you know them here, you know them everywhere.
Want the full details? Go see <code>TFBS::PatternGen</code>. She has the whole story. π
That's the whole page, angel. No cap, you got this. π
This lil doc lives in the User Contributed Perl Documentation collection, running as perl v5.42.3, dated 2026-08-21. Go forth and find motifs, queen πβ¨
π¦ where this page comes from
- ubuntu stonking: libtfbs-perl 0.7.1+ds-6build1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms