.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Bio::Tools::Primer3 3pm" .TH Bio::Tools::Primer3 3pm "2021-08-15" "perl v5.32.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Bio::Tools::Primer3 \- Create input for and work with the output from the program primer3 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& # parse primer3 output to get some data \& # this is also called from Bio::Tools::Run::Primer3 \& use Bio::Tools::Primer3; \& \& # read a primer3 output file \& my $p3 = Bio::Tools::Primer3\->new(\-file=>"data/primer3_output.txt"); \& \& # how many results were there? \& my $num = $p3\->number_of_results; \& print "There were $num results\en"; \& \& # get all the results \& my $all_results = $p3\->all_results; \& print "ALL the results\en"; \& foreach my $key (keys %{$all_results}) { \& print "$key\et${$all_results}{$key}\en"; \& } \& \& # get specific results \& my $result1 = $p3\->primer_results(1); \& print "The first primer is\en"; \& foreach my $key (keys %{$result1}) { \& print "$key\et${$result1}{$key}\en"; \& } \& \& # get the results as a Bio::Seq::PrimedSeq stream \& my $primer = $p3\->next_primer; \& print "The left primer in the stream is ", \& $primer\->get_primer(\*(Aq\-left_primer\*(Aq)\->seq\->seq, "\en"; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Bio::Tools::Primer3 creates the input files needed to design primers using primer3 and provides mechanisms to access data in the primer3 output files. .PP 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. .PP This module is based on one written by Chad Matsalla (bioinformatics1@dieselwurks.com) .PP I have ripped some of his code, and added a lot of my own. I hope he is not mad at me! .PP This is probably best run in one of the two following ways: .PP .Vb 4 \& i. To parse the output from Bio::Tools::Run::Primer3. \& You will most likely just use next_primer to get the results from \& Bio::Tools::Run::Primer3. \& ii. To parse the output of primer3 handed to it as a file name. .Ve .SH "FEEDBACK" .IX Header "FEEDBACK" .SS "Mailing Lists" .IX Subsection "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. .PP .Vb 2 \& bioperl\-l@bioperl.org \- General discussion \& http://bioperl.org/wiki/Mailing_lists \- About the mailing lists .Ve .SS "Support" .IX Subsection "Support" Please direct usage questions or support issues to the mailing list: .PP \&\fIbioperl\-l@bioperl.org\fR .PP 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. .SS "Reporting Bugs" .IX Subsection "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: .PP .Vb 1 \& https://github.com/bioperl/bioperl\-live/issues .Ve .SH "AUTHOR \-" .IX Header "AUTHOR -" .Vb 1 \& Rob Edwards \& \& redwards@utmem.edu \& \& Based heavily on work of \& \& Chad Matsalla \& \& bioinformatics1@dieselwurks.com .Ve .SH "CONTRIBUTORS" .IX Header "CONTRIBUTORS" .Vb 1 \& Brian Osborne bosborne at alum.mit.edu .Ve .SH "APPENDIX" .IX Header "APPENDIX" The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ .SS "new" .IX Subsection "new" .Vb 8 \& Title : new() \& Usage : my $primer3 = Bio::Tools::Primer3\->new(\-file=>$file); \& Function: Parse primer3 output \& Returns : Does not return anything. If called with a filename will \& allow you to retrieve the results \& Args : \-file (optional) file of primer3 results to parse \-verbose \& (optional) set verbose output \& Notes : .Ve .SS "number_of_results" .IX Subsection "number_of_results" .Vb 9 \& Title : number_of_results() \& Usage : my $count = $primer3\->number_of_results(); \& Function: Retrieve the number of primers returned from Primer3. \& Returns : A scalar \& Args : None \& Notes : This returns the count of the primers returned by Primer3 \& (aka how many of them there are). \& This is one more than the maximum offset into the zero \& based list of primers that is accessed by primer_results(). .Ve .SS "all_results" .IX Subsection "all_results" .Vb 7 \& Title : all_results() \& Usage : my $results = $primer3\->all_results(); \& or \& my $results = $primer3\->all_results(\*(Aqprimer3 result name\*(Aq, \*(Aqother results\*(Aq); \& Function: Retrieve the results returned from Primer3. \& Returns : A reference to a hash \& Args : Optional array of specific results to retrieve .Ve .SS "primer_results" .IX Subsection "primer_results" .Vb 5 \& Title : primer_results() \& Usage : my $results = $primer3\->primer_results(2); # results for third primer \& Function: Retrieve the results returned from Primer3 for specific primer pairs. \& Returns : A reference to a hash \& Args : A number between 0 and the maximum number of primers to retrieve .Ve .SS "_readfile" .IX Subsection "_readfile" .Vb 6 \& Title : _readfile() \& Usage : $self\->_readfile(); \& Function: An internal function that reads a file and sets up the results \& Returns : Nothing. \& Args : None \& Notes : .Ve .SS "next_primer" .IX Subsection "next_primer" .Vb 7 \& Title : next_primer() \& Usage : while (my $primed_seq = $primer3\->next_primer()) { \& Function: Retrieve the primed sequence and a primer pair, one at a time \& Returns : Returns a Bio::Seq::PrimedSeq object, one at a time \& Args : None \& Notes : Use $primed_seq\->annotated_seq to get an annotated sequence \& object you can write out. .Ve .SS "primer_stream" .IX Subsection "primer_stream" .Vb 6 \& Title : primer_stream() \& Usage : while (my $primed_seq = $primer3\->primer_stream()) { \& Function: Retrieve the primer/sequences one at a time \& Returns : Returns a Bio::Seq::PrimedSeq object, one at a time \& Args : None \& Notes : Deprecated, just a link to next_primer .Ve .SS "_separate" .IX Subsection "_separate" .Vb 7 \& Title : _separate() \& Usage : $self\->_separate(); \& Function: An internal function that groups the results by number \& (e.g. primer pair 1, etc) \& Returns : Nothing. \& Args : None \& Notes : .Ve .SS "_set_variable" .IX Subsection "_set_variable" .Vb 6 \& Title : _set_variable() \& Usage : $self\->_set_variable(\*(Aqvariable name\*(Aq, \*(Aqvalue\*(Aq); \& Function: An internal function that sets a variable \& Returns : Nothing. \& Args : None \& Notes : Used to set $self\->{results} and $self\->seqobject .Ve