[Bioperl-l] passing paramteters to primer3

Marc Logghe Marc.Logghe at devgen.com
Fri Sep 17 15:14:01 EDT 2004


Hi Tom,

>my $arg_string = join(", ", ( map { "$_ => \'$params{$_}\'" } keys %params)); 
>

># set max and min of Tm 
>$primer3->add_targets($arg_string); 

This does not work because you are actually passing 1 big string as an argument.
The add_targets() methods takes a list. You should adapt your code to this:

my @args = map { $_ => $params{$_}} keys %params;
$primer3->add_targets(@args);

HTH,
Marc 



More information about the Bioperl-l mailing list