[EMBOSS] getting organism from accession

simon andrews (BI) simon.andrews at bbsrc.ac.uk
Fri Jun 18 13:48:23 UTC 2010


On 18 Jun 2010, at 13:07, Tiwari, Bela wrote:

> Dear all, 
> 
> I have a set of accession numbers and I want to retrieve the organism that the sequence is associated with - i.e. the content of the OS line in an embl file.  I don't need the taxonomic id, and I don't need to start traversing taxonomy trees. I want to do this by accessing remote databases (via srs, as configured in my emboss.defaults file), rather than indexing databases locally.  So the output I want would be a text mapping like:
> 
> accession : species    
> 
> where species is taken from the OS line of a database entry.

how about:

entret embl:XXXX stdout | grep ^OS

Is that close enough?

Simon.





More information about the EMBOSS mailing list