Forráskód Böngészése

fix issue of alignment track cannot display

Jiu9Shen 4 éve
szülő
commit
4f445c08c3

+ 2 - 2
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt.api.inc

@@ -766,11 +766,11 @@ function tripal_jbrowse_mgmt_get_instance_properties($id) {
          else {
            try {
              if (!tripal_jbrowse_mgmt_copy_file($file_file[0], $path, $symbolic_link)) {
-               form_set_error('file_path', 'Failed to copy file' . $file_gz[0] . ' to ' . $path.'. If this track is expected to create by existed file, please have Symbolic Link selected.');
+               form_set_error('file_path', 'Failed to copy file' . $file_file[0] . ' to ' . $path.'. If this track is expected to create by existed file, please have Symbolic Link selected.');
              }
              else {
                if (!tripal_jbrowse_mgmt_copy_file($file_index[0], $path, $symbolic_link)) {
-                 form_set_error('file_path', 'Failed to copy file' . $file_gz[0] . ' to ' . $path.'. If this track is expected to create by existed file, please have Symbolic Link selected.');
+                 form_set_error('file_path', 'Failed to copy file' . $file_index[0] . ' to ' . $path.'. If this track is expected to create by existed file, please have Symbolic Link selected.');
                }
              }
            } catch (Exception $exception) {

+ 1 - 1
tripal_jbrowse_mgmt/includes/tripal_jbrowse_mgmt_commands.inc

@@ -124,7 +124,7 @@ function tripal_jbrowse_mgmt_cmd_add_track($track) {
         'label' => tripal_jbrowse_mgmt_make_slug($track->label),
         'key' => $track->label,
         'urlTemplate' => $directory . '/' . pathinfo($file_name)['basename'],
-        'type' => 'JBrowse/View/Track/Alignment2',
+        'type' => 'JBrowse/View/Track/Alignments2',
       ];
 
       $extension = pathinfo($file_name)['extension'];