Bio::T...Muscle(3pm)

πŸ“¦
version 1.7.3 Β· 3 versions
, in debian bookworm, ubuntu noble

πŸ’– 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:

  1. make sure the muscle executable is in your path (i.e. 'which muscle' returns a valid program) βœ…
  2. define an environmental variable MUSCLEDIR which points to a directory containing the 'muscle' app:

in bash

 export MUSCLEDIR=/home/progs/muscle   or

in csh/tcsh

    setenv MUSCLEDIR /home/progs/muscle
  1. include a definition of an environmental variable MUSCLEDIR in 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 β€” float or undef
  • Args β€” none

🌟 run

  • Title β€” run
  • Usage β€” my $output = $application->run(\@seqs);
  • Function β€” Generic run of an application
  • Returns β€” Bio::SimpleAlign object
  • Args β€” Arrayref of Bio::PrimarySeqI objects 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 SimpleAlign object containing the sequence alignment.
  • Args β€” Name of a file containing a set of unaligned fasta sequences or else an array of references to Bio::Seq objects.
⚠️ Throws an exception if argument is not either a string (e.g. a filename) or a reference to an array of Bio::Seq objects. If argument is string, throws exception if file corresponding to string name can not be found. If argument is Bio::Seq array, 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 SimpleAlign object 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 muscle version 3.52. Some early versions of the 3.6 sources 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 muscle program
  • Example β€”
  • Returns β€” nothing; muscle output 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 muscle program
  • Example β€”
  • Returns β€” name of file containing muscle data 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 muscle program
  • Example β€”
  • Returns β€” parameter string to be passed to muscle during align or profile_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] string to set value to

🌈 tempdir

  • Title β€” tempdir
  • Usage β€” my $tmpdir = $self->tempdir();
  • Function β€” Retrieve a temporary directory name (which is created)
  • Returns β€” string which is the name of the temporary directory
  • Args β€” none

🌈 cleanup

  • Title β€” cleanup
  • Usage β€” $muscle->cleanup();
  • Function β€” Will cleanup the tempdir directory
  • Returns β€” none
  • Args β€” none

🌈 io

  • Title β€” io
  • Usage β€” $obj->io($newval)
  • Function β€” Gets a Bio::Root::IO object
  • 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