« Lucene Search Fixes | Main | Keyword Searching Now Available »

RNAs Now Work in Sprout

RNAs once again work correctly on the NMPDR Development version.

To test the fix,

  1. Go to the Development Server home page.
  2. Enter fig|100226.1.rna.10 into the search box.
  3. Select the NMPDR button on the results page to view the feature's data.

In SEED, RNAs are displayed on a special, stripped-down version of the protein page called feature.cgi. This script contains copies of the major protein page subtroutines. Unfortunately, these copies do not use Toby's new framework and don't know anything about Sprout. As a result, the Sprout displays a real protein page, and the protein page itself knows which sections are relevant to the current type of feature and which aren't.

This system broke down for two reasons.

  1. New code was added to protein.cgi that automatically terminated the protein page script if a feature wasn't a PEG.
  2. The code in HTML.pm that generated the FID link couldn't tell that it was in SPROUT mode because the lucene search page doesn't have SPROUT=1.

Finally, the genus and species for an RNA feature were not stored in the lucene database. When the lucene search script detects that fact, it will now go directly to the database to rectify the problem.

Comments (2)

leslie:

Cool. Do I have access to the template on which feature.cgi is returned? The only minor fix needed is that the text of the template says that you are looking at a focus protein encoding gene in green, but in this case, it is an RNA encoding gene.

There is also still the issue that the functional annotation is blank while only the alias column of the context table provides the functional identity--in this case, tRNA-Val.

I believe that Gary Olsen had an idea bout how to make the names of the rnas appear as their functional annotation?

Sprout doesn't use feature.cgi, so the template for RNAs is the same as the template for proteins.

There is a template variable called "protein" that is TRUE for proteins and FALSE for other features. Thus, we can use a to have the template do different things depending on the feature type.

Leave a comment

HTML is not allowed in comments; however, if you put in a raw URL (http://www.somewhere.com/page.html) it will automatically be converted to a link.. Also, it is likely your comment will not appear unless you refresh the page manually after posting it.

About

This page contains a single entry from the blog posted on October 17, 2006 7:36 AM.

The previous post in this blog was Lucene Search Fixes.

The next post in this blog is Keyword Searching Now Available.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 4.01