Re: [galaxy-dev] Upload to history via the tool API

2012-10-08 Thread Jeremy Goecks
This looks fantastic Brad and we should be able to integrate it soon. I have a 
couple questions, though, and I've noted them in the request's comments section.

Best,
J.

On Oct 4, 2012, at 3:44 PM, Brad Chapman wrote:

 
 Hi all;
 I've been thinking about ways to upload into user histories via the API.
 My goal is to be able to have an analysis platform that works
 alongside Galaxy and can easily pass files back and forth through the
 history.
 
 The tools API turned out to be a great fit for this, since you can
 remotely call the upload tool with a URL and stream the file in.
 I was able to get it working with a couple of small tweaks to the
 existing code. The pull request to galaxy-central is here:
 
 https://bitbucket.org/galaxy/galaxy-central/pull-request/74/tools-api-fixes-to-handle-upload
 
 Using a Clojure wrapper on top of John's blend4j library, I have a small
 proof of concept with upload/download from Galaxy histories:
 
 https://github.com/chapmanb/clj-blend#usage
 
 Dannon, or anyone else who likes to hack on the API, let me know if there
 is anything I can do to help get these small fixes merged in for the
 next release. I'd love to be able to demo this with Galaxy main.
 
 The API rocks,
 Brad
 ___
 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] Upload to history via the tool API

2012-10-08 Thread Brad Chapman

Jeremy;
Brilliant, thanks for looking at this. I explained the intent of that
code more in the comments and happy to answer any other questions.

While you're looking at the API, would you also be willing to consider
this pull request:

https://bitbucket.org/galaxy/galaxy-central/pull-request/77/provide-access-to-current-user-and-user

It adds a 'current' target to users and histories so that you can get
the current API user and their active history.

Thanks again,
Brad


 This looks fantastic Brad and we should be able to integrate it soon. I have 
 a couple questions, though, and I've noted them in the request's comments 
 section.

 Best,
 J.

 On Oct 4, 2012, at 3:44 PM, Brad Chapman wrote:

 
 Hi all;
 I've been thinking about ways to upload into user histories via the API.
 My goal is to be able to have an analysis platform that works
 alongside Galaxy and can easily pass files back and forth through the
 history.
 
 The tools API turned out to be a great fit for this, since you can
 remotely call the upload tool with a URL and stream the file in.
 I was able to get it working with a couple of small tweaks to the
 existing code. The pull request to galaxy-central is here:
 
 https://bitbucket.org/galaxy/galaxy-central/pull-request/74/tools-api-fixes-to-handle-upload
 
 Using a Clojure wrapper on top of John's blend4j library, I have a small
 proof of concept with upload/download from Galaxy histories:
 
 https://github.com/chapmanb/clj-blend#usage
 
 Dannon, or anyone else who likes to hack on the API, let me know if there
 is anything I can do to help get these small fixes merged in for the
 next release. I'd love to be able to demo this with Galaxy main.
 
 The API rocks,
 Brad
 ___
 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] Upload to history via the tool API

2012-10-08 Thread Jeremy Goecks
 I explained the intent of that
 code more in the comments and happy to answer any other questions.

Everything makes sense; I've accepted the pull request.

 While you're looking at the API, would you also be willing to consider
 this pull request:
 
 https://bitbucket.org/galaxy/galaxy-central/pull-request/77/provide-access-to-current-user-and-user

Seems reasonable; I've asked for a couple clarifications in the comments.

Thanks,
J.
___
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/