I had to make slight changes because in my version Repository does not have @property repo_path anymore (or not yet). It now also assigns one category (which has to exist before). thank you very much, ido On Dec 4, 2012, at 5:27 PM, Greg Von Kuster wrote:
Hi Ido,
On Dec 4, 2012, at 10:26 AM, Ido Tamir wrote:
Hi, how do I get tools from one local toolshed (or the main galaxy toolshed) into another tool-shed? Is it possible to clone the content of a complete tool-shed - all repositories at once into another tool-shed?
Not at the current time, but I've attached a script that I use in my development environment that sort of does what you want.
When you run it for the first time, make sure it installs to a tool shed you don't care about destroying just so you can see how it works. It uses the configuration settings in commnity_wsgi.ini, so make sure you set things accordingly.
here's what you do:
1. Place the 3 attached files in ~/scripts/tool_shed 2. Define the tool shed you want to copy repositories form in copy_repository.xml 3. Define any number of valid <repository> tags in copy_repository.xml 4. run the copy_repositoyr.sh shell script from the ~/scripts/tool_shed directory 5. When all repositories have been copied into you local tool shed, start it up and make sure to reset all metadata on all repositories as the script does not do so. You can dfo this from the Tool Shed's admin interface.
I do not have time to support it, so you're on your own if you want to use it as is. If you enhance it to the point that it would be useful to the community, please contribute it back to me and I'll make sure it is included in the Galaxy code base.
Can I then import all the tools at once into a local galaxy instance?
Not currently, but this is planned for the near future ( within a few months ).
We have a group with their own tool-shed. Unfortunately, I accessed it directly without a proxy on its port which leads to a problem described in issue 825 in galaxy-central.
I want to a) clone the tool-shed as it is into my own tool-shed (rsync?) b) selectively or bulk install these tools into my galaxy server.
thank you very much, ido
___________________________________________________________ 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:
<copy_repository.py><copy_repository.sh><copy_repository.xml>