torch_brain.utils.openneuro#

OpenNeuro dataset utilities.

This module provides functions for dataset validation, file listing, and downloading from OpenNeuro’s S3 bucket.

OPENNEURO_S3_BUCKET

str(object='') -> str

construct_s3_url_from_path

Construct an S3 URL prefix for a recording.

download_dataset_description

Download dataset_description.json from OpenNeuro S3.

download_recording

Download all files matching an S3 prefix pattern for a recording.

fetch_latest_snapshot_tag

Fetch the latest snapshot tag for an OpenNeuro dataset.

fetch_all_filenames

Fetch all filenames for a given OpenNeuro dataset using AWS S3.

fetch_participants_tsv

Fetch and parse participants.tsv from OpenNeuro S3.

fetch_species

Fetch species metadata for an OpenNeuro dataset from GraphQL.