TFBS::...PairSet(3pm)
π TFBS::SitePairSet π
okay bestie, so this is the manual page for TFBS::...PairSet(3pm) from the User Contributed Perl Documentation collection β aka the whole TFBS perl module fam. And it's literally about a set of TFBS::SitePair objects. That's the vibe. Let's get into it π¦
β¨ NAME β¨
TFBS::SitePairSet β a set of TFBS::SitePair objects. that's it, that's the name, slay π
π SYNOPSIS π
my $site_pair_set = TFBS::SitePairSet->new(@list_of_site_pair_objects);
# add a TFBS::SitePair object to set:
$site_pair_set->add_site_pair($site_pair_obj);
# append another TFBS::SitePairSet contents:
$site_pair_set->add_site_pair_set($site_pair_obj);
# create an iterator:
my $it = $site_pair_set->Iterator(-sort_by => 'start');
like. the whole thing in four little moves. iconique β¨
πΈ DESCRIPTION πΈ
TFBS::SitePairSet is an aggregate class β meaning it's the container, the girl who holds everybody's stuff β and it's packed with a whole collection of TFBS::SitePair objects. π
you can make one from scratch and fill it up with TFBS::Site::Pair objects. it's also what comes back at you when you call the search_aln() method on TFBS::PatternI subclasses (think TFBS::Matrix::PWM, bestie π).
π«Ά FEEDBACK π«Ά
found a bug? got thoughts? send your bug reports and other comments to the author, fr fr. they wanna hear it. π
π AUTHOR - Boris Lenhard π
Boris Lenhard <Boris.Lenhard@cgb.ki.se>
π APPENDIX π
the rest of this doc breaks down every single object method, one by one. and psst β internal methods are marked with an underscore up front. iykyk π
β size
- Title :
size - Usage :
my $size = $sitepairset->size() - Function: returns a number of
TFBS::SitePairobjects contained in the set - Returns : a scalar (integer)
- Args : none
β add_site_pair
- Title :
add_site_pair - Usage :
$sitepairset->add_site_pair($site_pair_object)$sitepairset->add_site_pair(@list_of_site_pair_objects) - Function: adds
TFBS::SitePairobjects to an existingTFBS::SitePairSetobject - Returns :
$sitepairsetobject (usually ignored) - Args : A list of
TFBS::SitePairobjects to add
β add_site_pair_set
- Title :
add_site_pair_set - Usage :
$sitepairset->add_site_pair_set($site_pair_set_object)$sitepairset->add_site_pair(@list_of_site_pair_set_objects) - Function: adds the contents of other
TFBS::SitePairSetobjects to an existingTFBS::SitePairSetobject - Returns :
$sitepairsetobject (usually ignored) - Args : A list of
TFBS::SitePairSetobjects whose contents should be added to$sitepairset
β Iterator
- Title :
Iterator - Usage :
my $it = $sitepairset->Iterator(-sort_by=>'start');
while (my $site_pair = $it->next()) { #...
- Function: Returns an iterator object, used to iterate thorugh elements (
TFBS::SitePairobjects) - Returns : a
TFBS::_Iteratorobject - Args :
-sort_by # optional - currently it accepts
# (default sort order in parenthetse)
# 'name' (pattern name, alphabetically)
# 'ID' (pattern/matrix ID, alphabetically)
# 'start' (site start in sequence,
# numerically,increasing order)
# 'end' (site end in sequence,
# numerically, increasing order)
# 'score' (1st site in pair,
# numerically, decreasing order)
-reverse # optional - reverses the default sorting order if true
β set1 / set2
- Title :
set1/set2 - Usage :
my $siteset1 = $sitepairset->set1();
: my $siteset2 = $sitepairset->set2()
- Function: Returns individual
TFBS::SiteSetobjects, from the site set pair - Returns : A
TFBS::SiteSetobject - Args : none
β GFF
- Title :
GFF - Usage :
print $site->GFF();
: print $site->GFF($gff_formatter)
- Function: returns a "standard" multiline GFF string
- Returns : a string (multiline, newline terminated)
- Args : a
$gff_formatterfunction reference (optional)
and that's the whole page bestie!! no cap, you now know TFBS::SitePairSet better than it knows itself π
this one was cooked up with perl v5.42.3, dated 2026-08-21 β that's the TFBS::...PairSet(3pm) energy right there. go forth and pair your sites, 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