[Biopython] fetch random id

Peter biopython at maubp.freeserve.co.uk
Fri Nov 13 11:10:41 EST 2009


On Fri, Nov 13, 2009 at 3:00 PM, Yvan Strahm <yvan.strahm at bccs.uib.no> wrote:
> Hello List,
>
> I have to crash test a webservice so was wondering if any one knows a way to
> get random sequence id from swissprot or genbank?
> Thank for your help.
>
> yvan

GI identifiers are numbers, any I would expect most 8 digit GI numbers to
be valid IDs. So you could try just using random integers. Of course, some
will have been deprecated etc so they may trigger real failures.

Alternatively, download a list of valid IDs from the FTP site (or compile a
list via an Entrez search and save this to disk), and pick a random entry
to use each time in the test.

Peter


More information about the Biopython mailing list