-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from tripal/v2-issue201-blastForms
Some substantial fixes to blast forms but NOT COMPLETELY Fixed
- Loading branch information
Showing
27 changed files
with
59,039 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Form definition of BLASTp program. | ||
*/ | ||
|
||
namespace Drupal\tripal_blast\Services; | ||
|
||
use Drupal\tripal_blast\Services\TripalBlastProgramHelper; | ||
|
||
/** | ||
* BLASTp program class. | ||
*/ | ||
class TripalBlastProgramBlastp { | ||
const BLASTp = 'blastp'; | ||
|
||
/** | ||
* Advanced field names used - refer to this value when | ||
* validating and submitting fields under advanced options. | ||
*/ | ||
public function formFieldNames() { | ||
// Keys match field names used in form definition below. | ||
$field_name_validator = []; | ||
return $field_name_validator; | ||
} | ||
|
||
/** | ||
* Adds the BLASTp Advanced Options to the passed in form. | ||
* This form function is meant to be called within another form definition. | ||
* | ||
* @param $blast_cache | ||
* BLAST job history to reference information information contained. | ||
* | ||
* @return array | ||
* Additional form field definitions. | ||
*/ | ||
public function formOptions($blast_cache) { | ||
$blast = self::BLASTp; | ||
|
||
// Edit and Resubmit functionality. | ||
// We want to pull up the details from a previous blast and fill them in as defaults | ||
// for this blast. | ||
$options = (isset($blast_cache)) ? $blast_cache : []; | ||
$defaults = TripalBlastProgramHelper::programGetDefaultValues($options, $blast); | ||
|
||
$form_alter = []; | ||
|
||
return $form_alter; | ||
} | ||
|
||
/** | ||
* Map advanced options specific to this program to BLAST keywords. | ||
* | ||
* @param $advanced_field_names | ||
* Values set from form ($form_state). | ||
* | ||
* @return array | ||
* Form values mapped to BLAST keywords. | ||
*/ | ||
public function formFieldBlastKey($advanced_field_values) { | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Form definition of BLASTx program. | ||
*/ | ||
|
||
namespace Drupal\tripal_blast\Services; | ||
|
||
use Drupal\tripal_blast\Services\TripalBlastProgramHelper; | ||
|
||
/** | ||
* BLASTx program class. | ||
*/ | ||
class TripalBlastProgramBlastx { | ||
const BLASTx = 'blastx'; | ||
|
||
/** | ||
* Advanced field names used - refer to this value when | ||
* validating and submitting fields under advanced options. | ||
*/ | ||
public function formFieldNames() { | ||
// Keys match field names used in form definition below. | ||
$field_name_validator = []; | ||
return $field_name_validator; | ||
} | ||
|
||
/** | ||
* Adds the BLASTx Advanced Options to the passed in form. | ||
* This form function is meant to be called within another form definition. | ||
* | ||
* @param $blast_cache | ||
* BLAST job history to reference information information contained. | ||
* | ||
* @return array | ||
* Additional form field definitions. | ||
*/ | ||
public function formOptions($blast_cache) { | ||
$blast = self::BLASTx; | ||
|
||
// Edit and Resubmit functionality. | ||
// We want to pull up the details from a previous blast and fill them in as defaults | ||
// for this blast. | ||
$options = (isset($blast_cache)) ? $blast_cache : []; | ||
$defaults = TripalBlastProgramHelper::programGetDefaultValues($options, $blast); | ||
|
||
$form_alter = []; | ||
return $form_alter; | ||
} | ||
|
||
/** | ||
* Map advanced options specific to this program to BLAST keywords. | ||
* | ||
* @param $advanced_field_names | ||
* Values set from form ($form_state). | ||
* | ||
* @return array | ||
* Form values mapped to BLAST keywords. | ||
*/ | ||
public function formFieldBlastKey($advanced_field_values) { | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Form definition of tBLASTn program. | ||
*/ | ||
|
||
namespace Drupal\tripal_blast\Services; | ||
|
||
use Drupal\tripal_blast\Services\TripalBlastProgramHelper; | ||
|
||
/** | ||
* tBLASTn program class. | ||
*/ | ||
class TripalBlastProgramTblastn { | ||
const tBLASTn = 'tblastn'; | ||
|
||
/** | ||
* Advanced field names used - refer to this value when | ||
* validating and submitting fields under advanced options. | ||
*/ | ||
public function formFieldNames() { | ||
// Keys match field names used in form definition below. | ||
$field_name_validator = []; | ||
return $field_name_validator; | ||
} | ||
|
||
/** | ||
* Adds the tBLASTn Advanced Options to the passed in form. | ||
* This form function is meant to be called within another form definition. | ||
* | ||
* @param $blast_cache | ||
* BLAST job history to reference information information contained. | ||
* | ||
* @return array | ||
* Additional form field definitions. | ||
*/ | ||
public function formOptions($blast_cache) { | ||
$blast = self::tBLASTn; | ||
|
||
// Edit and Resubmit functionality. | ||
// We want to pull up the details from a previous blast and fill them in as defaults | ||
// for this blast. | ||
$options = (isset($blast_cache)) ? $blast_cache : []; | ||
$defaults = TripalBlastProgramHelper::programGetDefaultValues($options, $blast); | ||
|
||
$form_alter = []; | ||
|
||
return $form_alter; | ||
} | ||
|
||
/** | ||
* Map advanced options specific to this program to BLAST keywords. | ||
* | ||
* @param $advanced_field_names | ||
* Values set from form ($form_state). | ||
* | ||
* @return array | ||
* Form values mapped to BLAST keywords. | ||
*/ | ||
public function formFieldBlastKey($advanced_field_values) { | ||
return []; | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
tests/fixtures/Chlamydomonas_reinhardtii_v5.6/Chlamydomonas_reinhardtii_v5.6.nhd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
10108755045 | ||
106631889149 | ||
11680583722 | ||
122348076936 | ||
123157600146 | ||
133201802923 | ||
133495088526 | ||
13388237823 | ||
141955375240 | ||
14436416117 | ||
14687958800 | ||
148257954821 | ||
14972553776 | ||
159893002343 | ||
17272891335 | ||
176626450533 | ||
180334159331 | ||
192257222211 | ||
202836436513 | ||
209573540437 | ||
21471786988 | ||
21930322904 | ||
220749827215 | ||
222648923514 | ||
249497081312 | ||
253753000153 | ||
254996107652 | ||
271782184127 | ||
278570533441 | ||
282813072951 | ||
286405721439 | ||
287847679634 | ||
29827764759 | ||
316168056929 | ||
317436949018 | ||
32350981650 | ||
32526932432 | ||
325350046620 | ||
340419494324 | ||
35518735411 | ||
35770766810 | ||
367450593917 | ||
36831123715 | ||
368561127048 | ||
374024658030 | ||
380330989942 | ||
403246447016 | ||
411547853319 | ||
420767001647 | ||
47385183422 | ||
63887213144 | ||
73359789128 | ||
83902513038 | ||
85684198425 |
Binary file added
BIN
+65 Bytes
tests/fixtures/Chlamydomonas_reinhardtii_v5.6/Chlamydomonas_reinhardtii_v5.6.nhi
Binary file not shown.
Binary file added
BIN
+2.66 KB
tests/fixtures/Chlamydomonas_reinhardtii_v5.6/Chlamydomonas_reinhardtii_v5.6.nhr
Binary file not shown.
Binary file added
BIN
+748 Bytes
tests/fixtures/Chlamydomonas_reinhardtii_v5.6/Chlamydomonas_reinhardtii_v5.6.nin
Binary file not shown.
Binary file added
BIN
+248 Bytes
tests/fixtures/Chlamydomonas_reinhardtii_v5.6/Chlamydomonas_reinhardtii_v5.6.nog
Binary file not shown.
Oops, something went wrong.