generated from cpp-lln-lab/template_datalad_fMRI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add code and folders to set subdatasets
- Loading branch information
Showing
2 changed files
with
8 additions
and
38 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 |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
|
||
# raw dataset url (either GIN or openneuro) | ||
# for DEMO use: [email protected]:/cpp-lln-lab/CPP_visMotion-raw.git | ||
URL_RAW='' | ||
URL_RAW='[email protected]:/JacMatu/2021_Nencki_MultimodalLanguage_JM_raw.git' | ||
|
||
# derivatives sibling url | ||
# for DEMO use: [email protected]:/cpp_brewery/CPP_visMotion-derivatives.git | ||
URL_DER='' | ||
URL_DER='[email protected]:/JacMatu/analyses_MultimodalLanguageMVPA-derivatives.git' | ||
|
||
# derivatives/preproc sibling url | ||
# for DEMO use: [email protected]:/cpp_brewery/CPP_visMotion-bidspm-preproc.git | ||
|
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 |
---|---|---|
|
@@ -3,51 +3,21 @@ | |
root_dir=${PWD} | ||
raw_dir=${root_dir}/inputs/raw | ||
derivatives_dir=${root_dir}/outputs/derivatives | ||
preproc_dir=${derivatives_dir}/bidspm-preproc | ||
stats_dir=${derivatives_dir}/bidspm-stats | ||
#preproc_dir=${derivatives_dir}/bidspm-preproc | ||
#stats_dir=${derivatives_dir}/bidspm-stats | ||
#roi_dir=${derivatives_dir}/bidspm-roi | ||
#cosmo_dir=${derivatives_dir}/cosmo-mvpa | ||
|
||
# get url of the gin repos from config | ||
source dataladConfig.sh | ||
|
||
# install raw dataset | ||
datalad install -d . -s "${URL_RAW}" "${raw_dir}" | ||
|
||
# create the derivatives universe of classic sub-subdatasets () | ||
# . outputs | ||
# └── derivatives | ||
# ├── bidspm-preproc | ||
# └── bidspm-stats | ||
# install derivatives dataset with submodules (hopefully) | ||
|
||
datalad create -d . "${derivatives_dir}" | ||
|
||
if [ ! -z "${GIN_BASENAME}" ]; then | ||
cd "${derivatives_dir}" | ||
datalad create-sibling-gin -d . -s origin --access-protocol ssh --private cpp_brewery/"${GIN_BASENAME}"-derivatives | ||
cd "${root_dir}" | ||
datalad subdatasets --set-property url [email protected]:/cpp_brewery/"${GIN_BASENAME}"-derivatives.git "${derivatives_dir}" | ||
fi | ||
|
||
cd "${derivatives_dir}" | ||
|
||
datalad create -d . "${preproc_dir}" | ||
|
||
if [ ! -z "${GIN_BASENAME}" ]; then | ||
cd "${preproc_dir}" | ||
datalad create-sibling-gin -d . -s origin --access-protocol ssh --private cpp_brewery/"${GIN_BASENAME}"-derivatives-bidspm-preproc | ||
cd "${derivatives_dir}" | ||
datalad subdatasets --set-property url [email protected]:/cpp_brewery/"${GIN_BASENAME}"-derivatives-bidspm-preproc.git bidspm-preproc | ||
fi | ||
|
||
cd "${derivatives_dir}" | ||
|
||
datalad create -d . "${stats_dir}" | ||
|
||
if [ ! -z "${GIN_BASENAME}" ]; then | ||
cd "${stats_dir}" | ||
datalad create-sibling-gin -d . -s origin --access-protocol ssh --private cpp_brewery/"${GIN_BASENAME}"-derivatives-bidspm-stats | ||
cd "${derivatives_dir}" | ||
datalad subdatasets --set-property url [email protected]:/cpp_brewery/"${GIN_BASENAME}"-derivatives-bidspm-stats.git bidspm-stats | ||
fi | ||
datalad install -r -d . -s "${URL_DER}" "${derivatives_dir}" | ||
|
||
cd "${derivatives_dir}" | ||
|
||
|