Sfoglia il codice sorgente

changes to blast admin and services

prateekgta 9 anni fa
parent
commit
67ac714599
4 ha cambiato i file con 537 aggiunte e 460 eliminazioni
  1. BIN
      .DS_Store
  2. BIN
      includes/.DS_Store
  3. 18 0
      includes/blast_ui.admin.inc
  4. 519 460
      includes/blast_ui.services.inc

BIN
.DS_Store


BIN
includes/.DS_Store


+ 18 - 0
includes/blast_ui.admin.inc

@@ -29,6 +29,21 @@ function blast_ui_admin_form($form, $form_state) {
     '#default_value' => variable_get('blast_threads', 1),
   );
   
+   $form['general']['eVal']= array(
+    '#type' => 'textfield',
+    '#title' => t('e-Value (Expected Threshold)'),
+    '#description' => t('Expected number of chance matches in a random model. This number should be give in a decimal format.'),
+     '#default_value' => variable_get('eVal', 0.001),
+    //'#default_value' => variable_get('blast_threads', 1),
+  );
+  
+  $form['general']['qRange']= array(
+    '#type' => 'textfield',
+    '#title' => t('Max matches in a query range'),
+    '#description' => t('Limit the number of matches to a query range. This option is useful if many strong matches to one part of a query may prevent BLAST from presenting weaker matches to another part of the query.'),
+    '#default_value' => variable_get('qRange', 0),
+  );
+  
   $form['file_upload'] = array(
     '#type' => 'fieldset',
     '#title' => 'Allow File Upload',
@@ -149,6 +164,9 @@ function blast_ui_admin_form_submit($form, $form_state) {
   variable_set('blast_path', $form_state['values']['blast_path']);
   variable_set('blast_threads', $form_state['values']['blast_threads']);
   
+  variable_set('eVal', $form_state['values']['eVal']);
+  variable_set('qRange', $form_state['values']['qRange']);
+  
   variable_set('blast_ui_allow_query_upload', $form_state['values']['query_upload']);	
   variable_set('blast_ui_allow_target_upload', $form_state['values']['target_upload']);
   

File diff suppressed because it is too large
+ 519 - 460
includes/blast_ui.services.inc


Some files were not shown because too many files changed in this diff