Question: Get Options from a File During Job Creation
0
gravatar for bornea27
2.8 years ago by
bornea2720
United States
bornea2720 wrote:

I want to get my tool to quickly read the dataset selected and get options for a param type="select" prior to submitting a job. I am attempting to use a <code file="get_info.py"/> that will return the options but no matter how I try to parse in the inputs variable name in  <param name="bait1" type="select" display="radio" dynamic_options="get_info(input)"/> I get a HistoryDatasetAssociation or NoneType for the input. How can I make it so rather than attempting to bring in the association I am getting the actual dataset.

galaxy • 644 views
ADD COMMENTlink modified 2.8 years ago by bensellak.taoufik0 • written 2.8 years ago by bornea2720

Hi

It is difficult to help without seeing more of your code. Also, have you looked into the 'data_ref' attribute?

Regards, Hans-Rudolf

ADD REPLYlink written 2.8 years ago by Hotz, Hans-Rudolf1.8k
0
gravatar for bensellak.taoufik
2.8 years ago by
Morroco
bensellak.taoufik0 wrote:

Hello,

If i did understand your aime you could define some configfile tags something like :

 

<configfile name="getparamone">

#set paramone = ''

##inside your code to extract your param (cheetah code/python)

paramone ${paramone}

<configfile>

in your command you pass the param as

--configfile ${getparamone}

hope that hepls.

ADD COMMENTlink modified 2.8 years ago • written 2.8 years ago by bensellak.taoufik0
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