Shaun, we took this quite easily by a simple tool we added to the toolbox. Just use the xml below as a new tool and you can get file paths of any file you like. Hope it helps, Alex <tool id="filelocator" name="Locate Data in Galaxy Database" version="1.0.1"> <description></description> <command>echo $input > $output</command> <inputs> <param name="input" type="data" label="Data file from history" /> </inputs> <outputs> <data format="tabular" name="output" /> </outputs> <help> **What it does** This tool gives the name of the data file from the history as it is in the galaxy database. This information can be helpful with large files, which can then be downloaded directly, through e.g. ftp from the server. </help> </tool> ________________________________________ Van: galaxy-dev-bounces@lists.bx.psu.edu [galaxy-dev-bounces@lists.bx.psu.edu] namens SHAUN WEBB [swebb1@staffmail.ed.ac.uk] Verzonden: donderdag 20 oktober 2011 17:43 Aan: Nate Coraor CC: galaxy-dev@lists.bx.psu.edu Onderwerp: Re: [galaxy-dev] HOW TO RETRIEVE DATA FROM HISTORY??!! Hi Nate. Could you provide more info on how to run this script. I have a history and dataset name and I want to find the file stored on the server. Thanks Shaun
Thanks Assaf,
This has come up enough times that I've just committed a script that will return the filename if provided a numeric or encoded HDA. I've posted it to the list before as galaxythinger.py, it's in the source as galaxy-dist/scripts/helper.py as of 5919:0f878ea61e98.
It will also decode and encode IDs. More functionality for common sysadmin tasks would be welcomed.
--nate
hope this helps, -gordon
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at:
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at:
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/