[Gmod-help] GMODTools genbank generation

Scott Cain scott at scottcain.net
Wed May 6 11:46:17 EDT 2009


Hi Barry,

I'm cc'ing this to the schema mailing list for wider readership.

I'm not familiar with that bit of code, but given that your expansion
is more readable anyway, perhaps it should be changed.  Is that what
you're suggesting?

Thanks,
Scott


On Wed, May 6, 2009 at 12:06 AM, Barry Dancis <bdancis at digiconasp.com> wrote:
>
> Hi--
>
>  I am trying to generate genbank files and I get the error:
>
>  Can't use string ("33/64") as a HASH ref while "strict refs" in use at lib/Bio/GMOD/Bulkfiles/BulkWriter.pm line 96.
>
> If I replace line 96:
>
>  @ENV{@keys} = @{%$sconfig}{@keys};
>
> with an expanded version:
>
>  foreach my $next_key (@keys) {
>                printf STDERR "(%s) %s\n", ($next_key, $sconfig->{$next_key});
>                $ENV->{$next_key} = $sconfig->{$next_key};
>        }
>
> it works fine and prints out:
>
> (species) Tst mito
> (org) tmito
> (date) 20090505
> (title) Test Spm Data Release
> (rel) tmito1
> (relfull) tmito_20090505
> (relid) 1
> (release_url) /genome/Tst mito/release-tmito1.html
>
> which look correct.
>
> Any idea why   "@ENV{@keys} = @{%$sconfig}{@keys};" would  fail?
>
> Thanks,
>
> Barry
>
>



-- 
------------------------------------------------------------------------
Scott Cain, Ph. D.                                   scott at scottcain dot net
GMOD Coordinator (http://gmod.org/)                     216-392-3087
Ontario Institute for Cancer Research




More information about the Gmod-help mailing list