[Bio] / FigWebPages / Attributes.html Repository:
ViewVC logotype

View of /FigWebPages/Attributes.html

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1.2 - (download) (as text) (annotate)
Fri Mar 4 18:38:12 2005 UTC (15 years ago) by redwards
Branch: MAIN
Changes since 1.1: +2 -0 lines
Tweaks to attribute editing to the protein.cgi page

<h1 style="text-align: center">Attributes</h1>

<p>I have added attributes to the database in a more significant way. This page is to document those attributes and ways to access/modify them. The page has two sections, a non-technical section for general discussion and overview, and a technical section for behind-the-scenes type information.</p>

<p>Most people should read the first section and ignore the second section.</p>

<p>A comment on nomenclature: I use the term tag/value pairs and attributes interchangeably. Something can have an attribute, and you have to say what that is and what its value is. We also have an idea that an attribute can be a URL, and if so, it should be presented as a URL. So we actually have tag, value, value. You will see this in action. The third element is called URL, but we always check and make sure that it begins http before turning it into a URL, and so we reserve the option of renaming this and making it something else. That will be mentioned here.</p>

<h2>Non-technical Section</h2>

<p>We have extended the notion of tag/value pairs beyond things associated with a peg and into the arena of anything. Any feature such as peg, prophage, rna, insertion element, and so on, can have a tag value pair associated with it. In addition, <em>genomes</em> have tag/value pairs associated with them. In this sense, we can annotate the organisms from which the genomes were derived and begin to ask complex questions of the type "show me all organisms that are motile but don't have any flagellar genes". We are working on this interface.<p>

<p>You can easily see the tag value pairs in action in the following places:</p>
<li>The protein page. Any of the attributes shown with a URL is really a tag value pair. More complex editing of those attributes will follow.</li>
<li>The genome statistics page. Take a look at the updated statistics page. There is also an option to edit (and add) the attributes associated with a genome.</li>
<li>The spreadsheet page. You can color by PIRSF, and more will be coming, soon.</li>

<p>On the protein page, about 3/4 of the way down you see the attributes box. If you have a user set, you will also see an edit attributes button that will allow you to add or edit attributes to the peg.</p>

<h2>Technical stuff</h2>

<p>Rightly or wrongly I moved some of the methods in FIG.pm associated with attributes. I also renamed a couple of them. The old names are still valid, they are just pointers to the new routines. Apparently nothing breaks, but let me know if it does.</p>

<p>There are now four base methods for handling attributes:</p>
<li>add_attribute    - to add a new attribute to an object</li>
<li>delete_attribute - to remove an existing attribute from an object</li>
<li>change_attribute - to modify an existing attribute</li>
<li>get_attributes   - to get attributes for an object</li>

<p>In addition, there are some methods that make specific calls I am using:</p>
<li>get_tags   	     - get tags for either all known objects or a selected type of object (peg, rna, genome, etc)</li>

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3