Bio::T...:Match(3pm)
πΈ Bio::Tools::Run::Match β the manual, but make it cute πΈ
okay bestie, welcome to Bio::Tools::Run::Match π this is the Perl doc for it, straight from the User Contributed Perl Documentation corner of the world. It's a wrapper. It's iconic. Let's go π¦
β¨ NAME β¨
Bio::Tools::Run::Match β a wrapper for Transfac's match(TM) π§ no cap, that's literally the whole name.
β¨ SYNOPSIS β¨
here's the vibe, copy-paste ready π
use Bio::Tools::Run::Match;
# Make a Match factory
$factory = Bio::Tools::Run::Match->new(-mxlib => '/path/to/matrix.dat');
# Run Match on an sequence object
my @results = $factory->run($bio_seq);
# look at the results
foreach my $feat (@results) {
my $seq_id = $feat->seq_id;
my $start = $feat->start;
my $end = $feat->end;
my $score = $feat->score;
my ($pvalue) = $feat->get_tag_values('pvalue');
}
β¨ DESCRIPTION β¨
so what is this? It's a wrapper for running the match(TM) program that ships with Transfac Pro distributions. periodt π
You can lowkey try feeding normal match command-line arguments straight into new(), like new(-b => 1), or you can call arg-named methods instead β just drop the leading hyphens, so $factory->b(1) sets the -b option to true. easy β¨
Histogram output isn't supported. π But -p is supported, by using -mxprf β go peek at the docs of new() for the details, iykyk.
Also, you're gonna need to enable this match wrapper to find the match executable. There are (at least) three ways to do that:
- Make sure
matchis in your path. π«Ά - Define an environmental variable
MATCHDIRwhich is a directory which contains thematchexecutable:
In bash:
export MATCHDIR=/home/username/match/
In csh/tcsh:
setenv MATCHDIR /home/username/match
- Include a definition of an environmental variable
MATCHDIRin every script that will use this match wrapper module, e.g.:
BEGIN { $ENV{MATCHDIR} = '/home/username/match/' }
use Bio::Tools::Run::Match;
π¬ FEEDBACK π¬
π¬ Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules π₯Ί so send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated, fr fr π
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π« Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. that's the magic combo β¨
π Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
http://redmine.open-bio.org/projects/bioperl/
π AUTHOR - Sendu Bala π
Email bix@sendu.me.uk β shoutout to the legend π«Ά
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ π (that's your cue that it's lowkey private, bestie).
program_name
- Title:
program_name - Usage:
$factory>program_name() - Function: holds the program name
- Returns: string
- Args: None
program_dir
- Title:
program_dir - Usage:
$factory->program_dir(@params) - Function: returns the program directory, obtained from ENV variable.
- Returns: string
- Args: None
new
- Title:
new - Usage:
$factory = Bio::Tools::Run::Match->new() - Function: creates a new MCS factory
- Returns:
Bio::Tools::Run::MCS - Args: The following args can either be supplied here or set by calling arg-named methods (eg.
$factory->imcut(2)).-mxlib=> path to thematrix.datfile containing Transfac matricies-mxprf=> path to a profile file |[core_thresh, [matrix_thresh]](defaults to a standard one based on the mxlib provided if file not supplied, using core_thresh and matrix_thresh values if those are supplied instead)-imcut=> floating point number, the importance cutoff-b | -u=> boolean, mutually exclusive
run
- Title:
run - Usage:
$result = $factory->run($bio_seqi_object); - Function: Runs match on a sequence.
- Returns: list of
Bio::SeqFeatureIfeature objects - Args:
Bio::SeqIcompliant object
NB:mxlibhas to have been set prior to callingrun(), either as an argument tonew()or by callingmxlib(). don't forget it, bestie, or it's giving π
_setparams
- Title:
_setparams - Usage: Internal function, not to be called directly
- Function: Creates a string of params to be used in the command string
- Returns: string of params
- Args: none
okay that's the whole page, you ate that π this lil doc comes from perl v5.36.0, dated 2023-01-22 β go forth and match some matricies, main character πβπ
π¦ where this page comes from
- debian bookworm: libbio-perl-run-perl 1.7.3-9 Β· Perl
- ubuntu noble: libbio-perl-run-perl 1.7.3-9 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms