-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from brianqiu/dev2
new data pull in & validate
- Loading branch information
Showing
5 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,17 @@ | ||
data: | ||
wget http://openfmri.s3.amazonaws.com/tarballs/ds005_raw.tgz | ||
<<<<<<< HEAD | ||
|
||
wget http://nipy.bic.berkeley.edu/rcsds/ds005_mnifunc.tar | ||
wget http://nipy.bic.berkeley.edu/rcsds/mni_icbm152_nlin_asym_09c_2mm.tar.gz | ||
|
||
validate: | ||
python data.py | ||
|
||
unzip: | ||
tar -xvzf ds005_raw.tgz | ||
for i in {1..9} | ||
do | ||
for j in {1..3} | ||
do | ||
gunzip ds005/sub00${i}/BOLD/task001_run00${j}/bold.nii.gz | ||
done | ||
done | ||
|
||
for i in {10..16} | ||
do | ||
for j in {1..3} | ||
do | ||
gunzip ds005/sub0${i}/BOLD/task001_run00${j}/bold.nii.gz | ||
done | ||
done | ||
|
||
======= | ||
tar -xvzf ds005_raw.tgz | ||
#wget http://nipy.bic.berkeley.edu/rcsds/ds005_mnifunc.tar | ||
#tar -xvf ds005_mnifunc.tar | ||
tar -xvf ds005_mnifunc.tar | ||
tar -xvzf mni_icbm152_nlin_asym_09c_2mm.tar.gz | ||
rm ds005_raw.tgz | ||
#rm ds005_mnifunc.tar | ||
|
||
validate: | ||
python data.py | ||
>>>>>>> a96098ccbb47c304f972e54f9161165806dc04f1 | ||
rm ds005_mnifunc.tar | ||
rm mni_icbm152_nlin_asym_09c_2mm.tar.gz | ||
mv mni_icbm152_nlin_asym_09c_2mm templates | ||
mv templates/mni_icbm152_t1_tal_nlin_asym_09c_2mm.nii templates/mni_standard.nii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
The ds005 dataset, filtered ds005 dataset, and mni templates are stored here. Th | ||
e makefile is written such that: | ||
|
||
- 'make data' will pull in the appropriate data | ||
- 'make unzip' will unzip, remove, and rename certain files | ||
- 'make validate' will run data.py to check the hashes of each downloaded file w | ||
ith a master hashlist included, ensuring all downloaded data is correct | ||
|
||
THE COMMANDS SHOULD BE DONE IN THIS ORDER to be successfully validated. The ds00 | ||
5 folder contains subfolders for each subject, the most relevant of which are: | ||
|
||
- BOLD: raw data of fMRI scans for each of the subjects three runs, as well as d | ||
isplacement/variance data | ||
- behav: file for each run that contains the onsets, potential gains, potential | ||
losses, and response of each trial | ||
- model: filtered, processed data of fMRI scans for each of the subjects three r | ||
uns, and the onsets files | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.