🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bionet.software.srs
Article #101

Re: [Bio-srs] Uniprot and EMBL question

#101
From: Hamish McWilliam
Date: Mon, 10 Oct 2005 14:38
55 lines
3555 bytes
Hi Iain,

> I am trying to return the embl entries for a list of uniprot entries.
> I use the following command.
> getz '(@testing > embl)'
> where the file testing contains:
> uniprot:CYGB_MOUSE
> uniprot:GLB1_SCAIN
> 
> The output is:
> EMBL:AK019410
> EMBL:MMU315163
> EMBL:BC055040
> 
> Is there any way of viewing the Uniprot ID's aswell as the EMBL ID;
> My ideal output would be
> EMBL:AK019410    UNIPROT:CYGB_MOUSE
> EMBL:MMU315163 UNIPROT:CYGB_MOUSE
> EMBL:BC055040     UNIPROT:CYGB_MOUSE
> 
> I have tried getz '(@testing > embl) > uniprot'
> but this only returns one entry, rather than three..
> 
> I want to parse out the results into individual files according to the
> uniprot id.
> 
> I believe it is possible using views and wgetz, but I would prefer not
> to use wgetz

A simple solution is to use a shell script to do the relevant 
processing. For example:

   #!/bin/sh
   tab=`echo "\t"`
   for ln in `cat testing`;  do
     getz "[$ln]>embl" | sed "s#\$#$tab$ln#"
   done

This produces your desired result, but is inefficent for large lists of 
ids since each id is processed using an individual getz call.

If your set of ids is the product of a query you could use an Icarus 
script to do the processing instead, and avoid some of the overhead 
involved in the getz calls.

Hamish
-- 
============================================================
Mr Hamish McWilliam
European Bioinformatics Institute
Wellcome Trust Genome Campus
Hinxton, Cambridge, CB10 1SD, UK

URL: http://www.ebi.ac.uk/
============================================================
Technical Details
Message-ID: <mailman.37.1128992251.18885.bio-srs@net.bio.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news.sanjose1.Level3.net!Level3.net!news.indiana.edu!quokka.wn.com.au!news.moat.net!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!teal.octanews.net!sanger.ac.uk!not-for-mail
References: <mailman.32.1128949390.18885.bio-srs@net.bio.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: fa6ec,7c1e8d66aa24024a
X-Google-Attributes: gidfa6ec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news.sanjose1.Level3.net!Level3.net!news.indiana.edu!quokka.wn.com.au!news.moat.net!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!teal.octanews.net!sanger.ac.uk!not-for-mail
From: Hamish McWilliam <hpm@ebi.ac.uk>
Newsgroups: bionet.software.srs
Subject: Re: [Bio-srs] Uniprot and EMBL question
Date: Mon, 10 Oct 2005 15:38:59 +0100
Organization: BIOSCI/IUBio, Biology Dept., Indiana University
Lines: 56
Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net>
Message-ID: <mailman.37.1128992251.18885.bio-srs@net.bio.net>
References: <mailman.32.1128949390.18885.bio-srs@net.bio.net>
NNTP-Posting-Host: oat.bio.indiana.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: rainier.uits.indiana.edu 1128992284 7819 129.79.225.149 (11 Oct 2005 00:58:04 GMT)
X-Complaints-To: news-admin@indiana.edu
NNTP-Posting-Date: Tue, 11 Oct 2005 00:58:04 +0000 (UTC)
To: bionet-software-srs@moderators.isc.org
User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007)
X-Accept-Language: en-us, en
In-Reply-To: <mailman.32.1128949390.18885.bio-srs@net.bio.net>
X-Mailman-Approved-At: Mon, 10 Oct 2005 19:57:30 -0500
X-BeenThere: bio-srs@net.bio.net
X-Mailman-Version: 2.1.4
Precedence: list
X-Original-To: Iain Wallace <iain.m.wallace@gmail.com>
X-Auth: PGPMoose V1.1 PGP bionet.software.srs
 iQCVAwUBQ0sN+6CIqsWvyF5FAQGIHAP+LZ5QHlPE7pWiOGuHOXfXMi2OS28sqjKd
 GlGefeWsSESxSZBqIgYWUoY032FH4hO+u5mftJkmQUr13RaDC2bUrYPKdwYjg6Mi
 mZppPpJ1pCjiPZ5dmq13Fk5gWEJ0/JZgZdWnzZvc5nld8+UcCFPRLPEE2uZKCt9X
 +FIPrh5g9AU= =0Pko