Question: API Usage: import_library_dataset_to_history.py
0
gravatar for murra668
3.5 years ago by
murra6680
United States
murra6680 wrote:

I am confused on the usage of the import_library_dataset_to_history.py API script.

The script states: usage: %s key url library_file_id

Is the url the base url? Also, what is required in the library_file_id field? Is that asking for <library_id>_<file_id> or just the <file_id>?

Last question, to what history does the script import the history? It does not require a history_id, so should I assume it sends the dataset to the current history, or last current history?

api • 723 views
ADD COMMENTlink modified 3.5 years ago by Martin Čech ♦♦ 4.9k • written 3.5 years ago by murra6680
0
gravatar for Martin Čech
3.5 years ago by
Martin Čech ♦♦ 4.9k
United States
Martin Čech ♦♦ 4.9k wrote:

The script might be outdated. If you would like to use API to interact with Histories&Libraries please have a look at the API documentation:

http://galaxy.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html#galaxy.webapps.galaxy.api.history_contents.HistoryContentsController.create
http://galaxy.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html#galaxy.webapps.galaxy.api.lda_datasets.LibraryDatasetsController.load

The preferred way to interact with the API is the Bioblend library: http://bioblend.readthedocs.org/en/latest/

ADD COMMENTlink written 3.5 years ago by Martin Čech ♦♦ 4.9k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 174 users visited in the last hour