Tripal Feature Administrative Tools Quick Links:'; $text .= "
"; #This module provides an interface for the Chado feature module which stores information related to genomic features. This module provides support for bulk loading of data in FASTA or GFF format, visualization of "feature" pages, editing and updating.
'; $text .= 'After installation of the feature module. The following tasks should be performed
Set Permissions: The feature module supports the Drupal user permissions interface for controlling access to feature content and functions. These permissions include viewing, creating, editing or administering of feature content. The default is that only the original site administrator has these permissions. You can add roles for classifying users, assign users to roles and assign permissions for the feature content to those roles. For a simple setup, allow anonymous users access to view organism content and allow the site administrator all other permissions.
Themeing: Before content from Chado can be visualized the Tripal base theme must be installed. This should have been done prior to this point. But is mentioned here in the event you follow the instructions below and cannot see content. In this case, if you do not see content check that Tripal theming is properly installed
Loading of Ontologies: If you used Tripal to create the Chado database, then you must load ontologies before proceeding. Visit the page to load ontologies and load at least the following ontologies:
Create Organisms: Before adding feature data you must already have the organisms loaded in the database. See the Tripal Organism Admin page for instructions for adding and Syncing organisms.
Create Analysis: Tripal requires that feature data loaded using the Tripal loaders be associated with an analyis. This provides a grouping for the feature data and can be used later to visualize data pipelines. Before loading feature data through the FASTA or GFF loaders you will need to create an analysis for the data.
Create Referring Database Entries: If you would like to associate your feature data with an external reference database, check to ensure that the database record already exists. If not you should add a new database record before importing feature data.
Data Import: if you do not already have an existing Chado database with preloaded data then you will want to import data. You can do so using the Chado perl scripts that come with the normal distribution of Chado or you can use the FASTA loader and GFF loader provided here. If you created the Chado database using Tripal then you\'ll most likely want to use the Tripal loaders. If your data is not condusive for loading with these loaders you may have to write your own loaders.
Sync Features: After data is loaded you need to sync features. This process is what creates the pages for viewing online. Not all features need be synced. For instance, if you have loaded whole genome sequence with fully defined gene models with several features to define a gene and its products (e.g. gene, mRNA, CDS, 5\'UTR, 3\'UTR, etc) you probably only want to create pages for genes or genes and mRNA. You probably do not want a page for a 5\'UTR. Using the Feature Sync page you can sync (or create pages) for the desired feature types.
Set Feature URL: It is often convenient to have a simple URL for each feature page. For example, http://www.mygenomesite.org/[feature], where [feature] is a unique identifier for a feature page. With this, people can easily include links to feature pages of interest. Use the Feature Configuration page to specify whether to use the feature name, unique name or internal ID as the [feature] portion of the URL. Select the one that will guarantee a unique identifier for feature pages.
Indexing: Once all data has been loaded (including analysis data--e.g. blast, interpro, etc.) you can index all feature pages for searching if you want to ues the Drupal default search mechanism. Use the Feature Configuration page to either Index (for the first time) or "Reindex" (after adding new data) the feature pages for searching. Once the site is 100% indexed the pages will be searchable using Drupal\'s full text searching. You can find the percent indexed for the entire site by visiting the Search settings page. Indexing can take quite a while if you have a lot of data
Set Taxonomy: Drupal provides a mechanism for categorizing content to allow for advanced searching. Drupal calls this "Taxonomy", but is essentially categorizing the pages. You can categorize feature pages by their type (e.g. gene, mRNA, contig, EST, etc.) and by the organism to which they belong. This allows for filtering of search results by organism and feature type. Use the Feature Configuration page to set the Taxonomy.
Aside from data loading and feature page setup (as described in the Setup section above), The Tripal feature module also provides the following functionality
Feature Browser: The feature browser is a tabular list of features with links to their feature pages which appears on the organism page. It was created to provide a mechanism to allow site visitors to quickly accesss feature pages when they do not know what to search for. For sites with large numbers of features, this method for finding a specific pages is inadequate, but may still be included to aid new site visitors. This browser can be toggled on or off using the Feature Configuration page
Feature Summary Report: The feature summary report is a pie chart that indicates the types and quantities of feature types (Sequence Ontology terms) that are loaded in the database. It appears on the organism page. The summary can be toggled on or off using the Feature Configuration page
Integration with Drupal Views: Drupal Views is a powerful tool that allows the site administrator to create lists or basic searching forms of Chado content. It provides a graphical interface within Drupal to allow the site admin to directly query the Chado database and create custom lists without PHP programming or customization of Tripal source code. Views can also be created to filter content that has not yet been synced with Druapl in order to protect access to non published data (only works if Chado was installed using Tripal). You can see a list of available pre-existing Views here, as well as create your own.
Basic Feature Lookup View: This module provides a basic feature search tool for finding or listing features in Chado. It does not require indexing for Drupal searching but relies on Drupal Views. Drupal Views must be installed.
Delete Features: This module provides a Delete Feature page for bulk deltions of features. You may delete features using a list of feature names, or for a specific organism or for a specific feature type.
There are several ways to customize the look-and-feel for the way Chado data is presented through Tripal. Below is a description of several methods. These methods may be used in conjunction with one another to provide fine-grained control.
Integration with Drupal Panels: Drupal Panels allows for customization of a page layout if you don\'t want to do PHP/Javascript/CSS programming. Tripal comes with pre-set layouts for feature pages. However, Panels become useful if you prefer a layout that is different from the pre-set layouts. Chado content is provided to Panels in the form of Drupal "blocks" which you can then place anywhere on a page using the Panel\'s GUI.
Drupal\'s Content Construction Kit (CCK): the Content Construction Kit (CCK) is a powerful way to add non-Chado content to any page without need to edit template files or knowing PHP. You must first download and install CCK. With CCK, the site administartor can create a new field to appear on the page. For example, currently, the Chado publication module is not yet supported by Tripal. Therefore, the site administrator can add a text field to the feature pages. This content is not stored in Chado, but will appear on the feature page. A field added by CCK will also appear in the form when editing a feature to allow users to manually enter the appropriate text. If the default pre-set layout and themeing for Tripal is used, it is better to create the CCK element, indicate that it is not to be shown (using the CCK interface), then manually add the new content type where desired by editing the templates (as described below). If using Panels, the CCK field can be added to the location desired using the Panels interface.
Drupal Node Templates: The Tripal packages comes with a "theme_tripal" directory that contains the themeing for Chado content. The feature module has a template file for feature "nodes" (Tripal feature pages). This file is named "node-chado_feature.tpl.php", and provides javascript, HTML and PHP code for display of the feature pages. You can edit this file to control which types of information (or which feature "blocks") are displayed for features. Be sure to copy these template to your primary theme directory for editing. Do not edit them in the "theme_tripal" directory as future Tripal updates may overwrite your customizations. See the Tripal website for instructions on how to access variables and other Chado content within the template file.
Feature "Block" Templates: In the "theme_tripal" directory is a subdirectory named "tripal_feature". Inside this directory is a set of templates that control distinct types of information for features. For example, there is a "base" template for displaying of data directly from the Chado feature table, and a "references" template for showing external site references for a feature (data from the feature_dbxref table). These templates are used both by Drupal blocks for use in Drupal Panels (as described above) or for use in the default pre-set layout that the node template provides (also desribed above). You can customize this template as you desire. Be sure to copy the template to your primary theme directory for editing. Do not edit them in the "theme_tripal" directory as future Tripal updates may overwrite your customizations. See the Tripal website for instructions on how to access variables and other Chado content within the template files.
Adding Links to the "Resources" Sidebar: If you use the pre-set default Tripal layout for theming, you will see a "Resources" sidebar on each page. The links that appear on the sidebar are automatically generated using Javascript for all of the feature "Blocks" that appear on the page. If you want to add additional links (e.g. a dynamic link to GBrowse for the feature) and you want that link to appear in the "Resources" sidebar, simply edit the Drupal Node Template (as described above) and add the link to the section at the bottom of the template file where the resources section is found.