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, email@example.com wrote:
Date: Wed, 19 Nov 2008 13:45:24 -0500 From: Assaf Gordon firstname.lastname@example.org Subject: [galaxy-user] Using user name in a tool's XML To: email@example.com Message-ID: 49245EC4.firstname.lastname@example.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed
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?
<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.