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

Annotation of /FigWebPages/Attributes.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : redwards 1.1 <h1 style="text-align: center">Attributes</h1>
2 :    
3 :     <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>
4 :    
5 :     <p>Most people should read the first section and ignore the second section.</p>
6 :    
7 :     <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>
8 :    
9 :     <h2>Non-technical Section</h2>
10 :    
11 :     <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>
12 :    
13 :     <p>You can easily see the tag value pairs in action in the following places:</p>
14 :     <ol>
15 :     <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>
16 :     <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>
17 :     <li>The spreadsheet page. You can color by PIRSF, and more will be coming, soon.</li>
18 :     </ol>
19 :    
20 :     <h2>Technical stuff</h2>
21 :    
22 :     <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>
23 :    
24 :     <p>There are now four base methods for handling attributes:</p>
25 :     <ol>
26 :     <li>add_attribute - to add a new attribute to an object</li>
27 :     <li>delete_attribute - to remove an existing attribute from an object</li>
28 :     <li>change_attribute - to modify an existing attribute</li>
29 :     <li>get_attributes - to get attributes for an object</li>
30 :     </ol>
31 :    
32 :    
33 :     <p>In addition, there are some methods that make specific calls I am using:</p>
34 :     <ol>
35 :     <li>get_tags - get tags for either all known objects or a selected type of object (peg, rna, genome, etc)</li>
36 :     </ol>
37 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3