|
Analysis code, manuscripts, ... evolve. (Rewrite, fix bugs, add functions, refactor, extend, ...) |
|
|
|
|
Data changes, too! (errors are fixed, data is extended, naming standards change, an analysis requires only a subset of your data...) |
$ datalad clone --dataset . http://example.com/ds inputs/rawdata
$ git diff HEAD~1
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..c3370ba
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "inputs/rawdata"]
+ path = inputs/rawdata
+ url = http://example.com/importantds
diff --git a/inputs/rawdata b/inputs/rawdata
new file mode 160000
index 0000000..fabf852
--- /dev/null
+++ b/inputs/rawdata
@@ -0,0 +1 @@
+Subproject commit fabf8521130a13986bd6493cb33a70e580ce8572
Each (sub)dataset is a separate, but jointly version-controlled entity.
If its data isn't retrieved, subdatasets are an extremely lightweight yet
actionable data dependency

datalad clone installs a dataset.datalad get downloads file content on demand.datalad run records a command and its impact on the dataset.--inputare retrieved first.--outputwill be unlocked for modifications prior to a rerun of the command. datalad rerun can automatically re-execute run-records later.