title: DATALAD made simple for data exchange
DATALAD made simple for data exchange
Set up of the repo online and localy
-
Create the repo on GIN / CPP-lab organization 2026_SaintLuc_ProjectName_EG_source
-
Add Salomé and Eleonore as admin
-
Clone the repo on each computer
- Basic organization of the repo as
sourcedata
2026_SaintLuc_ProjectName_EG_source
.
├── README.md
├── code
├── sub-EB01
│ ├── ses-01
│ │ ├── func
│ │ └── dicom
│ └── ses-02
│ ├── func
│ └── dicom
└── sub-EB02
├── ses-01
│ ├── func
│ ├── dicom
├── ses-02
│ ├── func
│ └── dicom
└── ses-03
├── func
└── dicom
[...]
Day by day data exchange
Salomê uploads and Eleonore get the data
Salomé:
- Check the status of the repo
cd path/to/2026_SaintLuc_ProjectName_EG_source
datalad status
if datalad says it is all ok then you can add new data, otherwise check with Marco
-
copy the data (or drag and drop) in the respective folder (sub-xx/ses-xx/dicom or func), do it subject by subject and session by session
-
check that the repo sees the new data (untracked)
- save the new data so that datalad will keep track of them
datalad save -m "add dicoms and logfiles for sub-xx for ses-xx"
- if everything goes well (if not ask Marco), then push the data to gin, do not close the computer until the upload is done. When it is done tell Eleonore it is done.
datalas push --to origin -J 4
- if you do not need those data anymore on your computer, then drop them (the file exist as a ghost file on your computer and you can download it again from GIN when you need it)
datalad drop sub-xx/ses-xx
Eleonore
- Go to the data folder, before downloading new data check everything is allright
cd path/to/2026_SaintLuc_ProjectName_EG_source
datalad status
To deeper in the quest of checking that everything is allright and the local and origin repo are at the same level
- if everythogn is allright (there no files which are changed or untracked), update the repo
- Dowload the data
datalad get sub-xx/ses-xx -J
- Move the data out of datalad to ...
mkdir -p folder/no/datalad/sub-xx/ses-xx
cp -L sub-xx/ses-xx folder/no/datalad/sub-xx/ses-xx
- Remove the local data from the datalad repo
datalad drop sub-xx/ses-xx
title: DATALAD made simple for data exchange
DATALAD made simple for data exchange
Set up of the repo online and localy
Create the repo on GIN / CPP-lab organization
2026_SaintLuc_ProjectName_EG_sourceAdd Salomé and Eleonore as admin
Clone the repo on each computer
sourcedata2026_SaintLuc_ProjectName_EG_source . ├── README.md ├── code ├── sub-EB01 │ ├── ses-01 │ │ ├── func │ │ └── dicom │ └── ses-02 │ ├── func │ └── dicom └── sub-EB02 ├── ses-01 │ ├── func │ ├── dicom ├── ses-02 │ ├── func │ └── dicom └── ses-03 ├── func └── dicom [...]Day by day data exchange
Salomê uploads and Eleonore get the data
Salomé:
cd path/to/2026_SaintLuc_ProjectName_EG_source datalad statusif
dataladsays it is all ok then you can add new data, otherwise check with Marcocopy the data (or drag and drop) in the respective folder (sub-xx/ses-xx/dicom or func), do it subject by subject and session by session
check that the repo sees the new data (
untracked)datalad save -m "add dicoms and logfiles for sub-xx for ses-xx"Eleonore
cd path/to/2026_SaintLuc_ProjectName_EG_source datalad statusTo deeper in the quest of checking that everything is allright and the local and origin repo are at the same level