Re: [galaxy-dev] DRMAA broken following SGE update. How to fix?

2011-08-23 Thread Chris Cole

BUMP

Does anyone have any idea on this? Our Galaxy is currently out of action 
until this is sorted.

Thanks,

Chris

On 22/08/11 10:08, Chris Cole wrote:

Hi,

Following a recent update to our SGE, DRMAA is failing to load in
galaxy. The reason being that the path has changed. How do I change the
path for galaxy to find the libdrmaa module?
Cheers,

Chris




___
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/


Re: [galaxy-dev] DRMAA broken following SGE update. How to fix?

2011-08-23 Thread remy d1
Hi Chris,

Take a look at this file :
lib/galaxy/jobs/runners/drmaa.py
in your galaxy directory.

You can export a path for binaries here. For example :
export PATH=$PATH:/opt/bin/
before export PYTHONPATH


Moreover, do not forget other path values in your service script or in your
galaxy user profile.

Hope this help.



2011/8/23 Roman Valls brainst...@nopcode.org

 Did you adjust the SGE_ROOT environment variable to point to the
 libdrmaa for SGE (probably /opt/sge_62u5_gr/bin/lx24-amd64) ?

 This is of course just a guess, could you please provide some error
 messages/logs ?

 Cheers,
 Roman

 On 2011-08-23 10:20, Chris Cole wrote:
  BUMP
 
  Does anyone have any idea on this? Our Galaxy is currently out of action
  until this is sorted.
  Thanks,
 
  Chris
 
  On 22/08/11 10:08, Chris Cole wrote:
  Hi,
 
  Following a recent update to our SGE, DRMAA is failing to load in
  galaxy. The reason being that the path has changed. How do I change the
  path for galaxy to find the libdrmaa module?
  Cheers,
 
  Chris
 
 
 
  ___
  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/
 ___
 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/

___
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/

[galaxy-dev] Brad's GFF parser in a Biopython repository

2011-08-23 Thread Peter Cock
Hi Brad,

I managed to do a git script to select out the GFF code and tests from
your bcbb repository and get it into the Biopython source tree. The
folder changes made it interesting ;)

Input: https://github.com/chapmanb/bcbb (master branch)

Output: https://github.com/peterjc/biopython/tree/brad_gff

The tests pass, but that is as far as I have got with this. Brad,
could you have a look at this new branch for sanity checking please?

Peter
___
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/


[galaxy-dev] Fwd: [SOLVED] Re: DRMAA broken following SGE update. How to fix?

2011-08-23 Thread Roman Valls
I'm glad it worked Chris, I'm keeping thread on the mailing list for
future reference...

 Original Message 
Subject: Re: [galaxy-dev] DRMAA broken following SGE update. How to fix?
Date: Tue, 23 Aug 2011 11:56:13 +0100
From: Chris Cole ch...@compbio.dundee.ac.uk
Organization: University of Dundee
To: Roman Valls brainst...@nopcode.org

Hi,

The SGE_ROOT variable was the same as always, but it turns out I had a
DRMAA_LIBRARY_PATH path that was still pointing to the old path. It's
such a long time since I set up galaxy that I'd forgotten about it.
Changed it and Galaxy is working again.

Thanks to you and Remy for pointing me in the right direction.

Chris

On 23/08/11 09:32, Roman Valls wrote:
 Did you adjust the SGE_ROOT environment variable to point to the
 libdrmaa for SGE (probably /opt/sge_62u5_gr/bin/lx24-amd64) ?

 This is of course just a guess, could you please provide some error
 messages/logs ?

 Cheers,
 Roman

 On 2011-08-23 10:20, Chris Cole wrote:
 BUMP

 Does anyone have any idea on this? Our Galaxy is currently out of action
 until this is sorted.
 Thanks,

 Chris

 On 22/08/11 10:08, Chris Cole wrote:
 Hi,

 Following a recent update to our SGE, DRMAA is failing to load in
 galaxy. The reason being that the path has changed. How do I change the
 path for galaxy to find the libdrmaa module?
 Cheers,

 Chris



 ___
 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/
 ___
 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/

___
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/


[galaxy-dev] visualization tool

2011-08-23 Thread shashi shekhar
Hi All,


 I want to add my own Visualization tool in  local instance of galaxy  .how
i will do it in galaxy ? i want to integrate jmol  in galaxy.

Regards
shashi
___
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/

Re: [galaxy-dev] Boolean options in toolconfigs: yes/no vs. give/omit flag.

2011-08-23 Thread Samuel Lampa

On 08/23/2011 03:47 AM, Peter Cock wrote:

