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 <command interpreter="perl">remove_beginning.pl $input $num_lines
$out_file1</command>
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 <output name="out_file1" file="eq-removebeginning.dat"/>
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
[email protected] mailing list (the best list for development
questions):
http://wiki.g2.bx.psu.edu/Support#Mailing_Lists
Jen
Galaxy team
On 5/10/12 12:12 PM, alex wrote:
Hi,
Is there a way to specify default data for a tool, maybe inside an xml?
Alex
___________________________________________________________
The Galaxy User list should be used for the discussion of
Galaxy analysis and other features on the public server
at usegalaxy.org. Please keep all replies on the list by
using "reply all" in your mail client. For discussion of
local Galaxy instances and the Galaxy source code, please
use the Galaxy Development list:
http://lists.bx.psu.edu/listinfo/galaxy-dev
To manage your subscriptions to this and other Galaxy lists,
please use the interface at:
http://lists.bx.psu.edu/
--
Jennifer Jackson
http://galaxyproject.org
___________________________________________________________
The Galaxy User list should be used for the discussion of
Galaxy analysis and other features on the public server
at usegalaxy.org. Please keep all replies on the list by
using "reply all" in your mail client. For discussion of
local Galaxy instances and the Galaxy source code, please
use the Galaxy Development list:
http://lists.bx.psu.edu/listinfo/galaxy-dev
To manage your subscriptions to this and other Galaxy lists,
please use the interface at:
http://lists.bx.psu.edu/