[Bioperl-l] Taxonomy and get_taxaid
Jason Stajich
jason at cgt.duhs.duke.edu
Wed May 7 11:14:10 EDT 2003
Sorry this module is still very new - I had changed the API a little
without fixing the docs. See below.
On Wed, 7 May 2003 anthony.underwood at hpa.org.uk wrote:
> Hi All,
>
>
> I'm getting a problem with the taxonomy module when I write this script:
>
> use Bio::DB::Taxonomy;
> my $db=new Bio::DB::Taxonomy(-source=>'entrez');
> my $taxaid=$db->get_taxaid("Salmonella");
> my $species=$db->get_Taxonomy_Node(-taxaid=>$taxaid);
^^^^^^^
my $species=$db->get_Taxonomy_Node($taxaid);
> print $species->species->genus;
>
>
>
> The error I get is Can't call method "children" on an undefined value at
> /usr/lib/perl5/site_perl/5.6.1/Bio/DB/Taxonomy/entrez.pm line 167.
> I think this is when the get_taxaid routine is called
>
>
> Can anyone advise on this. Thanks in advance,
>
> Anthony
>
> Dr Anthony Underwood
> Bioinformatics Unit
> Central Public Health Laboratory
> Health Protection Agency
> 61 Colindale Avenue
> London
> NW9 5HT
> t: 0208 2004400 ext. 3618
> f: 0208 3583138
> e: anthony.underwood at hpa.org.uk
>
> **************************************************************************
> The information contained in the EMail and any attachments is
> confidential
> and intended solely and for the attention and use of the named
> addressee(s).
> It may not be disclosed to any other person without the express
> authority of
> the HPA, or the intended recipient, or both. If you are not the
> intended
> recipient, you must not disclose, copy, distribute or retain this
> message or
> any part of it.
>
> For information on how to send data to the HPA in encrypted form via
> E.Mail, visit www.HPA.org.uk.
>
> This footnote also confirms that this EMail has been swept for computer
> viruses, but please re-sweep any attachments before opening or saving.
>
> HTTP://www.HPA.org.uk
> **************************************************************************
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at bioperl.org
> http://pw600a.bioperl.org/mailman/listinfo/bioperl-l
>
--
Jason Stajich
Duke University
jason at cgt.mc.duke.edu
More information about the Bioperl-l
mailing list