瀏覽代碼

Added help & configure links to module

Lacey Sanderson 10 年之前
父節點
當前提交
0ca91becb2
共有 3 個文件被更改,包括 60 次插入3 次删除
  1. 1 0
      blast_ui.info
  2. 30 3
      blast_ui.module
  3. 29 0
      theme/blast_help.tpl.php

+ 1 - 0
blast_ui.info

@@ -1,5 +1,6 @@
 name = BLAST UI
 description = Provides a user interface to allow your users to utilize NCBI's BLAST+ on your server
+configure = admin/tripal/extension/tripal_blast/blast_ui
 project = tripal_blast
 package = Tripal Extensions
 core = 7.x

+ 30 - 3
blast_ui.module

@@ -114,15 +114,27 @@ function blast_ui_menu() {
     'type' => MENU_CALLBACK,
   );
 
-  // BLAST Admin
-  $items['admin/tripal/extension/blast_ui'] = array(
-    'title' => 'BLAST User Interface',
+  // BLAST Admin  
+  $items['admin/tripal/extension/tripal_blast'] = array(
+    'title' => 'Tripal BLAST User Interface',
     'description' => 'Provides an interface allowing users to execute their own BLASTs.',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('blast_ui_admin_form'),
     'access arguments' => array('administer tripal'),
     'type' => MENU_NORMAL_ITEM,
   );
+  $items['admin/tripal/extension/tripal_blast/blast_ui'] = array(
+    'title' => 'BLAST UI',
+    'type' => MENU_DEFAULT_LOCAL_TASK,
+  );
+
+  $items['admin/tripal/extension/tripal_blast/help'] = array(
+    'title' => 'Help',
+    'page callback' => 'theme',
+    'page arguments' => array('blast_help'),
+    'access arguments' => array('administer tripal'),
+    'type' => MENU_LOCAL_TASK,
+  );
 
   return $items;
 }
@@ -154,6 +166,12 @@ function blast_ui_theme() {
     'path' => "$path/theme",
   );
 
+  // Module Help
+  $items['blast_help'] = array(
+    'template' => 'blast_help',
+    'path' => "$path/theme",
+  );
+
   // Menu Information Pages
   // These are only seen if the user has disabled the all-in-one
   // or by query type forms.
@@ -173,6 +191,15 @@ function blast_ui_theme() {
   return $items;
 }
 
+/**
+ * Implements hook_help().
+ */
+function blast_ui_help($path, $arg) {
+  if ($path == 'admin/help#blast_ui') {
+    return theme('blast_help');
+  }
+}
+
 /**
  * Facilitate presenting the result of the blast search
  *

+ 29 - 0
theme/blast_help.tpl.php

@@ -0,0 +1,29 @@
+<?php
+/**
+ * This template displays the help page for the BLAST UI
+ */
+?>
+
+<h3>Module Description</h3>
+<p>This module provides a basic interface to allow your users to utilize your server's NCBI BLAST+.</p>
+
+<h3>Setup Instructions</h3>
+<ol>
+<li>Install NCBI BLAST+ on your server (Tested with 2.2.26+). There is a <a href="https://launchpad.net/ubuntu/+source/ncbi-blast+">package available for Ubuntu</a> to ease installation. Optionally you can set the path to your BLAST executable <a href="<?php print url('admin/tripal/extension/tripal_blast/blast_ui');?>">in the settings</a>.</li>
+<li>Optionally, create Tripal External Database References to allow you to link the records in your BLAST database to further information. To do this simply go to <a href="<?php print url('admin/tripal/chado/tripal_db/add'); ?>" target="_blank">Tripal > Chado Modules > Databases > Add DB</a> and make sure to fill in the Database prefix which will be concatenated with the record IDs in your BLAST database to determine the link-out to additional information. Note that a regular expression can be used when creating the BLAST database to indicate what the ID is.</li>
+<li><a href="<?php print url('node/add/blastdb');?>">Create "Blast Database" nodes</a> for each dataset you want to make available for your users to BLAST against. BLAST databases should first be created using the command-line <code>makeblastdb</code> program with the <code>-parse_seqids</code> flag.</li>
+<li>It's recommended that you also install the <a href="http://drupal.org/project/tripal_daemon">Tripal Job Daemon</a> to manage BLAST jobs and ensure they are run soon after being submitted by the user. Without this additional module, administrators will have to execute the tripal jobs either manually or through use of cron jobs.</li>
+</ol>
+
+<h3>Highlighted Functionality</h3>
+<ul>
+  <li>Supports <a href="<?php print url('blast/nucleotide/nucleotide');?>">blastn</a>, 
+    <a href="<?php print url('blast/nucleotide/protein');?>">blastx</a>, 
+    <a href="<?php print url('blast/protein/protein');?>">blastp</a> and 
+    <a href="<?php print url('blast/protein/nucleotide');?>">tblastx</a> with separate forms depending upon the database/query type.</li>
+  <li>Simple interface allowing users to paste or upload a query sequence and then select from available databases. Additionally, a FASTA file can be uploaded for use as a database to BLAST against (this functionality can be disabled).</li>
+  <li>Tabular Results listing with alignment information and multiple download formats (HTML, TSV, XML) available.</li>
+  <li>Completely integrated with <a href="<?php print url('admin/tripal/tripal_jobs');?>">Tripal Jobs</a> providing administrators with a way to track BLAST jobs and ensuring long running BLASTs will not cause page time-outs</li>
+  <li>BLAST databases are made available to the module by <a href="<?php print url('node/add/blastdb');?>">creating Drupal Pages</a> describing them. This allows administrators to <a href="<?php print url('admin/structure/types/manage/blastdb/fields');?>">use the Drupal Field API to add any information they want to these pages</a>.</li>
+  <li>BLAST database records can be linked to an external source with more information (ie: NCBI) per BLAST database.</li>
+</ul>