[Bioperl-l] passing paramteters to primer3
Thomas J Keller
kellert at ohsu.edu
Fri Sep 17 15:29:54 EDT 2004
Thanks!
Can I assume this is a general feature of bioperl methods (i.e., list
input)?
And passing references (I'd first tried passing \%params, which also
didn't work) is not generally supported?
Thanks again.
Tom K.
On Sep 17, 2004, at 12:14 PM, Marc Logghe wrote:
> 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
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
More information about the Bioperl-l
mailing list