Bio::T...Muscle(3pm)
π Bio::Tools::Run::Alignment::Muscle β the manual, but make it cute β¨
okay bestie, you're reading the docs for Bio::Tools::Run::Alignment::Muscle, from the User Contributed Perl Documentation collection. it's the object that runs MUSCLE for you and hands back an alignment. let's go π
πΈ NAME πΈ
Bio::Tools::Run::Alignment::Muscle β the object that does the calculation of an iterative multiple sequence alignment from a set of unaligned sequences or alignments, using the MUSCLE program. periodt.
β¨ SYNOPSIS β¨
# Build a muscle alignment factory
$factory = Bio::Tools::Run::Alignment::Muscle->new(@params);
# Pass the factory a list of sequences to be aligned.
$inputfilename = 't/cysprot.fa';
# $aln is a SimpleAlign object.
$aln = $factory->align($inputfilename);
# or where @seq_array is an array of Bio::Seq objects
$seq_array_ref = \@seq_array;
$aln = $factory->align($seq_array_ref);
# Or one can pass the factory a pair of (sub)alignments
#to be aligned against each other, e.g.:
#There are various additional options and input formats available.
#See the DESCRIPTION section that follows for additional details.
π¦ DESCRIPTION π¦
okay so Muscle is Robert Edgar's progressive alignment program. you can grab it and read all about it at this URL: http://www.drive5.com/muscle π«Ά
ngl, it is recommended you use at least version 3.6. behaviour with earlier versions is questionable π so like, don't.
π Helping the module find your executable π
bestie you will need to enable Muscle to find the muscle program. this can be done in (at least) three ways, and yes you gotta pick one:
- make sure the
muscleexecutable is in your path (i.e.'which muscle'returns a valid program) β - define an environmental variable
MUSCLEDIRwhich points to a directory containing the'muscle'app:
in bash
export MUSCLEDIR=/home/progs/muscle or
in csh/tcsh
setenv MUSCLEDIR /home/progs/muscle
- include a definition of an environmental variable
MUSCLEDIRin every script that will
BEGIN {$ENV{MUSCLEDIR} = '/home/progs/muscle'; }
use Bio::Tools::Run::Alignment::Muscle;
π FEEDBACK π
π¬ Mailing Lists π¬
user feedback is, like, an integral part of the evolution of this and other Bioperl modules. send your comments and suggestions preferably to one of the Bioperl mailing lists. your participation is much appreciated π«Ά
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. ty bestie π
π Reporting Bugs π
report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. bug reports can be submitted via the web:
http://redmine.open-bio.org/projects/bioperl/
π AUTHOR - Jason Stajich π
Email jason-at-bioperl-dot-org π
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ β so if you see one of those, mind your business, it's not for you π
π new
- Title β
new - Usage β
my $muscle = Bio::Tools::Run::Alignment::Muscle->new(); - Function β Constructor
- Returns β
Bio::Tools::Run::Alignment::Muscle - Args β
-outfile_name => $outname
π 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 β
π error_string
- Title β
error_string - Usage β
$obj->error_string($newval) - Function β Where the output from the last analysus run is stored.
- Returns β value of
error_string - Args β
newvalue(optional)
π version
- Title β
version - Usage β
exit if $prog->version() < 1.8 - Function β Determine the version number of the program
- Example β
- Returns β
floatorundef - Args β none
π run
- Title β
run - Usage β
my $output = $application->run(\@seqs); - Function β Generic run of an application
- Returns β
Bio::SimpleAlignobject - Args β Arrayref of
Bio::PrimarySeqIobjects or a filename to run on
π align
- Title β
align - Usage β
$inputfilename = 't/data/cysprot.fa';
$aln = $factory->align($inputfilename);
or
$seq_array_ref = \@seq_array;
$aln = $factory->align($seq_array_ref);
- Function β Perform a multiple sequence alignment
- Returns β Reference to a
SimpleAlignobject containing the sequence alignment. - Args β Name of a file containing a set of unaligned fasta sequences or else an array of references to
Bio::Seqobjects.
β οΈ Throws an exception if argument is not either a string (e.g. a filename) or a reference to an array ofBio::Seqobjects. If argument is string, throws exception if file corresponding to string name can not be found. If argument isBio::Seqarray, throws exception if less than two sequence objects are in array. so like. behave π
π run_profile
- Title β
run_profile - Usage β
$alnfilename = /t/data/cysprot.msa';
$seqsfilename = 't/data/cysprot.fa';
$aln = $factory->run_profile($alnfilename,$seqsfilename);
- Function β Perform a profile alignment on a MSA to include more seqs
- Returns β Reference to a
SimpleAlignobject containing the sequence alignment. - Args β Name of a file containing the fasta MSA and name of a file containing a set of unaligned fasta sequences
- Comments β This only works for
muscleversion3.52. Some early versions of the3.6sources had a bug that caused a segfault with-profile. The attached should fix it, if not let Bob Edgar know. π
π aformat
- Title β
aformat - Usage β
my $alignmentformat = $self->aformat(); - Function β Get/Set alignment format
- Returns β
string - Args β
string
π _run
- Title β
_run - Usage β Internal function, not to be called directly
- Function β makes actual system call to
muscleprogram - Example β
- Returns β nothing;
muscleoutput is written to a temporary file OR specified output file - Args β Name of a file containing a set of unaligned fasta sequences and hash of parameters to be passed to
muscle
π _setinput
- Title β
_setinput - Usage β Internal function, not to be called directly
- Function β Create input file for
muscleprogram - Example β
- Returns β name of file containing
muscledata input AND - Args β Arrayref of Seqs or input file name
π _setparams
- Title β
_setparams - Usage β Internal function, not to be called directly
- Function β Create parameter inputs for
muscleprogram - Example β
- Returns β parameter string to be passed to
muscleduringalignorprofile_align - Args β name of calling object
π Bio::Tools::Run::BaseWrapper methods π
π no_param_checks
- Title β
no_param_checks - Usage β
$obj->no_param_checks($newval) - Function β Boolean flag as to whether or not we should trust the sanity checks for parameter values
- Returns β value of
no_param_checks - Args β
newvalue(optional)
π save_tempfiles
- Title β
save_tempfiles - Usage β
$obj->save_tempfiles($newval) - Function β
- Returns β value of
save_tempfiles - Args β
newvalue(optional)
π outfile_name
- Title β
outfile_name - Usage β
my $outfile = $muscle->outfile_name(); - Function β Get/Set the name of the output file for this run (if you wanted to do something special)
- Returns β
string - Args β [optional]
stringto set value to
π tempdir
- Title β
tempdir - Usage β
my $tmpdir = $self->tempdir(); - Function β Retrieve a temporary directory name (which is created)
- Returns β
stringwhich is the name of the temporary directory - Args β none
π cleanup
- Title β
cleanup - Usage β
$muscle->cleanup(); - Function β Will cleanup the
tempdirdirectory - Returns β none
- Args β none
π io
- Title β
io - Usage β
$obj->io($newval) - Function β Gets a
Bio::Root::IOobject - Returns β
Bio::Root::IO - Args β none
and that's the whole page bestie, you ate that π this was generated by perl v5.36.0 and it's dated 2023-01-22, for Bio::Tools::Run::Alignment::Muscle(3pm) β now go align something iconic π
β¨π¦
π¦ 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