I don't believe the CREST resources documented on the wiki page have been 
generated yet for the 1200 release, however the data can be accessed from the 
session data by iterating over the session data and pipeline output resources.  
We'll hopefully have the CREST resources generated soon.  Something like the 
following should get the results:


read -s -p "ENTER PASSWORD: " PW;JSESSIONID=`curl -s -k -u USERNAME:$PW 
https://db.humanconnectome.org/data/JSESSIONID`;export JSESSIONID;echo 
$JSESSIONID

for CSVROW in $(curl -s -k --cookie JSESSIONID=$JSESSIONID 
https://db.humanconnectome.org/data/experiments?xsiType=xnat:mrSessionData\&project=HCP_1200\&columns=ID,label,URI\&format=csv
 | grep "experiments"); do
LABEL=$(echo $CSVROW | cut -d, -f3)
EXP=$(echo $CSVROW | cut -d, -f4)
echo "EXPERIMENT=$LABEL"
for RESOURCE in $(curl -s -k --cookie JSESSIONID=$JSESSIONID 
https://db.humanconnectome.org${EXP}/resources?columns=xnat_abstractresource_id,label\&format=csv
 | grep "MRI.*preproc" | cut -d, -f2); do
SUBDIR=$(echo "$RESOURCE" | sed -e "s/_preproc//")
echo "$RESOURCE"
curl -s -k --cookie JSESSIONID=$JSESSIONID 
https://db.humanconnectome.org${EXP}/resources/${RESOURCE}/files/${SUBDIR}/Movement_RelativeRMS_mean.txt
curl -s -k --cookie JSESSIONID=$JSESSIONID 
https://db.humanconnectome.org${EXP}/resources/${RESOURCE}/files/${SUBDIR}/Movement_AbsoluteRMS_mean.txt
done
done

Regards,

Mike

-----Original Message-----
From: hcp-users-boun...@humanconnectome.org 
[mailto:hcp-users-boun...@humanconnectome.org] On Behalf Of Harms, Michael
Sent: Friday, April 21, 2017 11:12 AM
To: Ge, Tian <t...@partners.org>; hcp-users@humanconnectome.org
Subject: Re: [HCP-Users] motion parameters


Hi,
You can either wait for the data to appear on Amazon S3, or access those 
specific files via REST calls into the database.

For the latter see here
https://wiki.humanconnectome.org/display/PublicData/How+To+Access+Subject+D
ata+via+REST
and you can also find other examples if you search the HCP User list archives.

cheers,
-MH

--
Michael Harms, Ph.D.

-----------------------------------------------------------
Conte Center for the Neuroscience of Mental Disorders Washington University 
School of Medicine Department of Psychiatry, Box 8134
660 South Euclid Ave.Tel: 314-747-6173
St. Louis, MO  63110Email: mha...@wustl.edu




On 4/20/17, 8:34 PM, "hcp-users-boun...@humanconnectome.org on behalf of Ge, 
Tian" <hcp-users-boun...@humanconnectome.org on behalf of t...@partners.org> 
wrote:

Hi HCP experts,

Is there a way to quickly get the motion parameters (specifically, 
Movement_AbsoluteRMS_mean.txt and Movement_RelativeRMS_mean.txt) for each run 
of the S1200 new subjects without downloading the full rs-fMRI package? Thanks!

best,

-Tian


The information in this e-mail is intended only for the person to whom it is 
addressed. If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Partners Compliance HelpLine 
at http://www.partners.org/complianceline . If the e-mail was sent to you in 
error but does not contain patient information, please contact the sender and 
properly dispose of the e-mail.


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


________________________________
The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. 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.

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

________________________________
The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. 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.

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

Reply via email to