On Mon, Aug 22, 2011 at 5:29 PM, Samuel Lampa
samuel.la...@scilifelab.uu.se  wrote:

Hi,

I'm trying to parse the XML toolconfig format, for generating a lightweight
command config wizard in an Eclipse based product.

I wonder: Boolean parameters for some tools (such as the emboss/textsearch
one), seems to allow always giving the parameter's flag at all times, and
just change the following value between yes and no for these params,
like:

textsearch -caseinsensitive yes
  or
textsearch -caseinsensitive no

On the other hand, I guess there are many tools which tell such boolean
options just by giving the flag itself, so it would by analogy be:

textsearch -caseinsensitive
  or
textsearch

My question is, how can I see the difference between these two cases, in the
tool config file? (Unfortunately I don't know any of the wrapped tools good
enough to know where to look for a flag of the latter kind).

That will be hard - there are several ways to write such a wrapper in Galaxy.

e.g. a select showing the user text like Case sensitive and Case insensitive
with values yes and no where the cheetah template contains:

textsearch -caseinsensitive $case

Or, a boolean select where the values are again yes and no with the
same template. See for example ntoa in the BowTie wrapper, file:
tools/sr_mapping/bowtie_wrapper.xml

If the Unix tool expected a switch (present/absent) rather than an argument
with a value (yes/no) then you might use a select with two options Case
sensitive and Case insensitive with values yes and no where the
cheetah template contains:

textsearch
#if $case==yes
-caseinsensitive
#end if

Or, you might prefer to use values of -caseinsensitive and  then the
cheetah becomes just:

textsearch $case

Again, the above hypothetical select parameter $case could be a boolean
parameter. e.g. See the filter_query option in the blastn wrapper, file
tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml

Peter


Many thanks for this info, that helps a lot!

I guess I will either need to parse the cheetah if-syntax then (have 
actually played with a rudimental parser in ANTLR already[1]) or just do 
some modifications of the tool config files, to make them work for our 
purposes [2]. Any other hints are of course welcome!


Cheers,
Samuel

[1] 
http://saml.rilspace.org/ebnf-parser-for-parts-of-the-galaxy-toolconfigs-with-antlr
[2] Basically we have been prepared to need to do this anyway, since we 
cannot make use of wrappers using an accompanying script file, but we 
have assumed that the existing tool configs will be much valuable as a 
starting point anyway.



--
System Expert / Bioinformatician
SNIC-UPPMAX HPC Center
Uppsala University, Sweden
--
E-mail: samuel.la...@scilifelab.uu.se
Phone: +46 (0)18 - 471 1060
WWW: http://www.uppmax.uu.se
Uppnex: https://www.uppnex.uu.se

___
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/


Re: [galaxy-dev] visualization tool

2011-08-23 Thread Daniel Blankenberg
Hi Shashi,

Have a look at: 
http://wiki.g2.bx.psu.edu/Admin/Tools/External%20Display%20Applications%20Tutorial

And at the XML files in the directory: $GALAXY_ROOT/display_applications/


Thanks for using Galaxy,

Dan


On Aug 23, 2011, at 7:30 AM, shashi shekhar wrote:

 Hi All,
 
 
  I want to add my own Visualization tool in  local instance of galaxy  .how i 
 will do it in galaxy ? i want to integrate jmol  in galaxy.
 
 Regards
 shashi
 ___
 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/


___
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/


[galaxy-dev] next galaxy-dist update

2011-08-23 Thread Glen Beane
We are in need of a galaxy upgrade (we missed the last galaxy-dist update at 
the end of June). However, we don't want to update to a 2 month old release 
only to have a new release come out shortly after.  Could someone on the 
development team give me an estimate of when the next galaxy-dist update will 
happen?


--
Glen L. Beane
Senior Software Engineer
The Jackson Laboratory
(207) 288-6153


___
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/


Re: [galaxy-dev] visualization tool

2011-08-23 Thread shashi shekhar
Hi,


In Galaxy there is visualization option .how it works .Are documents are
available for  visualization tool.


Thanks for Reply

Regards
shashi




On Tue, Aug 23, 2011 at 5:55 PM, Daniel Blankenberg d...@bx.psu.edu wrote:

 Hi Shashi,

 Have a look at:
 http://wiki.g2.bx.psu.edu/Admin/Tools/External%20Display%20Applications%20Tutorial

 And at the XML files in the directory: $GALAXY_ROOT/display_applications/


 Thanks for using Galaxy,

 Dan


 On Aug 23, 2011, at 7:30 AM, shashi shekhar wrote:

  Hi All,
 
 
   I want to add my own Visualization tool in  local instance of galaxy
  .how i will do it in galaxy ? i want to integrate jmol  in galaxy.
 
  Regards
  shashi
  ___
  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/


