Question: Data managers tool generates path has extra slash
0
gravatar for yliu41
19 months ago by
yliu4150
yliu4150 wrote:

Hi there,

I am developing a data managers tool to install training data for GlimmerHMM. But now the tool generates file path has extra slash:

Data Manager: glimmer_hmm_trained_dir 
 value  name    path
 human  human   tool-data/human//home/galaxy/galaxy/database/jobs_directory/000/230/dataset_263_files/human

The related section in data_manager_conf.xml as below (reference: https://galaxyproject.org/admin/tools/data-managers/how-to/define/):

<column name="path" output_ref="out_file">
         <move type="directory">
               <source>${path}</source>
               <target base="${GALAXY_DATA_MANAGER_DATA_PATH}">${name}/${path}</target>
           </move>
           <value_translation>${GALAXY_DATA_MANAGER_DATA_PATH}/${name}/${path}</value_translation>
</column>

The extra slash is between ${name} and ${path}. How can I get around this?

Thank you in advance!

Best, Yating

galaxy • 397 views
ADD COMMENTlink modified 19 months ago • written 19 months ago by yliu4150
1
gravatar for yliu41
19 months ago by
yliu4150
yliu4150 wrote:

I found a way to get around this issue by add

<value_translation type="function">abspath</value_translation>
ADD COMMENTlink written 19 months ago by yliu4150

Thanks for sharing back the solution! Jen, Galaxy team

ADD REPLYlink written 19 months ago by Jennifer Hillman Jackson25k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 181 users visited in the last hour