Question: Get Options from a File During Job Creation
0
gravatar for bornea27
2.8 years ago by
bornea27 • 20
United States
bornea27 • 20 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 COMMENT • link • modified 2.8 years ago by bensellak.taoufik • 0 • written 2.8 years ago by bornea27 • 20

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 REPLY • link written 2.8 years ago by Hotz, Hans-Rudolf • 1.8k
0
gravatar for bensellak.taoufik
2.8 years ago by
Morroco
bensellak.taoufik • 0 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 COMMENT • link modified 2.8 years ago • written 2.8 years ago by bensellak.taoufik • 0
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