tripal / tripal_blast

Provides an user interface to BLAST on Tripal sites.
https://tripal.github.io/tripal_blast/
5 stars 13 forks source link

Update blastx, tblastn, blastp forms #102

Open laceysanderson opened 6 months ago

laceysanderson commented 6 months ago

If you click on any blast program other than blastn, you get a WSOD error.

Specific links that cause error: overview-nucleotide overview-protein

Example of the error caused: image

This is caused by missing services providing alterations for these forms. To fix we will use TripalBlastProgramBlastn as a template to upgrade the other forms from the previous version: blastx, tblastn, blastp.

laceysanderson commented 6 months ago

Keeping this open as the blastx, tblastn, blastp forms still need their advanced options and the ability to upload files is also broken. That said, I think the functionality that is there does work 🤔 although it's hard to tell because the result page and the blast submission job itself are broken 🙈

laceysanderson commented 5 months ago

More detail for how to finish the upgrade of these forms:

For each of the forms,

  1. Copy the form elements from the Tripal 3 version. The form elements are in the tripal_blast/includes/blast_ui.form_advanced_options.inc file, function matching the pattern blast_ui_BLASTPROGRAM_advanced_options_form where you replace BLASTPROGRAM with one of the three to be upgraded.
  2. Paste them into the $form_alter array in the formOptions() function of the associated Tripal 4 service. These services are found in the src/Services/ directory and include the Blast Program in their name.
  3. Go to the page for that blast program in your Tripal site where the code changes were made and confirm that they show up similarly to how they did in Tripal 3.

Notes