neuralfetch.download.Datalad

class neuralfetch.download.Datalad(*, study: str, dset_dir: str | Path, folder: str = 'download', repo_url: str, threads: int = 1, folders: list[str | Wildcard] = [])[source][source]

Download datasets via DataLad and git-annex.

Clones a git-annex repository and optionally retrieves a subset of directories. A password-free SSH key is required for git operations.

Parameters:
  • repo_url (str) – URL of the DataLad repository to clone.

  • threads (int) – Number of parallel download threads for datalad get (default: 1).

  • folders (list of str or Wildcard) – Directories or glob patterns to retrieve after cloning. When empty, all content is retrieved via datalad get "*".