___
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/

Re: [galaxy-dev] visualization tool

2011-08-23 Thread shashi shekhar
On Tue, Aug 23, 2011 at 6:17 PM, shashi shekhar meshash...@gmail.comwrote:

 Hi,


 Iis it possible to add own visualization tool in galaxy?






 On Tue, Aug 23, 2011 at 5:55 PM, Daniel Blankenberg d...@bx.psu.eduwrote:

 Hi Shashi,

 Have a look at:
 http://wiki.g2.bx.psu.edu/Admin/Tools/External%20Display%20Applications%20Tutorial

 And at the XML files in the directory: $GALAXY_ROOT/display_applications/


 Thanks for using Galaxy,

 Dan


 On Aug 23, 2011, at 7:30 AM, shashi shekhar wrote:

  Hi All,
 
 
   I want to add my own Visualization tool in  local instance of galaxy
  .how i will do it in galaxy ? i want to integrate jmol  in galaxy.
 
  Regards
  shashi
  ___
  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/



___
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/

[galaxy-dev] samtools mpileup update

2011-08-23 Thread David Hoover
Is there any good reason why Galaxy can't use a more recent version of 
samtools?  The only difference I can see is the mpileup command.  The algorithm 
by which mpileup finds SNPs is a little different.  Does anyone know if the 
file format has changed?  The only files that need to change are sam_pileup.py 
and sam_pileup.xml.

David Hoover
Helix Systems Staff
http://helix.nih.gov
___
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/


Re: [galaxy-dev] visualization tool

2011-08-23 Thread Daniel Blankenberg
Hi Shashi,

For information on Galaxy's visualization tool, Trackster, see: 
http://wiki.g2.bx.psu.edu/Learn/Visualization

If you are interested in adding your own visualization tool for e.g. displaying 
Galaxy datasets, please see the previously provided information.


Thanks for using Galaxy,

Dan


On Aug 23, 2011, at 8:47 AM, shashi shekhar wrote:

 Hi,
 
 
 In Galaxy there is visualization option .how it works .Are documents are 
 available for  visualization tool.
 
 
 Thanks for Reply
 
 Regards
 shashi
 
 
 
 
 On Tue, Aug 23, 2011 at 5:55 PM, Daniel Blankenberg d...@bx.psu.edu wrote:
 Hi Shashi,
 
 Have a look at: 
 http://wiki.g2.bx.psu.edu/Admin/Tools/External%20Display%20Applications%20Tutorial
 
 And at the XML files in the directory: $GALAXY_ROOT/display_applications/
 
 
 Thanks for using Galaxy,
 
 Dan
 
 
 On Aug 23, 2011, at 7:30 AM, shashi shekhar wrote:
 
  Hi All,
 
 
   I want to add my own Visualization tool in  local instance of galaxy  .how 
  i will do it in galaxy ? i want to integrate jmol  in galaxy.
 
  Regards
  shashi
  ___
  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/
 
 

___
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/

Re: [galaxy-dev] collect_associated_files and umask

2011-08-23 Thread Nate Coraor
Chorny, Ilya wrote:
 When I run galaxy as the actual user using the code I committed to my fork, I 
 run into a problem with dataset_*.dat files that have associated data wherein 
 the associated data files are copied from the job_working_directory into the 
 files directory. That directory is owned by the actual user and not by the 
 galaxy user. I don't have a problem with the ownership but the permissions of 
 the directory and associated files get changed to 777. Any thoughts on why 
 the permissions get changed. The permissions are 755 and 644 for dirs and 
 files respectively when in the working directory so why do they change when 
 the directory is moved?
 
 Any help would be greatly appreciated.

Hi Ilya,

What's your umask on the command line?  Galaxy tries to honor this umask
if possible, see the collect_associated files method of the Tool class
in lib/galaxy/tools/__init__.py.

--nate

 
 Best,
 
 Ilya
 
 
 Ilya Chorny Ph.D.
 Bioinformatics - Intern
 icho...@illumina.commailto:icho...@illumina.com
 858-202-4582
 

 ___
 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/

___
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/


Re: [galaxy-dev] [API] Get the hashed dataset id within Galaxy

2011-08-23 Thread Nate Coraor
Louise-Amélie Schmitt wrote:
 Hi,
 
 I would need to make a tool that can get the API dataset id out of
 the input dataset of the tool, how can I do that?

