Import Datasets to History problem
Hi, Using Bioblend API to communicate with Galaxy Try to import datasets to history, using command: gi.histories.upload_dataset_from_library(historyID, datasetID) But I've got the error: bioblend.galaxy.client.ConnectionError: Unexpected response from galaxy: 400: "Please define the source ('library' or 'hda') and the content." What's the *source *and the content? How to get it and put as arguments into this function?
Hi, If you look in the documentation[1] 'source' is required. 'source' here means if the 'lib_dataset_id' provided is from a history or a data library. There used to be at least three options if I remember correctly, 'hda', 'hdda' and 'ldda'. From the error message Galaxy is returning it seems like now you need to choose between 'library' or 'hda'. Assuming you are importing a dataset from a library, try this: gi.histories.upload_dataset_from_library(historyID, datasetID, 'library') Or if that doesn't work: gi.histories.upload_dataset_from_library(historyID, datasetID, 'ldda') [1]http://bioblend.readthedocs.org/en/latest/api_docs/galaxy/all.html#bioblend.... Hope it helps, Carlos On Tue, Feb 11, 2014 at 8:33 AM, Pandori n <pandorinpan@gmail.com> wrote:
Hi,
Using Bioblend API to communicate with Galaxy
Try to import datasets to history, using command:
gi.histories.upload_dataset_from_library(historyID, datasetID)
But I've got the error:
bioblend.galaxy.client.ConnectionError: Unexpected response from galaxy: 400: "Please define the source ('library' or 'hda') and the content."
What's the source and the content? How to get it and put as arguments into this function?
___________________________________________________________ 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/
participants (2)
-
Carlos Borroto
-
Pandori n