AFAIK, both $userId (the user numeric id) and $userEmail are added to the parameters in jobs/__init__.py, so should work...
On Thu, Nov 20, 2008 at 12:00 PM, galaxy-user-request@bx.psu.edu wrote:
Date: Wed, 19 Nov 2008 13:45:24 -0500 From: Assaf Gordon gordon@cshl.edu Subject: [galaxy-user] Using user name in a tool's XML To: galaxy-user@bx.psu.edu Message-ID: 49245EC4.7020402@cshl.edu Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
Is it possible to access the user name inside a tool's XML configuration file ?
I want to pass the user name (the user who executed the job) as an argument to the tool. Is there such a variable?
Something like:
<tool id="mytool" name="foobar"> <command>mytool.sh --file $input --title $input.name --user $galaxy_user</command> ... ...
-- Ross Lazarus, Associate Professor, DACP, Harvard Medical School. Director of Bioinformatics, Channing Laboratory, BWH 181 Longwood Ave., Boston MA 02115, USA.
galaxy-user@lists.galaxyproject.org