output name of downloaded datasets
Hello, My goal is to introduce, in the xml file of one tool like MACS for example, a supplementary command to redirect the output in another directory (+ creating link between this and the directory of galaxy outputs). But I want to rename my output with the same name that the downloading tools create in this way : GALAXY-NumOfDatasetInHistory[NameOfInput].bed And I don't find where this downloading tool is and so I don't find how create this name. Thanks. julie
Downloading data is handled in lib/galaxywebapps/galaxy/controllers/dataset.py, method display(), which in turn calls this line: -- return data.datatype.display_data(trans, data, preview, filename, to_ext, chunk, **kwd) -- Which, in most cases, calls display_data in lib/galaxy/datatypes/data.py In this method, you can see how the download name is created: -- valid_chars = '.,^_-()[]0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' fname = ''.join(c in valid_chars and c or '_' for c in data.name)[0:150] -- Best, J. On Oct 31, 2012, at 12:37 PM, julie dubois wrote:
Hello,
My goal is to introduce, in the xml file of one tool like MACS for example, a supplementary command to redirect the output in another directory (+ creating link between this and the directory of galaxy outputs). But I want to rename my output with the same name that the downloading tools create in this way : GALAXY-NumOfDatasetInHistory[NameOfInput].bed
And I don't find where this downloading tool is and so I don't find how create this name.
Thanks. julie ___________________________________________________________ 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:
participants (2)
-
Jeremy Goecks
-
julie dubois