That is great -- thank you Kevin.  Dan, please forget my question about
XNAT REST API URLs ;)

Best regards,
Yaroslav

On Tue, 20 Aug 2013, Archie, Kevin wrote:

> Hi, Yaroslav,

> I'll let Dan handle the first question (but reserve the right to chime in 
> afterwards).

> On the second question: yes, it's a little baroque, but I've added code to 
> pyxnat to do just that. Check out the hcp-db branch of 
> https://github.com/Human-Connectome-Project/pyxnat , and in particular 
> https://github.com/Human-Connectome-Project/pyxnat/blob/hcp-db/pyxnat/core/packages.py
>  . Note that there are two steps to this dance: first you need to ask XNAT 
> for authorization to download specified files, and then you hand the returned 
> magic cookie to the Aspera server (via ascp) to start the download. (Python 
> code isn't exactly what you asked for, but I'll guess you're more than 
> sufficiently fluent in Python to figure out what I did, and I'm happy to 
> answer any questions.)

> There's a tutorial that covers using pyxnat against ConnectomeDB (including 
> downloading packages) here: 
> https://wiki.humanconnectome.org/display/DataUse/Exploring+ConnectomeDB+with+Python
>  , and a script that uses pyxnat+ascp to download packages here: 
> https://wiki.humanconnectome.org/display/DataUse/Downloading+data+for+10+%28or+40%29+unrelated+subjects

>   - Kevin

> On Aug 20, 2013, at 10:11 AM, Yaroslav Halchenko wrote:

> > Dear HCP Gurus,

> > Aspera client seems to perform really well to utilize the available
> > bandwidth, but it is a closed source proprietary software (although
> > happily using open source libraries such as Qt, which it can do).
> > I wonder if there is any other alternative method to access data,
> > possibly through a less efficient but open protocol (http/rsync/...)?

> > Is it possible to use  aspera's cmdline client (ascp) directly
> > from the command line without requiring it being spawn up by
> > asperaconnect.bin web-browser plugin?  if "yes" -- could someone point
> > me to any HOWTO/etc outlining the procedure for authentication using HCP
> > credentials?

> > Thank you in advance for the answers!
> > --
> > Yaroslav O. Halchenko, Ph.D.
> > http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
> > Senior Research Associate,     Psychological and Brain Sciences Dept.
> > Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
> > Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
> > WWW:   http://www.linkedin.com/in/yarik

> > _______________________________________________
> > HCP-Users mailing list
> > HCP-Users@humanconnectome.org
> > http://lists.humanconnectome.org/mailman/listinfo/hcp-users


> ________________________________

> The material in this message is private and may contain Protected Healthcare 
> Information (PHI). If you are not the intended recipient, be advised that any 
> unauthorized use, disclosure, copying or the taking of any action in reliance 
> on the contents of this information is strictly prohibited. If you have 
> received this email in error, please immediately notify the sender via 
> telephone or return mail.


-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate,     Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        
_______________________________________________
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to