How to use scripts/api/update.py?
Hi, I'm trying to use the update.py script and is not clear for me what to use for 'url' in the usage line: usage: create.py key url [key=value ...]. Which I'm guessing is just a carry over from create.py. I tried passing the direct link to the dataset: $ ./update.py <my_key> http://localhost:8080/api/histories/0397e7c5778be5ee/contents/45d854c903d27d... name=foobar HTTP Error 404: Not Found 404 Not Found The resource could not be found. No action for /api/histories/0397e7c5778be5ee/contents/45d854c903d27dcf Just to show you this dataset does exists: $ ./display.py <my_key> http://localhost:8080/api/histories/0397e7c5778be5ee/contents/45d854c903d27d... Member Information ------------------ misc_blurb: 4.3 Gb name: BMD01.GAIIx.1.fastq data_type: fastqillumina deleted: False state: ok download_url: /datasets/45d854c903d27dcf/display?to_ext=fastqillumina visible: True genome_build: ? model_class: HistoryDatasetAssociation metadata_sequences: None file_size: 4644313368 metadata_data_lines: None id: 45d854c903d27dcf misc_info: uploaded fastq file metadata_dbkey: ? Thanks, Carlos
Hi, I tried a few more things. I see when I try to update a dataset in a library the "The resource could not be found" goes a way, although still nothing gets updated: ./update.py <my_key> http://localhost:8080/api/libraries/f2db41e1fa331b3e/contents/8c49be448cfe29... name=foobar Response -------- None The dataset doesn't get updated. Is it possible to update datasets in a history? If so, how?. And, what I'm still doing wrong here causing the dataset in the library not to get updated? Thanks in advance for any help, Carlos On Fri, Jan 13, 2012 at 4:56 PM, Carlos Borroto <carlos.borroto@gmail.com> wrote:
Hi,
I'm trying to use the update.py script and is not clear for me what to use for 'url' in the usage line: usage: create.py key url [key=value ...].
Which I'm guessing is just a carry over from create.py.
I tried passing the direct link to the dataset: $ ./update.py <my_key> http://localhost:8080/api/histories/0397e7c5778be5ee/contents/45d854c903d27d... name=foobar HTTP Error 404: Not Found 404 Not Found The resource could not be found. No action for /api/histories/0397e7c5778be5ee/contents/45d854c903d27dcf
Just to show you this dataset does exists: $ ./display.py <my_key> http://localhost:8080/api/histories/0397e7c5778be5ee/contents/45d854c903d27d... Member Information ------------------ misc_blurb: 4.3 Gb name: BMD01.GAIIx.1.fastq data_type: fastqillumina deleted: False state: ok download_url: /datasets/45d854c903d27dcf/display?to_ext=fastqillumina visible: True genome_build: ? model_class: HistoryDatasetAssociation metadata_sequences: None file_size: 4644313368 metadata_data_lines: None id: 45d854c903d27dcf misc_info: uploaded fastq file metadata_dbkey: ?
Thanks, Carlos
On Jan 17, 2012, at 5:51 PM, Carlos Borroto wrote:
Hi,
I tried a few more things. I see when I try to update a dataset in a library the "The resource could not be found" goes a way, although still nothing gets updated: ./update.py <my_key> http://localhost:8080/api/libraries/f2db41e1fa331b3e/contents/8c49be448cfe29... name=foobar Response -------- None
The dataset doesn't get updated.
Is it possible to update datasets in a history? If so, how?. And, what I'm still doing wrong here causing the dataset in the library not to get updated?
Hi Carlos, Unfortunately, updating history items via the API is not currently implemented. Sorry for the inconvenience. --nate
Thanks in advance for any help, Carlos
On Fri, Jan 13, 2012 at 4:56 PM, Carlos Borroto <carlos.borroto@gmail.com> wrote:
Hi,
I'm trying to use the update.py script and is not clear for me what to use for 'url' in the usage line: usage: create.py key url [key=value ...].
Which I'm guessing is just a carry over from create.py.
I tried passing the direct link to the dataset: $ ./update.py <my_key> http://localhost:8080/api/histories/0397e7c5778be5ee/contents/45d854c903d27d... name=foobar HTTP Error 404: Not Found 404 Not Found The resource could not be found. No action for /api/histories/0397e7c5778be5ee/contents/45d854c903d27dcf
Just to show you this dataset does exists: $ ./display.py <my_key> http://localhost:8080/api/histories/0397e7c5778be5ee/contents/45d854c903d27d... Member Information ------------------ misc_blurb: 4.3 Gb name: BMD01.GAIIx.1.fastq data_type: fastqillumina deleted: False state: ok download_url: /datasets/45d854c903d27dcf/display?to_ext=fastqillumina visible: True genome_build: ? model_class: HistoryDatasetAssociation metadata_sequences: None file_size: 4644313368 metadata_data_lines: None id: 45d854c903d27dcf misc_info: uploaded fastq file metadata_dbkey: ?
Thanks, Carlos
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:
participants (2)
-
Carlos Borroto
-
Nate Coraor