TFBS::...::Elph(3pm)

✨ NAME ✨

TFBS::PatternGen::Elph β€” a pattern factory that uses the Elph program πŸ’…

(oh and btw this lives in the User Contributed Perl Documentation, page name TFBS::...::Elph(3pm) β€” hi bestie 🫢)


🌸 SYNOPSIS 🌸

my $patterngen =
        TFBS::PatternGen::Elph->new(-seq_file=>'sequences.fa',
                                     -binary => '/Elph/elph'
                                     -motif_length => [8, 9, 10],
                                     -additional_params => '-x -r -e');

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

πŸ’– DESCRIPTION πŸ’–

okay so here's the lore, straight from the docs: TFBS::PatternGen::Gibbs builds position frequency matrices using an advanced Gibbs sampling algorithm implemented in an external Gibbs program by Chip Lawrence. (yes bestie, the page says Gibbs, we're just relaying the tea β˜• no cap.) The algorithm can produce multiple patterns from a single set of sequences, which is lowkey iconic 🌈

πŸŽ€ new πŸŽ€

  • Title: new
  • Usage: my $db = TFBS::PatternGen::Gibbs->new(%args);
  • Function: the constructor for the TFBS::PatternGen::Gibbs object
  • Returns: a TFBS::PatternGen::Gibbs object
  • Args: this method takes named arguments β€” and you must specify one of the following 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

Other arguments are:

  • -binary β€” a fully qualified path to Gibbs executable. OPTIONAL: default 'Gibbs'
  • -nr_hits β€” a presumed number of pattern occurrences in the sequence set. it can be a single integer, e.g. -nr_hits => 24, or a reference to an array of integers, e.g. -nr_hits => [12, 24, 36]
  • -motif_length β€” an expected length of motif in nucleotides. it can be a single integer, e.g. -motif_length => 8, or a reference to an array of integers, e.g. -motif_length => [8..12]
  • -additional_params β€” a string containing additional command-line switches for the Gibbs program

πŸ‘‘ pattern

πŸ‘‘ all_patterns

πŸ‘‘ patternSet

These three methods β€” pattern, all_patterns, and patternSet β€” are used for the retrieval of patterns, and they're common to all TFBS::PatternGen::* classes. Please see TFBS::PatternGen for details 🫢


and that's the whole page bestie, you ate it, periodt πŸ’…

this was perl v5.42.3, dated 2026-08-21, and the page is TFBS::...::Elph(3pm) β€” mwah, go slay some motifs πŸ’–βœ¨

πŸ“¦ where this page comes from