datalad
Was er macht
DataLad ist ein Tool, das dir hilft, große wissenschaftliche Datensätze zu verwalten. Du kannst Daten effizient herunterladen, organisieren und teilen und behältst dabei den Überblick, wo welche Kopien liegen und wie sich Analysen reproduzieren lassen.
Wann du ihn nutzt
- ✓Wenn du Daten von Plattformen wie OpenNeuro oder DANDI herunterladen musst.
- ✓Wenn eine Datei wie ein defekter Link oder eine kleine Textdatei statt der eigentlichen Daten aussieht.
- ✓Wenn du sicherstellen willst, dass sich eine Analyse später genau gleich wiederholen lässt.
Link zum Skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/datalad/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Wie lade ich alle Daten für mein Projekt herunter?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
DataLad nutzt Git, um die Dateistruktur zu verfolgen, und git-annex, um die Inhalte großer Dateien zu verwalten. Es speichert, welche Befehle ausgeführt wurden und welche Daten verwendet wurden, sodass du oder andere die Ergebnisse reproduzieren könnt.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
DataLad
Overview
DataLad is a data management layer over Git and git-annex. Git tracks the dataset structure, small text files, and the history. git-annex tracks the content of large files, storing each file as a key and keeping the bytes somewhere that is not necessarily the local repository.
A normal clone retrieves Git history and the top-level file listing while leaving
annexed bytes unfetched. Installed subdatasets have their own histories; a clone does not
automatically populate them. Clone cost depends on Git history and file count, not just
the data volume. Retrieve annexed bytes selectively with datalad get.
The second thing DataLad adds is provenance. datalad run executes a command and commits
the result together with a machine-readable record of the command, its inputs, and its
outputs. datalad rerun reads that record back and re-executes it. This turns "how was
this figure produced" from an archaeology problem into a command.
When to use DataLad instead of plain Git
Use DataLad when any of the following holds:
- Files are too large for Git to handle comfortably, or the total exceeds what every collaborator wants on disk.
- Data lives in more than one place (a lab server, a cluster scratch, S3, a supercomputer) and you need to know which copies exist.
- The analysis must be re-executable, and a plain commit message is not enough evidence.
- You are consuming published datasets from OpenNeuro, DANDI, or
datasets.datalad.org, which are distributed as DataLad datasets. - The project nests other datasets inside it and you want each one to keep its own independent history.
Use plain Git when the repository is code and text only, everything fits comfortably in Git, and nobody needs partial checkouts. DataLad on top of a small pure-code repository adds indirection without buying anything.
Installation
# git-annex is NOT written in Python but is available from PyPI if you already
# have git itself installed:
uv pip install git-annex
# You can also install it first from the system
# (Debian/Ubuntu: apt install git-annex; macOS: brew install git-annex;
# conda-forge: conda install -c conda-forge git-annex)
uv pip install "datalad==1.6.5"
uv pip install "datalad-container==1.2.6" # only for containers-run
datalad wtf --section dependencies # confirm git-annex version is visible
The PyPI git-annex package supplies platform-specific binaries. The reviewed
10.20260901.post1 wheels cover Linux glibc 2.34+ (x86_64/ARM64), macOS ARM64 14+ and
x86_64 15+, and Windows x86_64. Use a system package when no wheel matches. Keep its
environment on PATH and verify the executable; the wheel does not supply Git itself.
Configure Git author name/email before creating or saving a dataset.
datalad wtf prints the resolved environment and is the first thing to run when behaviour
looks impossible. An old or missing git-annex is behind a large share of confusing errors.
DataLad is MIT licensed; git-annex has a separate AGPL license. Consult the upstream license when redistributing either tool.
The failure that bites first: pointers are not data
After datalad clone, annexed files exist as symlinks into .git/annex/objects/ (or as
small pointer files where symlinks are unavailable, such as on Windows or a crippled
filesystem). Nothing has downloaded the content yet.
Illustrative remote-data example; inspect the selected revision for the exact path and install NiBabel before the Python read. The refresh tested equivalent local pointer/get behavior without downloading imaging data.
datalad clone https://github.com/OpenNeuroDatasets/ds000001.git
cd ds000001
ls sub-01/anat/ # the file is listed
python -c "import nibabel; nibabel.load('sub-01/anat/sub-01_T1w.nii.gz')" # fails
datalad get sub-01/anat/sub-01_T1w.nii.gz # now it works
The failure mode to recognise: a tool reports the file as empty, truncated, corrupt, "not
a gzip file", or a broken symlink, and the file size on disk is a few hundred bytes. These symptoms can indicate an unfetched annex pointer; confirm with annex status
before diagnosing corruption. Run datalad get before reading data, and treat
"file exists" as insufficient evidence that its content is present.
Before an analysis touches a directory, fetch it explicitly:
datalad get sub-01/ # everything under a path
…
Häufige Fragen
Warum sehen meine Dateien wie defekte Links aus?
Das passiert, weil DataLad standardmäßig nur die Dateistruktur herunterlädt. Mit dem Befehl „datalad get“ lädst du den eigentlichen Inhalt der Dateien herunter, die du verwenden willst.
Wie stelle ich sicher, dass meine Analyse reproduzierbar ist?
Führe deine Befehle mit dem Befehl „datalad run“ aus. Er speichert automatisch, welche Dateien als Eingabe verwendet und welche als Ergebnis erzeugt wurden, sodass du oder andere die Analyse später nachvollziehen könnt.
Was ist der Unterschied zwischen Git und DataLad?
Git eignet sich hervorragend für Code und kleine Textdateien. DataLad baut auf Git und git-annex auf, um große Dateien zu verwalten und die Reproduzierbarkeit wissenschaftlicher Analysen sicherzustellen.
Details
Originalbeschreibung des Autors
Retrieves, versions, and publishes scientific datasets with DataLad and git-annex, and captures computational provenance with datalad run, rerun, and containers-run. Use when cloning or fetching data from OpenNeuro, DANDI, datasets.datalad.org, or any DataLad dataset; when a file in a dataset reads as a broken symlink or a small pointer instead of real data; when an analysis needs a machine-readab
Beliebtheit
- GitHub-Sterne
- 51k
- Platz im Ranking
- #3446
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
13c-metabolic-flux
51kSchätzt Stoffflüsse im Stoffwechsel anhand von Kohlenstoff-13-Isotopendaten. Nützlich für die Analyse des Zellstoffwechsels und biochemischer Stoffwechselwege.
adaptyv
51kPlant Experimente zur Proteincharakterisierung mit der Adaptyv API. Hilft beim Schätzen der Kosten, Einreichen von Sequenzen und Verfolgen der Laborergebnisse.
aeon
51kFührt Machine-Learning-Aufgaben mit Zeitreihendaten aus. Nützlich zum Klassifizieren, Prognostizieren, Erkennen von Anomalien und Finden von Mustern.
alphagenome
51kSucht vorberechnete genomische Effekte für genetische Varianten heraus. Liefert Scores und Erklärungen zu den Auswirkungen der Varianten auf das Genom.
Ähnliche Skills
discrawl
394kLässt deinen Agenten ein gespeichertes lokales Archiv von Discord-Nachrichten durchsuchen und zusammenfassen, dessen Aktualität prüfen und Direktnachrichten lesen.
clickhouse-io
280kHilft deinem Agenten, Abfragen und Schemas in ClickHouse zu optimieren. Nutzt Best Practices für schnelle Analyse-Workloads. Ideal, wenn Auswertungen zu langsam laufen.
scientific-db-pubmed-database
280kHilft deinem Agenten, wissenschaftliche Artikel im biomedizinischen Bereich zu suchen. Nützlich für Recherchen mit speziellen medizinischen Informationen.