TECHNOLOGY

DataLad clone versus get: dataset identity and available content

In this article
THE QUICK TAKE

A DataLad dataset can describe a file before its bytes are present locally; clone and content retrieval solve different parts of access.

A visible path need not contain local data

DataLad combines dataset versioning with management of file content through Git and git-annex. A newly obtained dataset can contain the information needed to identify files while their large contents remain elsewhere. This is useful when a researcher needs only a subset of a much larger collection.

An illustrative audio project may expose a directory of recordings immediately after cloning. A training loader can still fail when opening a selected recording because its bytes have not yet been retrieved. Directory visibility and readiness for decoding are separate observations.

Clone obtains the dataset structure

The documented clone command obtains a dataset and initializes its annex when appropriate. It does not immediately install every nested dataset recursively. A registered subdataset has its own dataset identity and version relationship to the parent, rather than being merely an ordinary populated directory.

Preserve the parent revision when reproducing an experiment that spans subdatasets. Updating one nested dataset to a newer state can change the input collection even if the parent directory names look unchanged. Inspect the recorded relationship instead of relying on path names alone.

Get materializes requested content

The get command retrieves content known to the dataset, using available locations and configured source priorities. It can also install relevant subdatasets when recursion is enabled. Its no-data option distinguishes obtaining dataset handles from obtaining file contents.

Request the paths needed for the planned experiment, then check the result before starting a GPU job. A known remote location is not proof that the current machine can reach it or is authorized to read it. Keep retrieval failures separate from failures in the model or decoder.

Understand annex-managed paths

The handbook explains how annexed files can appear as links to content in the annex object store, with different behavior on adjusted filesystems. Ordinary Git-managed text files can behave differently from large annex-managed artifacts. A familiar file extension alone does not establish which mechanism manages a particular path.

Avoid manually rearranging the annex object store to repair a missing file. Use the dataset’s content-management operations and inspect the known locations. The logical dataset path and physical storage location serve different purposes in the versioning workflow.

Prepare an explicit experiment subset

A useful preparation record names the dataset revision, selected paths, subdataset revisions and successfully obtained content. Verify that the intended examples can be decoded before scheduling the full workload. This proposed preparation step makes storage readiness visible alongside data identity.

DataLad helps preserve and retrieve a versioned collection. It does not make an unavailable external source permanently available or establish that a retrieved annotation is correct. Those limitations should remain distinct from the successful installation of the dataset itself.

Primary references

DataLad get.

DataLad clone.

DataLad handbook: data integrity.

Related explanations: Artifact provenance; Data preparation memory.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles