[Bioperl-l] Each_DBLink : only returning 1 entry ?

Ewan Birney birney@ebi.ac.uk
Thu, 30 Aug 2001 15:50:15 +0100 (BST)


On Thu, 30 Aug 2001, Jean-Jack M. Riethoven wrote:

> 
> 
> Thanks for the quick reply, Ewan.
> 
> > Buggy. Well spotted/
> >
> > > 2. How can I get the database code for the main accession number.
> > >
> >
> > $seq->accession_number;
> 
> Actually, with my second question I meant to ask: how do I get the database
> abbreviation code for a particalur sequence object.. E.g. I have a sequence
> object with accession_number X02158, is there someway to get a value back
> that tells me this sequence (or acc_number) is in fact part of EMBL
> (Genbank/DDBJ), or SWISS_PROT, or...

$dblink->database()



> 
> JJ
> 
> 

-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>. 
-----------------------------------------------------------------