ソースを参照

[DATALAD RUNCMD] Move sourcedata/ to the top for consistency, and replace with symlink for selfsufficiency within rawdata/

If we were using git/datalad 'properly' here, sourcedata/ should have been its own dataset,
so it could have been reused possibly in another BIDS dataset, where they might have
had their own ideas on harmonization.  And then it could have been 'installed' within
a corresponding 'rawdata' dataset as 'sourcedata'.  But here we are self-contained repository
with examples.  So for consistency we kept sourcedata/ on the top level, and symlinked into rawdata/.

I was arguing against it and thought to keep sourcedata/ only under rawdata/.
But I lost to Christian.

Note 1: Instead of a symlink we could have relied on SourceDatasets field in dataset_description.json
like it exampled in https://bids-specification.readthedocs.io/en/stable/02-common-principles.html#source-vs-raw-vs-derived-data
and overall described in https://bids-specification.readthedocs.io/en/stable/glossary.html#sourcedatasets-metadata .

Note 2: datalad 0.19.3 did screw up and failed to commit the move result.
We have git added symlink file manually and now --amending this commit with the rest
which is already staged.

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git mv rawdata/sourcedata .; ( cd rawdata; ln -s ../sourcedata . )",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "ephys_neuropixel"
}
^^^ Do not change lines above ^^^
Yaroslav Halchenko 1 年間 前
コミット
a50e36518e

+ 1 - 0
ephys_neuropixel/rawdata/sourcedata

@@ -0,0 +1 @@
+../sourcedata

+ 0 - 1
ephys_neuropixel/rawdata/sourcedata/neuropixPhase3A_kilosortChanMap.mat

@@ -1 +0,0 @@
-../../../.git/annex/objects/v6/VG/MD5E-s2069--e7f4eafe342ba2aa90afb8c7d20bebc7.mat/MD5E-s2069--e7f4eafe342ba2aa90afb8c7d20bebc7.mat

+ 0 - 1
ephys_neuropixel/rawdata/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.ap.bin

@@ -1 +0,0 @@
-../../../../../.git/annex/objects/mp/xJ/MD5E-s10942506960--ca03ba16671dd92bc8d1731f5a241da0.ap.bin/MD5E-s10942506960--ca03ba16671dd92bc8d1731f5a241da0.ap.bin

+ 0 - 1
ephys_neuropixel/rawdata/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.ap.meta

@@ -1 +0,0 @@
-../../../../../.git/annex/objects/8P/Vj/MD5E-s16684--fae96e71853b2c079a228c39a2b16e47.ap.meta/MD5E-s16684--fae96e71853b2c079a228c39a2b16e47.ap.meta

+ 0 - 1
ephys_neuropixel/rawdata/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.lf.bin

@@ -1 +0,0 @@
-../../../../../.git/annex/objects/z7/KF/MD5E-s911875580--c5b184c7d064bb931238686915374fb5.lf.bin/MD5E-s911875580--c5b184c7d064bb931238686915374fb5.lf.bin

+ 0 - 1
ephys_neuropixel/rawdata/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.lf.meta

@@ -1 +0,0 @@
-../../../../../.git/annex/objects/WM/mk/MD5E-s12867--6f69e9e3afb467cde799b4b424ee98ab.lf.meta/MD5E-s12867--6f69e9e3afb467cde799b4b424ee98ab.lf.meta

+ 1 - 0
ephys_neuropixel/sourcedata/neuropixPhase3A_kilosortChanMap.mat

@@ -0,0 +1 @@
+../../.git/annex/objects/v6/VG/MD5E-s2069--e7f4eafe342ba2aa90afb8c7d20bebc7.mat/MD5E-s2069--e7f4eafe342ba2aa90afb8c7d20bebc7.mat

+ 1 - 0
ephys_neuropixel/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.ap.bin

@@ -0,0 +1 @@
+../../../../.git/annex/objects/mp/xJ/MD5E-s10942506960--ca03ba16671dd92bc8d1731f5a241da0.ap.bin/MD5E-s10942506960--ca03ba16671dd92bc8d1731f5a241da0.ap.bin

+ 1 - 0
ephys_neuropixel/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.ap.meta

@@ -0,0 +1 @@
+../../../../.git/annex/objects/8P/Vj/MD5E-s16684--fae96e71853b2c079a228c39a2b16e47.ap.meta/MD5E-s16684--fae96e71853b2c079a228c39a2b16e47.ap.meta

+ 1 - 0
ephys_neuropixel/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.lf.bin

@@ -0,0 +1 @@
+../../../../.git/annex/objects/z7/KF/MD5E-s911875580--c5b184c7d064bb931238686915374fb5.lf.bin/MD5E-s911875580--c5b184c7d064bb931238686915374fb5.lf.bin

+ 1 - 0
ephys_neuropixel/sourcedata/sub-Neuropixel001/ses-210101/Neuropixel001_210101_g0_t0.imec.lf.meta

@@ -0,0 +1 @@
+../../../../.git/annex/objects/WM/mk/MD5E-s12867--6f69e9e3afb467cde799b4b424ee98ab.lf.meta/MD5E-s12867--6f69e9e3afb467cde799b4b424ee98ab.lf.meta