Running jobs as real user and extra_file_path
by Louise-Amélie Schmitt
Hi everyone,
I just wanted to ask how the extra_file_path is handled in case of job
running as the real user since the file_path is only writable by the
galaxy user. Any clue?
Thanks,
L-A
3 years, 8 months
Python ValueError: too many values to unpack
by Matthias De Smet
Hi all,
I’m trying to develop a tool that lets you select a file on the server. I’m using the dynamic_options setting to let Galaxy render a dropdown list of available file.
However, when I try to test the tool in its current form, I get the following error:
<pre>
galaxy.web.framework.decorators ERROR 2016-01-26 13:08:35,649 Uncaught exception in exposed API method:
Traceback (most recent call last):
File "lib/galaxy/web/framework/decorators.py", line 260, in decorator
rval = func( self, trans, *args, **kwargs)
File "lib/galaxy/webapps/galaxy/api/tools.py", line 98, in build
return tool.to_json(trans, kwd.get('inputs', kwd))
File "lib/galaxy/tools/__init__.py", line 2602, in to_json
populate_state(trans, self.inputs, state_inputs, state_errors, params.__dict__)
File "lib/galaxy/tools/__init__.py", line 2471, in populate_state
state[input.name] = input.get_initial_value(trans, context, history=history)
File "lib/galaxy/tools/parameters/basic.py", line 984, in get_initial_value
value = [ optval for _, optval, selected in options if selected ]
ValueError: too many values to unpack
</pre>
My tool xml looks like this:
<pre>
<tool id="archivetolibrary" name="Copy files" version="0.1.0">
<description>from the archive to a data library</description>
<code file="list_files.py"/>
<command interpreter="bash">
test.sh > $log
</command>
<inputs>
<param name="archive_source" type="select" display="radio" label="Choose source archive">
<options from_file="archives.loc">
<column name="name" index="0"/>
<column name="value" index="1"/>
</options>
</param>
<param name="query" type="text" label="Search for files"/>
<param name="selected_file" type="select" label="Choose your file" dynamic_options="list_files(archive_source,query)"/>
</inputs>
<outputs>
<data name="log" format="txt" label="${tool.name} on ${on_string}"></data>
</outputs>
<tests>
<test>
</test>
</tests>
<help>
This tool copies data from and archive folder to your history. Keep in mind this folder MUST be readable by Galaxy in order for this tool to work.
</help>
</tool>
</pre>
and the script called in the “code” tag looks like this
<pre>
def list_files(dir,query): listing=[]
for fname in listdir(dir):
fullpath = path.join(dir, fname) #only select datafiles, not md5 checksums
if path.isfile(fullpath) and not fullpath.endswith(".md5"):
listing.append( fname )
return listing
</pre>
This script should return a list with filenames that should be displayed in the dropdown list.
I’m tracking Galaxy release 15.10, running on a Ubuntu 14.04.3 server
Thanks for your help!
Matthias
4 years, 3 months
Re: [galaxy-dev] how to create users through Galaxy API?
by Martin Čech
Hi,
you specify username, password and email in the body (payload) of the POST
as Key:Value pairs.
Code from the API method: (
https://galaxy-central.readthedocs.org/en/latest/_modules/galaxy/webapps/...)
username = payload[ 'username' ] email = payload[ 'email' ] password =
payload[ 'password' ]
There are also other conditions that need to be fulfilled (e.g. user
creation has to be turned on in the configuration) - you will find these
when you look at the source code of the method (because the documentation
is not perfect yet, sorry).
M.
On Sun, Dec 29, 2013 at 11:22 PM, xlwang <xlwang_0903(a)163.com> wrote:
> hi,
> I still have some confusion.
> post /api/users , when i use postman, it seems like this:
>
>
> No other parameters? How to confirm the new user's information?Such as
> user name, password.
> Can you give me a example please?Thank you!
>
> At 2013-12-30 06:04:15,"Martin Čech" <marten(a)bx.psu.edu> wrote:
>
> Hello,
>
> to create a user through API you send a POST request to /api/users
>
> More information about User API here:
>
>
> https://galaxy-central.readthedocs.org/en/latest/lib/galaxy.webapps.galax...
>
> Martin
>
>
> On Fri, Dec 27, 2013 at 5:11 AM, xlwang <xlwang_0903(a)163.com> wrote:
>
>> hello,
>> I want to create users through Galaxy API.For example, I can get users
>> information through url like this(use postman):
>> http://localhost:8080/api/users?key=my_key
>> But how to create a user?
>>
>>
>>
>> ___________________________________________________________
>> 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/
>>
>> To search Galaxy mailing lists use the unified search at:
>> http://galaxyproject.org/search/mailinglists/
>>
>
>
>
>
4 years, 4 months
tabular file displayed without tabs
by Ryan G
Hi - I have a tools that generates a tab-delimited text file as output.
when I click the eye icon to view the data, all the fields are compressed
as if there were no tabs. If I expand the history view, the little preview
window shows the contents as tabbed. I've verified that the spaces are
indeed '\t' tab characters. Why would Galaxy not display this file as a
tab-delimited file?
4 years, 7 months
not sure what I can do about this...
by Fernandez Edgar
Hello Gents,
So someone asked me to install the package Prokka on Galaxy.
I did and everything went well!
However, the following error comes up, when they try to work with Prokka:
Fatal error: Exit code 2 ()
[tbl2asn] This copy of tbl2asn is more than a year old. Please download the current version.
[20:20:53] Could not run command: tbl2asn -V b -a r10k -l paired-ends -M n -N 1 -y 'Annotated using prokka 1.10 from http://www.vicbioinformatics.com' -Z outdir\/prokka\.err -i outdir\/prokka\.fsa 2> /dev/null
According to a google search, there is very little on this error.
And it has been around for a while but I didn't find a posted solution.
Any suggestions?
Cordialement / Regards,
Edgar Fernandez
System Administrator (Linux)
Direction Générale des Technologies de l'Information et de la Communication
* Bur. : 1-514-343-6111 poste 16568
Université de Montréal
PAVILLON ROGER-GAUDRY, bureau X-218
4 years, 7 months
atlas 3.10 IUC error
by Olivier CLAUDE
Hello again,
I am truly sorry to bother everyone again but i still experience problems:
This time with atlas 3.10 owned by iuc
At the beginning without modifying anything, the error log was saying " mkdir : cannot create directory ATLAS/build : No such file or directory"
After that I tried to modify the tool_dependencies.xml :
L48 : "mkdir ATLAS/build &&" changed to "mkdir build &&"
The error is "/bin/sh: 4 : cannot open /host/static_full_blas_lapack.diff: No such file"
I can see it, if I go with a web browser, but I cannot download it manually nor click on it without crashing the web browser.
Any idea?
Thanks again,
M Olivier CLAUDE- PhD Student
INSERM/UPMC UMRS ICAN 1166 – Equipe 2
Faculté de médecine Pitié-Salpêtrière
91, bld de l'Hôpital - 3ème étage - Porte 305
75013 Paris - FRANCE
4 years, 7 months
Data removal after ftp import.
by Zuzanna K. Filutowska
Dear All,
is there any option to not remove files that has been imported to Galaxy
from FTP directory and to not remove files that haven't been imported
since 3 days?
--
Regards,
--
Zuzanna K. Filutowska, HPC Systems Administrator
Poznan Supercomputing and Networking Center
Institute of Bioorganic Chemistry Polish Academy of Sciences
Seize the day boys! Make your lifes extraordinary! --John Keating
4 years, 9 months
external_chown_script.py and the local job runner
by Peter Cock
On Mon, Jan 25, 2016 at 11:33 AM, Peter Cock <p.j.a.cock(a)googlemail.com> wrote:
> Hello all,
>
> We're currently looking at changing our Galaxy setup to link user accounts
> with Linux user accounts for better cluster integration (running jobs as the
> actual user on SGE). As part of this, we've tried setting up a fresh
> installation on a new VM which has thrown up some issues.
>
> [snip]
We eventually got Galaxy to talk to SGE and submit jobs successfully
as the individual user's Linux account, with external_chown_script.py
being called to handle ownership of the files.
However, we would like to have some jobs (like the upload tool)
configured to run on the Galaxy server itself - and the easiest way
to do that is via the local job runner.
We tried both the "upload1" and "Convert characters1" tools. These
jobs would start and seem to run, but then fail with a file permission
error (I don't have a stack trace to hand). From watching the Galaxy
terminal output from run.sh we could see external_chown_script.py
being called.
As a test, when we disabled the external_chown_script setting in
config/galaxy.ini then the local jobs would work.
When using the local job runner, does Galaxy run the child process
as the Galaxy user (my guess - no chown needed), or as the job
owner's Linux account (calling chown would be needed)?
Thanks,
Peter
4 years, 10 months