Hi L-A,

Pass in as an argument:

$__app__.security.encode_id( 'file.%s' % $input1.id )

Where 'input1' is the param name of your input.

--nate

 ___
 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/
___
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/


Re: [galaxy-dev] database/files/_metadata_files

2011-08-23 Thread Daniel Blankenberg
Hi Ilya,

Tools should not ordinarily write to this directory, but will often read from 
it. These files are generated by Galaxy's Metadata functionality.  If you are 
setting metadata externally (settings in universe_wsgi.ini) and using a 
cluster, then this will occur as part of the tool/job script, as a separate 
entry (calling set_metadata.sh) in the e.g. .sh file submitted to pbs. Certain 
filetypes, e.g. BAM and MAF, use these for storing index data.

Thanks for using Galaxy,

Dan


On Aug 23, 2011, at 4:04 PM, Chorny, Ilya wrote:

 Can someone point me to a tool which writes to this directory? I made some 
 changes to the code to run as actual user but cannot find a tools that writes 
 to this directory.
  
 Thanks,
  
 Ilya
  
  
 Ilya Chorny Ph.D.
 Bioinformatics Scientist I
 Illumina, Inc.
 9885 Towne Centre Drive
 San Diego, CA 92121
 Work: 858.202.4582
 Email: icho...@illumina.com
 Website: www.illumina.com
  
  
 ___
 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/

___
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/

[galaxy-dev] multiple inputs in tools used in workflows?

2011-08-23 Thread Duddy, John
While snooping around the Galaxy code, I noticed that some tool features are 
not supported in workflows, only in histories. Is there a list somewhere that 
lists the restrictions?

Specifically, are multiple inputs supported?

John Duddy
Sr. Staff Software Engineer
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Tel: 858-736-3584
E-mail: jdu...@illumina.commailto:jdu...@illumina.com

___
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/

Re: [galaxy-dev] database/files/_metadata_files

2011-08-23 Thread Chorny, Ilya
Great, thanks!!

From: Daniel Blankenberg [mailto:d...@bx.psu.edu]
Sent: Tuesday, August 23, 2011 1:26 PM
To: Chorny, Ilya
Subject: Re: [galaxy-dev] database/files/_metadata_files

Run a tool (or auto-detect metadata) that creates any BAM or MAF output file. 
The file will originally be created in a temporary location and then moved into 
the final location in Galaxy's job finish methods.


On Aug 23, 2011, at 4:20 PM, Chorny, Ilya wrote:


I am setting metadata externally so how do I get a file to be generated in that 
directory?

From: Daniel Blankenberg 
[mailto:d...@bx.psu.edu]mailto:[mailto:d...@bx.psu.edu]
Sent: Tuesday, August 23, 2011 1:18 PM
To: Chorny, Ilya
Cc: galaxy-dev@lists.bx.psu.edumailto:galaxy-dev@lists.bx.psu.edu
Subject: Re: [galaxy-dev] database/files/_metadata_files

Hi Ilya,

Tools should not ordinarily write to this directory, but will often read from 
it. These files are generated by Galaxy's Metadata functionality.  If you are 
setting metadata externally (settings in universe_wsgi.ini) and using a 
cluster, then this will occur as part of the tool/job script, as a separate 
entry (calling set_metadata.sh) in the e.g. .sh file submitted to pbs. Certain 
filetypes, e.g. BAM and MAF, use these for storing index data.

Thanks for using Galaxy,

Dan


On Aug 23, 2011, at 4:04 PM, Chorny, Ilya wrote:



Can someone point me to a tool which writes to this directory? I made some 
changes to the code to run as actual user but cannot find a tools that writes 
to this directory.

Thanks,

Ilya


Ilya Chorny Ph.D.
Bioinformatics Scientist I
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Work: 858.202.4582
Email: icho...@illumina.commailto:icho...@illumina.com
Website: www.illumina.comhttp://www.illumina.com


___
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/


___
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/

