Article View: bionet.software.acedb
Article #20re: Ace-MODS urgent help!!
From: Saurav Mohanty
Date: Fri, 03 Dec 2004 08:25
Date: Fri, 03 Dec 2004 08:25
117 lines
6716 bytes
6716 bytes
Hello Dave,
Thanks again for your help.I think I will take my chances and test
everything on a seperate copy of the database.In case of issues I
would need further technical clarifications..
thank you
Saurav
On Thu, 2 Dec 2004, Dave Matthews wrote:
> Hi Saurav,
>
> Yes, this modification is well tested and quite stable. But you're right,
> you need some documentation to use it. What's available is sketchy and
> dispersed.
>
> First, you don't have to make any changes in your models.wrm or your .ace
> data. What you do is create a rule in wspec/markup.pl that is used by
> AceBrowser to parse the data and create the href link if there is a match
> to the rule.
>
> This example,
> http://www.graingenes.org/cgi-bin/ace/tree/graingenes?name=BE403741&class=Sequence
> has several links to external databases. Let's look just at the DB_info
> line.
>
> The ACEDB data for this is:
>
> Sequence : "BE403741"
> DB_info External_DB "GenBank" "BE403741"
>
> AceBrowser has added the href links "[DDBJ|EMBL|GenBank]" according to the
> rule in wspec/markup.pl.
>
> The model for class Sequence is:
>
> ?Sequence ...
> DB_info External_DB Text Text
>
> The rule in markup.pl is:
>
> ##########################################
> # Connection to external DB for Sequence #
> ##########################################
> {'root'=> {'cl'=>'Sequence'},
> 'branch' => [{ty=>tg,va=>'DB_info'},
> {ty=>tg,va=>'External_DB'},
> {ty=>tx,va=>'GenBank'},
> {ty=>tx}],
> 'urls' => [{'name'=>'EMBL', 'URL'=>'http://srs.ebi.ac.uk/srs6bin/cgi-bin/wgetz?-e+[embl-acc:$keys[0]]'},'GenBankAC',{'name'=>'DDBJ', 'URL'=>'http://getentry.ddbj.nig.ac.jp/cgi-bin/get_entry.pl?$keys[0]'}],
> },
> #
>
> Documentation on writing these rules is given in
> http://www.acedb.org/Cornell/ace95/nalwww.html#appendix3. Briefly,
> "cl" means class, "ty" means type, "tg" means tag, "va" means value, and
> "tx" means text. The value of that final ty=>tx field will be substituted
> in for the variable $keys[0].
>
> In this rule, 'GenBankAC' is the name for an URL that is defined in another
> file, externalURLs, which is located in the AceBrowser configuration
> directory. The GenBankAC line in this file should currently say:
> GenBankAC:GenBank:http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Search&db=Nucleotide&doptcmdl=GenBank&term=$keys[0]
>
> Writing these rules is actually easier than it looks, and there are a
> lot of examples in the distributed markup.pl file.
>
> > 2) is the release stable and has it been tested??If not what type of
> > support can I expect in case of urgent malfunctioning if I decide to
> > incorporate the new set of scripts into my database.
>
> I would counsel some caution, e.g. setting it up on a test machine first.
> Hugh himself has been able to install it on two other servers but I don't
> know if anyone has done it using only the instructions provided.
>
> best,
> - Dave
>
> > From saurav@algodon.tamu.edu Thu Dec 2 13:40:52 2004
> >
> > Hello Dave,
> >
> > Thank you for your reply.
> > I have some queries reagrding the Ace-Mods
> >
> > 1) what changes needs to
> > be done in the
> > .ace files slurped by AceDB and to the corresponding class in the
> > wspec/models.wrm .In short what modifications(tag addition for external
> > Url linking) need to be done to the
> > concerned class defination in the models.wrm to make the whole thing work.
> >
> > 2) is the release stable and has it been tested??If not what type of
> > support can I expect in case of urgent malfunctioning if I decide to
> > incorporate the new set of scripts into my database.
> >
> >
> >
> > 3)If possible can you please send me just the class definition and one
> > data
> > object of the .ace file of the graingenes database for reference where
> > you have implemented this feature..
> >
> > 4) Is there any sort of comprehensive documentation..which I guess is not
> > necessary for me if you can send me just an example as requested in 3
> > ,but anyway
> > necessary for any one who would really like to be completely sure
> > Thank you for your help in advance..I would be really thankful of you can
> > help me out of this.
> >
> > regards
> > Saurav
>
>
---
Technical Details
Message-ID:
<Pine.GSO.4.21.0412021413470.14157-100000@algodon.tamu.edu>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!wagner.news.clara.net!193.60.199.18.MISMATCH!feed2.jnfs.ja.net!jnfs.ja.net!rfcgr.mrc.ac.uk!hgmp.mrc.ac.uk!net.bio.netReferences:
<200412022002.iB2K2fmu016548@greengenes.cit.cornell.edu>Show Full Headers
Complete Article Headers
X-Google-Thread: f6d40,8b4b3042af272f34 X-Google-Attributes: gidf6d40,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!wagner.news.clara.net!193.60.199.18.MISMATCH!feed2.jnfs.ja.net!jnfs.ja.net!rfcgr.mrc.ac.uk!hgmp.mrc.ac.uk!net.bio.net From: saurav@algodon.tamu.edu (Saurav Mohanty) Newsgroups: bionet.software.acedb Subject: re: Ace-MODS urgent help!! Date: 3 Dec 2004 08:25:41 -0000 Organization: BIOSCI/MRC Rosalind Franklin Centre for Genomics Research Lines: 118 Sender: mod-ace@rfcgr.mrc.ac.uk Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net> Message-ID: <Pine.GSO.4.21.0412021413470.14157-100000@algodon.tamu.edu> References: <200412022002.iB2K2fmu016548@greengenes.cit.cornell.edu> NNTP-Posting-Host: mercury.hgmp.mrc.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: helium.hgmp.mrc.ac.uk 1102062341 17266 193.62.192.80 (3 Dec 2004 08:25:41 GMT) X-Complaints-To: news@net.bio.net NNTP-Posting-Date: Fri, 3 Dec 2004 08:25:41 +0000 (UTC) X-Original-To: bionet-software-acedb@net.bio.net X-Original-To: acedb@net.bio.net X-Received: from localhost (localhost [127.0.0.1]) by mercury.hgmp.mrc.ac.uk (Postfix) with ESMTP id 923707D0EF for <acedb@net.bio.net>; Thu, 2 Dec 2004 20:17:31 +0000 (GMT) X-Received: from algodon.tamu.edu (algodon.TAMU.EDU [128.194.213.34]) by mercury.hgmp.mrc.ac.uk (Postfix) with ESMTP id 7EAB67D0E0 for <acedb@net.bio.net>; Thu, 2 Dec 2004 20:17:24 +0000 (GMT) X-Received: from localhost (saurav@localhost) by algodon.tamu.edu (8.11.7+Sun/8.11.6) with ESMTP id iB2KHCa14232; Thu, 2 Dec 2004 14:17:14 -0600 (CST) X-To: Dave Matthews <matthews@greengenes.cit.cornell.edu> X-Cc: ACEDB newsgroup <acedb@net.bio.net>, Hugh Edwards <edwards@ceres.plbr.cornell.edu> X-In-Reply-To: <200412022002.iB2K2fmu016548@greengenes.cit.cornell.edu> X-Auth: PGPMoose V1.1 PGP bionet.software.acedb iQCVAwUAQbAjA6CIqsWvyF5FAQExLQQAw7xbAaWGKWL7r223DrkENcLBqT7K7eAK aEVEv6vVApGCVJX4SSgWdfJE/2OW5UDAMfPI4apTDunsYtxfgc1qDtrBI0MTlZiR HgWqbn5fazCyM9WCod6quo+v+rUa2V8N9IYVHfyyf0f9bjuhsvQM1uyzxTRjCr9j i0xHUO60Fto= =P4qa