Downloading data using API

565 views
Skip to first unread message

Donovan Parks

unread,
Jun 30, 2014, 4:00:30 AM6/30/14
to img-use...@lbl.gov
Hello,

I'm having some trouble download data from IMG through the provided API. Specifically, I'm trying to download the data for the honey bee project at:

I can successfully log-in to JGI and generate a cookie with:
curl -s https://signon.jgi.doe.gov/signon/create --data-ascii login=m...@gmail.com\&password=password -b cookies -c cookies > /dev/null

After this, I can grab the XML file describing the organisms download tree with:
curl -s -o HoneyBeecolony.xml "http://genome.jgi.doe.gov/ext-api/downloads/get-directory?organism=HoneyBeecolony" -b cookies &> /dev/null

Looking in the XML file, I can find the file I want:
<file label="European and Africanized bee gut microbiome from the USDA-ARS Beltsville Bee Research Center: Honey Bee colony" filename="3300000267.tar.gz" size="160 MB" timestamp="Thu Apr 11 19:36:51 PDT 2013" url="/ext-api/downloads/get_tape_file?blocking=true&amp;url=/HoneyBeecolony/download/_JAMO/52904c40067c013e2b067554/3300000267.tar.gz" project="403942" md5="df26a556ac7836b1252bc6666a469b46" />

I have not been able to download this file though. I have tried:

This downloads a 'page not found' message from the server. I've also tried:

This also downloads an HTML file indicating a server side error. What is the correct URL?

Thanks for any and all advice.

Regards,
Donovan

Ken Chu

unread,
Jun 30, 2014, 4:51:02 PM6/30/14
to img-use...@lbl.gov
The jgi portal is not a IMG tool 

Please use their Comments/Question link (lcoated at the bottom of their home page, http://genome.jgi.doe.gov/) about their API.
Reply all
Reply to author
Forward
0 new messages