tripal_analysis_admin.tpl.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <h3>Tripal Analysis Administrative Tools Quick Links:</h3>
  2. <ul>
  3. <li><a href="<?php print url("admin/tripal/tripal_analysis/configuration") ?>">Analysis Configuration</a></li>
  4. </ul>
  5. <h3>Module Description:</h3>
  6. <p>The Tripal Analysis module provides a generic analysis content type that is intended to be
  7. used when a more specialized analysis module does not exist. Because it is generic, it does not
  8. provide any visualization or data loading tools for analysis data. Specialized analysis modules,
  9. such as the Tripal Analysis Blast or Tripal Analysis KEGG modules provide loading and custom
  10. visualizations for the analysis results. These modules must be installed separately.
  11. </p>
  12. <h3>Setup Instructions:</h3>
  13. <p>After installation of the analysis module or any specialized analysis module. The following tasks should be performed
  14. <ol>
  15. <li><p><b>Set Permissions</b>: Each analysis module supports the Drupal user permissions interface for
  16. controlling access to the content and functions. These permissions include viewing,
  17. creating, editing or administering of
  18. analysis content. The default is that only the original site administrator has these
  19. permissions. You can <a href="<?php print url('admin/user/roles') ?>">add roles</a> for classifying users,
  20. <a href="<?php print url('admin/user/user') ?>">assign users to roles</a> and
  21. <a href="<?php print url('admin/user/permissions') ?>">assign permissions</a> for the analysis content to
  22. those roles. For a simple setup, allow anonymous users access to view organism content and
  23. allow the site administrator all other permissions.</p></li>
  24. <li><p><b>Create Analysis</b>: An analysis should be <a href="<?php print url('node/add') ?>">created</a> before data is imported into
  25. chado. The generic analysis type should only be used when a more specialized analysis module
  26. (e.g. Tripal Analysis Blast module) does not already exists. All data imported into
  27. Chado should be associated with an analysis.
  28. <li><p><b>Sync Analyses</b>: If Chado has preloaded analyses then you can sync those. This process is what
  29. creates the pages for viewing an analysis on the site. Analyses can be synced using the
  30. <a href="<?php print url('admin/tripal/tripal_analysis/configuration') ?>">Analysis Configuration page</a>.
  31. However, syncing an analyses will always create a generic analysis content type. If you would like
  32. to use a specialized analysis module for visualization of data then do not sync the analysis but recreate it
  33. using the appropriate specialized analysis content type.</p></li>
  34. </ol>
  35. </p>
  36. <h3>Features of this Module:</h3>
  37. <p>Aside from providing a generic content type the Tripal Analysis module also provides the following functionality
  38. <ul>
  39. <li><p><b>Basic Analysis Lookup View</b>: This module provides a basic <a href="<?php print url('analyses') ?>">analysis search
  40. tool</a> for finding or listing analyses in Chado. It does not require indexing for Drupal searching but relies
  41. on Drupal Views. <a href="http://drupal.org/project/views">Drupal Views</a> must be installed. </p></li>
  42. </ul>
  43. </p>
  44. <h3>Page Customizations</h3>
  45. <p>There are several ways to customize the look-and-feel for the way Chado data is presented through Tripal.
  46. Below is a description of several methods. These methods may be used in conjunction with one another to
  47. provide fine-grained control.
  48. <ul>
  49. <li><p><b>Integration with Drupal Panels</b>: <a href="http://drupal.org/project/views">Drupal Panels</a>
  50. allows for customization of a page layout if you don\'t want to do PHP/Javascript/CSS programming.
  51. Tripal comes with pre-set layouts for analysis pages. However,
  52. Panels become useful if you prefer a layout that is different from the pre-set layouts. Chado content
  53. is provided to Panels in the form of Drupal "blocks" which you can then place anywhere on a page using the
  54. Panel\'s GUI.</p></li>
  55. <li><p><b>Drupal\'s Content Construction Kit (CCK)</b>: the
  56. <a href="http://drupal.org/project/cck">Content Construction Kit (CCK) </a> is a powerful way to add non-Chado content
  57. to any page without need to edit template files or knowing PHP. You must first download and install CCK.
  58. With CCK, the site administartor can create a new field to appear on the page. For example, currently,
  59. the Chado publication module is not yet supported by Tripal. Therefore, the site administrator can add a text
  60. field to the analysis pages. This content is not stored in Chado, but will appear on the analysis page. A field
  61. added by CCK will also appear in the form when editing a analysis to allow users to manually enter the appropriate
  62. text. If the default pre-set layout and themeing for Tripal is used, it is better to create the CCK element,
  63. indicate that it is not to be shown (using the CCK interface), then manually add the new content type
  64. where desired by editing the templates (as described below). If using Panels, the CCK field can be added to the
  65. location desired using the Panels interface.</p></li>
  66. <li><p><b>Drupal Node Templates</b>: The Tripal packages comes with a "theme_tripal" directory that contains the
  67. themeing for Chado content. The analysis module has a template file for analysis "nodes" (Tripal analysis pages). This file
  68. is named "node-chado_analysis.tpl.php", and provides javascript, HTML and PHP code for display of the analysis
  69. pages. Specialized analysis modules will have their own template files as well, such as "node-chado_analysis-blast.tpl.php" for the
  70. Tripal Analysis Blast module. You can edit the template file to control which types of information (or which analysis "blocks") are displayed
  71. for analysis. Be sure to
  72. copy these template to your primary theme directory for editing. Do not edit them in the "theme_tripal" directory as
  73. future Tripal updates may overwrite your customizations. See the <a href="http://tripal.sourceforge.net/">Tripal website </a>
  74. for instructions on how to access variables and other Chado content within the template file.</p></li>
  75. <li><p><b>Analysis "Block" Templates</b>: In the "theme_tripal" directory are subdirectories named after each tripal module (e.g. "tripal_feature", "tripal_library", etc.).
  76. Inside each directory is a set of templates that control distinct types of information for each content type. For example,
  77. there is a "base" template for displaying of data directly from the Chado feature table, and a "references"
  78. template for showing external site references for a feature (data from the feature_dbxref table).
  79. These templates are used both by Drupal blocks
  80. for use in Drupal Panels (as described above) or for use in the default pre-set layout that the node template
  81. provides (also desribed above). Analyses block templates can exist in any of these directories. For example, the Tripal Analysis Unigene
  82. module uses templates in the tripal_analysis_unigene, tripal_organism, and tripal_feature directories. Content for a unigene is then
  83. cusotmizable within each of these contexts.
  84. You can customize block template as you desire. Be sure to copy the
  85. template to your primary theme directory for editing. Do not edit them in the "theme_tripal" directory as
  86. future Tripal updates may overwrite your customizations. See the <a href="http://tripal.sourceforge.net/">Tripal website </a>
  87. for instructions on how to access variables and other Chado content within the template files.</p></li>
  88. </li>
  89. <li><p><b>Adding Links to the "Resources" Sidebar</b>: If you use the pre-set default Tripal layout for theming, you
  90. will see a "Resources" sidebar on each page. The links that appear on the sidebar are automatically generated
  91. using Javascript for all of the analysis "Blocks" that appear on the page. If you want to add additional links
  92. (e.g. a dynamic link to GBrowse for the analysis) and you want that link to appear in the
  93. "Resources" sidebar, simply edit the Drupal Node Template (as described above) and add the link to the
  94. section at the bottom of the template file where the resources section is found.</p></li>
  95. </ul>
  96. </p>