datalad
Что он делает
DataLad это инструмент для управления большими научными наборами данных. Он позволяет эффективно загружать, организовывать и делиться данными, при этом вы всегда знаете, где находятся копии и как воспроизвести анализ.
Когда использовать
- ✓Когда нужно загрузить данные с таких платформ, как OpenNeuro или DANDI.
- ✓Если файл выглядит как битая ссылка или маленький текстовый файл вместо самих данных.
- ✓Когда нужно гарантировать, что анализ можно точно повторить в будущем.
Ссылка на скилл
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/datalad/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Как скачать все данные для моего проекта?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
DataLad использует Git для отслеживания структуры файлов и git-annex для управления содержимым больших файлов. Он сохраняет информацию о том, какие команды были выполнены и какие данные использовались, чтобы вы или другие люди могли воспроизвести результаты.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
…
Частые вопросы
Почему мои файлы выглядят как битые ссылки?
Это происходит потому, что DataLad по умолчанию загружает только структуру файлов. Чтобы скачать содержимое нужных файлов, используйте команду 'datalad get'.
Как обеспечить воспроизводимость анализа?
Выполняйте команды через 'datalad run'. Она автоматически записывает, какие файлы были входными, а какие выходными, чтобы вы или другие люди могли позже воссоздать анализ.
В чем разница между Git и DataLad?
Git отлично подходит для кода и небольших текстовых файлов. DataLad построен на Git и git-annex, чтобы управлять большими файлами и обеспечивать воспроизводимость научных анализов.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 51k
- Место в рейтинге
- #3446
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
13c-metabolic-flux
51kОценивает метаболические потоки по данным изотопной метки углерода-13 для анализа клеточного метаболизма.
adaptyv
51kПланирует эксперименты по характеристике белков через API Adaptyv: стоимость, отправка последовательностей и результаты.
aeon
51kРешает задачи машинного обучения на временных рядах: классификация, прогноз, аномалии и паттерны.
alphagenome
51kНаходит заранее рассчитанные эффекты генетических вариантов с оценками и объяснениями.
Похожие скиллы
discrawl
394kПозволяет агенту искать и кратко пересказывать сохраненный локальный архив сообщений Discord, проверять его свежесть и читать личные сообщения.
clickhouse-io
280kПомогает агенту оптимизировать запросы и схемы в ClickHouse по лучшим практикам аналитики. Используйте, когда аналитические запросы слишком медленные.
scientific-db-pubmed-database
280kПомогает агенту искать научные статьи в биомедицине. Полезен для исследований, где нужна точная медицинская информация.