Question: Finding File Format Of Data Item
0
gravatar for Kelly Vincent
8.3 years ago by
Kelly Vincent • 340
Kelly Vincent • 340 wrote:
Begin forwarded message:
• 568 views
ADD COMMENT • link • modified 8.3 years ago by James Taylor ♦ 470 • written 8.3 years ago by Kelly Vincent • 340
0
gravatar for James Taylor
8.3 years ago by
James Taylor ♦ 470
United States
James Taylor ♦ 470 wrote:
In theory, the correct attribute should be "$input1.extension". Let us know if that doesn't work though.
ADD COMMENT • link written 8.3 years ago by James Taylor ♦ 470
0
gravatar for Jeremy Goecks
8.3 years ago by
Jeremy Goecks • 2.2k
Jeremy Goecks • 2.2k wrote:
Hi Belinda, The condition you want to use is this: #if isinstance( $input1.datatype, $__app__.datatypes_registry.get_data type_by_extension('interval').__class__): You can see this example in context by looking at the XML tool definition file for the intersect tool, intersect.xml Let us know if this doesn't solve your problem. Best, J.
ADD COMMENT • link written 8.3 years ago by Jeremy Goecks • 2.2k
That solved the first problem. But I would like to also put a conditional on another parameter again based on the datatype. Using format="interval" or the isinstance as above, neither works. Is it possible? Belinda
ADD REPLY • link written 8.3 years ago by Belinda M. Giardine • 40
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: 179 users visited in the last hour