[galaxy-dev] What script updates the umask of database/files/* and deletes database/job_working_directory

2011-08-23 Thread Chorny, Ilya
When running as the actual user in drama, I made it so the .dat files are not 
initially created so that when a tool moves data from the a temp directory to 
the out .dat file it will not fail. (i.e. unix does not allow moving a file 
owned by one user to a file owned by another user because mv carries the 
attributes of the original file). Now I want to change the ownership of the 
files through a sudo call at the end. Which script is run at the end to clean 
things up?

Thanks,

Ilya


Ilya Chorny Ph.D.
Bioinformatics Scientist I
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Work: 858.202.4582
Email: icho...@illumina.commailto:icho...@illumina.com
Website: www.illumina.comhttp://www.illumina.com


___
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/

Re: [galaxy-dev] Error uploading files through filesystem paths: MacOS, Postgres and galaxy-central

2011-08-23 Thread Nate Coraor
Camille Stephan wrote:
 Hello,
 
 I just installed postgres in my machine and things seem to work fine except
 for the Upload files from filesystems paths option which gives the
 following error:
 
 Invalid paths:
 /path/to/file.fasta
 
 
 The path is correct and I tried with different files and file formats. I
 have the most recent version from galaxy-central.
 
 Any idea what could be causing this?

Hi Camille,

Does the user running Galaxy have filesystem access to those files?

--nate

 
 Thanks!
 Camille
 
 -- 
 ***
 Camille Stephan-Otto Attolini, PhD
 Senior Research Officer, Bioinformatics and Biostatistics unit
 IRB Barcelona
 Tel (+34) 93 402 0553

 ___
 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/

___
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/


Re: [galaxy-dev] cant' run galaxy in daemon mode

2011-08-23 Thread Nate Coraor
sohk...@notes.cc.sunysb.edu wrote:
 Hi,
 I have the production Galaxy setup and running on Mac OS Leopard 10.6, 
 with postgres and apache.  However, I am unable to run it as daemon.  I 
 don't get an error, the browser just hangs there.
 Thanks for any advice.

Hi Sohail,

How are you starting the daemon?  Have you checked the log file to see
if there are any errors?  If the Galaxy process has started correctly,
have you checked to see if the system firewall is enabled?

--nate

 
 -Sohail

 ___
 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/

___
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/


Re: [galaxy-dev] How to get tool id in runner file (local.py)

2011-08-23 Thread Nate Coraor
shashi shekhar wrote:
 Hi,
 
   I have local instance of Galaxy and  i am doing some modification in
 Galaxy .So i need  tool id id in local.py file . How i will get  this
 information in runner file (local.py).

Hi Shashi,

Anywhere you have the job_wrapper object, the Job ID can be accessed as:

job_wrapper.job_id

--nate

 
 
 Regards
 shashi shekhar

 ___
 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/

___
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/


Re: [galaxy-dev] What script updates the umask of database/files/* and deletes database/job_working_directory

2011-08-23 Thread Chorny, Ilya
So I figured out that it is  job/runners/__init__.py that does the cleanup. But 
now I can't figure out how to pass the galaxy username to my script to change 
the permission back. I thought os.getlogin() would give me the right username 
but it returns my user name and not the galaxy user. Thoughts?

Thanks,

Ilya

From: galaxy-dev-boun...@lists.bx.psu.edu 
[mailto:galaxy-dev-boun...@lists.bx.psu.edu] On Behalf Of Chorny, Ilya
Sent: Tuesday, August 23, 2011 1:46 PM
To: galaxy-dev@lists.bx.psu.edu
Subject: [galaxy-dev] What script updates the umask of database/files/* and 
deletes database/job_working_directory

When running as the actual user in drama, I made it so the .dat files are not 
initially created so that when a tool moves data from the a temp directory to 
the out .dat file it will not fail. (i.e. unix does not allow moving a file 
owned by one user to a file owned by another user because mv carries the 
attributes of the original file). Now I want to change the ownership of the 
files through a sudo call at the end. Which script is run at the end to clean 
things up?

Thanks,

Ilya


Ilya Chorny Ph.D.
Bioinformatics Scientist I
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Work: 858.202.4582
Email: icho...@illumina.commailto:icho...@illumina.com
Website: www.illumina.comhttp://www.illumina.com


___
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/

[galaxy-dev] Metadata error

2011-08-23 Thread Chorny, Ilya
I get these two error in the log file. The job finishes correctly and a 
metadata file is created but I still get the error. Can anyone provide me with 
more detail about what this error means? The second error is incorrect because 
the files were deleted.


setting metadata externally failed for HistoryDatasetAssociation 344: [Errno 1] 
Operation not permitted: '/mnt/data/galaxy/database/files/000'
and

Failed to cleanup MetadataTempFile temp files from 
../../mnt/data/galaxy/database/tmp/metadata_out_HistoryDatasetAssociation_344_NUDu3A:
 No JSON object could be decoded: line 1 column 0 (char 0)


Ilya Chorny Ph.D.
Bioinformatics Scientist I
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Work: 858.202.4582
Email: icho...@illumina.commailto:icho...@illumina.com
Website: www.illumina.comhttp://www.illumina.com


___
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/