Parcourir la source

Ensure directory/index are shown for bam/cram.

Lacey Sanderson il y a 4 ans
Parent
commit
dd009f397d

+ 9 - 3
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt_tracks.form.inc

@@ -67,7 +67,9 @@ function tripal_jbrowse_mgmt_add_track_form($form, &$form_state, $instance_id) {
     '#title' => t('Index File'),
     '#states' => [
       'visible' => [
-        ':input[name="file_type"]' => ['value' => 'vcf'],
+        [':input[name="file_type"]' => ['value' => 'vcf'],],
+        [':input[name="file_type"]' => ['value' => 'bam'],],
+        [':input[name="file_type"]' => ['value' => 'cram'],],
       ],
     ],
   ];
@@ -79,7 +81,9 @@ function tripal_jbrowse_mgmt_add_track_form($form, &$form_state, $instance_id) {
     '#maxlength' => 255,
     '#states' => [
       'invisible' => [
-        ':input[name="file_type"]' => ['value' => 'vcf'],
+        [':input[name="file_type"]' => ['value' => 'vcf'],],
+        [':input[name="file_type"]' => ['value' => 'bam'],],
+        [':input[name="file_type"]' => ['value' => 'cram'],],
       ],
     ],
   ];
@@ -91,7 +95,9 @@ function tripal_jbrowse_mgmt_add_track_form($form, &$form_state, $instance_id) {
     '#maxlength' => 255,
     '#states' => [
       'visible' => [
-        ':input[name="file_type"]' => ['value' => 'vcf'],
+        [':input[name="file_type"]' => ['value' => 'vcf'],],
+        [':input[name="file_type"]' => ['value' => 'bam'],],
+        [':input[name="file_type"]' => ['value' => 'cram'],],
       ],
     ],
   ];