Question: Default Data For A Tool
0
gravatar for alex
6.6 years ago by
alex20
alex20 wrote:
Hi, Is there a way to specify default data for a tool, maybe inside an xml? Alex
• 655 views
ADD COMMENTlink modified 6.6 years ago by Jennifer Hillman Jackson25k • written 6.6 years ago by alex20
0
gravatar for Jennifer Hillman Jackson
6.6 years ago by
United States
Jennifer Hillman Jackson25k wrote:
Hello Alex, Do you mean a default dataset (that a user can modify or never modify) or default form entry data? If default form entry data, then you can use the <param> tag set with "value", as described in this wiki: http://wiki.g2.bx.psu.edu/Admin/Tools/Tool%20Config%20Syntax#A.3Cparam .3E_tag_set Looking at existing tools that have default form data can provide good examples. For instance, the tool: galaxy-central / tools / filters / remove_beginning.xml See the content in <param value="X"/> line 5 below 1 <tool id="Remove beginning1" name="Remove beginning"> 2 <description>of a file</description> 3 remove_beginning.pl $input $num_lines $out_file1 4 <inputs> 5 <param name="num_lines" size="5" type="integer" value="1" label="Remove first" help="lines"/> 6 <param format="txt" name="input" type="data" label="from"/> 7 </inputs> 8 <outputs> 9 <data format="input" name="out_file1" metadata_source="input"/> 10 </outputs> 12 <tests> 13 <test> 14 <param name="num_lines" value="5"/> 15 <param name="input" value="1.bed"/> 16 17 </test> 18 </tests> 19 <help> Hopefully this helps. If not, write back, or even better, add in some clarification and post a brand new question/thread to the galaxy-dev@bx.psu.edu mailing list (the best list for development questions): http://wiki.g2.bx.psu.edu/Support#Mailing_Lists Jen Galaxy team -- Jennifer Jackson http://galaxyproject.org
ADD COMMENTlink written 6.6 years 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: 179 users visited in the last hour