Hi Ryan (and list membres),
In first place, thank you very much for answering my question, and,
moreover, in a detailed way.
I've checked user`s shell and it's bash (the Ubuntu default), and tried sort
command directly on a terminal:
sort -k 4 -t $'\t' -o item3sorted.interval item3.interval
In fact, I've saved Galaxy's history datasets to a folder, sorted them by
using the above command and uploaded again just to follow the screencast...
Thus, I guess there is some other reason for the error.
This week, I've been requested to switch Ubuntu for Fedora, because this
will be the actual compilation we will be using.
If I run over that problem again I'll let the mailing list know... except if
you think this issue deserves more investigation/tests.
Universitat de Barcelona
De: Ry4an Brase [mailto:email@example.com]
Enviado el: lunes, 26 de abril de 2010 7:38
Para: Jordi Rambla
Asunto: Re: [galaxy-dev] grouping and sorting error at a bare local
That error message is coming out of the sort(1) unix command, not from
galaxy/python. In filters/sorter.py the command line being invoked looks
cmd = "sort -f -t $'\t' %s %s %s" % (' '.join(cols),
ignoring the python stuff that $'\t' is supposed to be interpreted as a TAB
character by your shell:
Words of the form $'string' are treated specially. The word
expands to string, with backslash-escaped characters replaced
as specified by the ANSI C standard. Backslash escape sequences,
if present, are decoded as follows:
\a alert (bell)
\e an escape character
\f form feed
\n new line
\r carriage return
\t horizontal tab
(from the bash(1) manpage)
Is it possible the user under which you're running galaxy doesn't have sh or
bash as it's shell?
I've never seen that listed as a requirement, but failure to interpret $'\t'
seems to be what's happening so nearly as I can tell.
On Sat, Apr 24, 2010 at 10:51:19AM +0200, Jordi Rambla wrote:
I'm quite new to Galaxy and Python, but I have near 25 years of
experience at computing (development, databases, web development,
I've performed a local installation in order to learn Galaxy and it's
In order to test the installation, I'm reproducing the Galaxy
screencast tutorials locally.
When reproducing the screencast named : "Finding Exons with the
highest number of nucleotide polymorphisms", at step 4 (grouping and
I'm receiving the following error: "An error occurred running this job:
Sorting input dataset resulted in error: 512: sort: multi-character
Just to doublecheck, I've tried to just sort the dataset on column 4
(Name), and I'm receiving a quite similar error ("An error occurred
job: sort: multi-character tab `$\t'").
I've tried to locate the error source at the configuration/ source
code files. but found nothing promising on filters/sorter.py nor
Thus, I'm asking for a tip on where to look at.
Thanks in advance.
Universitat de Barcelona
galaxy-dev mailing list
Ry4an Brase 612-626-6575
University of Minnesota Supercomputing Institute
for Advanced Computational Research http://www.msi.umn.edu