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

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

πŸ’– Bio::T...rimer3 πŸ’–

okay bestie, gather round, because we're talking about Bio::Tools::Run::Primer3 from the User Contributed Perl Documentation collection β€” yes, that's the manual we're living in rn. It's a Perl module that makes input for and works with the output from the program primer3. primer3 does the primer design, this module does the ✨talking to it✨ part. slay.


🌸 NAME 🌸

Bio::Tools::Run::Primer3 β€” Create input for and work with the output from the program primer3. that's the whole vibe, periodt.


✨ SYNOPSIS ✨

Bio::Tools::Primer3 creates the input files you need to design primers using primer3, and it also gives you the mechanisms to access data in the primer3 output files. two jobs, both ate.

This module is a bioperl interface to the program primer3. See http://frodo.wi.mit.edu/primer3/primer3_code.html for details and to download the software. Heads up bestie: this module only works for primer3 release 1 but is not guaranteed to work with earlier versions. no cap, read that twice.

# design some primers.
# the output will be put into temp.out
use Bio::Tools::Run::Primer3;
use Bio::SeqIO;

my $seqio = Bio::SeqIO->new(-file=>'data/dna1.fa');
my $seq = $seqio->next_seq;
my $primer3 = Bio::Tools::Run::Primer3->new(-seq => $seq,
                                            -outfile => "temp.out",
                                            -path => "/usr/bin/primer3_core");

# or after the fact you can change the program_name
$primer3->program_name('my_suprefast_primer3');

unless ($primer3->executable) {
  print STDERR "primer3 can not be found. Is it installed?\n";
  exit(-1)
}

# what are the arguments, and what do they mean?
my $args = $primer3->arguments;

print "ARGUMENT\tMEANING\n";
foreach my $key (keys %{$args}) {print "$key\t", $$args{$key}, "\n"}

# set the maximum and minimum Tm of the primer
$primer3->add_targets('PRIMER_MIN_TM'=>56, 'PRIMER_MAX_TM'=>90);

# design the primers. This runs primer3 and returns a
# Bio::Tools::Run::Primer3 object with the results
$results = $primer3->run;

# see the Bio::Tools::Run::Primer3 pod for
# things that you can get from this. For example:

print "There were ", $results->number_of_results, " primers\n";

Bio::Tools::Run::Primer3 creates the input files needed to design primers using primer3 and provides mechanisms to access data in the primer3 output files. (yes I'm saying it again, it's that important πŸ’…)

This module provides a bioperl interface to the program primer3. See http://www-genome.wi.mit.edu/genome_software/other/primer3.html for details and to download the software.

This module is based on one written by Chad Matsalla (bioinformatics1@dieselwurks.com). Our author ripped some of his code and added a lot of their own. Their exact words: "I hope he is not mad at me!" 😭 we love a humble king.


🫢 FEEDBACK 🫢

πŸ“¬ Mailing Lists

User feedback is 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, fr fr.

bioperl-l@bioperl.org                  - General discussion
http://www.bioperl.org/MailList.html             - 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. the reason? 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 β€” the more context, the more slay.

πŸ› 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 πŸ‘‘

Rob Edwards

redwards@utmem.edu

Based heavily on work of Chad Matsalla

bioinformatics1@dieselwurks.com


🌈 CONTRIBUTORS 🌈

  • Shawn Hoon β€” shawnh-at-stanford.edu
  • Jason Stajich β€” jason-at-bioperl.org
  • Brian Osborne β€” osborne1-at-optonline.net

πŸ¦‹ SEE ALSO πŸ¦‹

Bio::Tools::Primer3


πŸ“– APPENDIX πŸ“–

The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ β€” that's your lil secret handshake, iykyk.


πŸ’« new()

  • Title β€” new()
  • Usage β€”
my $primer3 = Bio::Tools::Run::Primer3->new(-file=>$file) to read
          a primer3 output file.
          my $primer3 = Bio::Tools::Run::Primer3->new(-seq=>sequence object)
          design primers against sequence
  • Function β€” Start primer3 working and adds a sequence. At the moment it will not clear out the old sequence, but I suppose it should. πŸ™ˆ (author's words, not mine)
  • Returns β€” Does not return anything. If called with a filename will allow you to retrieve the results
  • Args β€”
    • -seq (optional) Bio::Seq object of sequence. This is required to run primer3 but can be added later with add_targets()
    • -outfile file name to output results to (can also be added with $primer3->outfile_name)
    • -path path to primer3 executable, including program name, e.g. "/usr/bin/primer3_core". This can also be set with program_name and program_dir
    • -verbose (optional) set verbose output
  • Notes β€”

πŸ’« program_name

  • Title β€” program_name
  • Usage β€” $primer3->program_name()
  • Function β€” holds the program name
  • Returns β€” string
  • Args β€” None

πŸ’« program_dir

  • Title β€” program_dir
  • Usage β€” $primer3->program_dir($dir)
  • Function β€” returns the program directory, which may also be obtained from ENV variable.
  • Returns β€” string
  • Args β€”

πŸ’« add_targets()

  • Title β€” add_targets()
  • Usage β€” $primer3->add_targets(key=>value)
  • Function β€” Add any legal value to the input command line.
  • Returns β€” Returns the number of arguments added.
  • Args β€” Use $primer3->arguments to find a list of all the values that are allowed, or see the primer3 docs.
  • Notes β€” This will only do limited error checking at the moment, but it should work. 🫑

πŸ’« run()

  • Title β€” run()
  • Usage β€” $primer3->run();
  • Function β€” Run the primer3 program with the arguments that you have supplied.
  • Returns β€” A Bio::Tools::Primer3 object containing the results.
  • Args β€” None.
  • Note β€” See the Bio::Tools::Primer3 documentation for those functions.

πŸ’« arguments()

  • Title β€” arguments()
  • Usage β€” $hashref = $primer3->arguments();
  • Function β€” Describes the options that you can set through Bio::Tools::Run::Primer3, with a brief (one line) description of what they are and their default values
  • Returns β€” A string (if an argument is supplied) or a reference to a hash.
  • Args β€” If supplied with an argument will return a string of its description. If no arguments are supplied, will return all the arguments as a reference to a hash
  • Notes β€” Much of this is taken from the primer3 README file, and you should read that file for a more detailed description. πŸ“š

πŸ’« version

  • Title β€” version
  • Usage β€” $v = $prog->version();
  • Function β€” Determine the version number of the program
  • Example β€”
  • Returns β€” float or undef
  • Args β€” none

πŸ’« _input_args()

  • Title β€” _input_args()
  • Usage β€” an internal method to set the input arguments for Primer3
  • Function β€” Define a hash with keys for each of the input arguments and values as a short one line description
  • Returns β€” A reference to a hash.
  • Args β€” None.
  • Notes β€” Much of this is taken from the primer3 README file, and you should read that file for a more detailed description. πŸ“š

and that's the whole page bestie!! πŸŽ€ this gorgeous thing ships with perl v5.36.0, dated 2023-01-22, and it lives under the Bio::T...rimer3(3pm) manual name β€” go forth and design some primers, you absolute icon πŸ’…βœ¨πŸ§¬

πŸ“¦ where this page comes from