Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ebrains-downloader

A CLI tool for downloading whole-slide images from EBRAINS

A command-line tool to download .ndpi files from an EBRAINS dataset, filtered by diagnosis name.

article link

Usage

uvx (no install required)

uvx --from git+https://github.com/HokuMedAI/ebrains-downloader ebrains-downloader --diagnosis Haemangiopericytoma --output /path/to/output

Multiple diagnoses:

uvx --from git+https://github.com/HokuMedAI/ebrains-downloader ebrains-downloader --diagnosis Haemangiopericytoma Schwannoma

Diagnosis names containing spaces must be quoted:

uvx --from git+https://github.com/HokuMedAI/ebrains-downloader ebrains-downloader --diagnosis "Fibrous meningioma"

git clone + uv run

git clone https://github.com/HokuMedAI/ebrains-downloader
cd ebrains-downloader
uv run ebrains-downloader --diagnosis Haemangiopericytoma --output /path/to/output

Arguments

Option Description Default
--diagnosis Diagnosis name(s) (required, multiple allowed) —
--output Output directory downloads

Output structure

Downloaded files and the annotation CSV are saved under the output directory:

downloads/
├── annotation.csv
├── Haemangiopericytoma/
│   ├── <uuid>.ndpi
│   └── ...
└── Fibrous meningioma/
    ├── <uuid>.ndpi
    └── ...

Authentication

Authentication is handled automatically via fairgraph. You will be prompted to log in to your EBRAINS account on first use.

Auto-resume

Interrupted downloads are automatically resumed from where they left off.

Issues

Please report bugs and feature requests at GitHub Issues.

About

CLI tool to download files from the EBRAINS data proxy, filtered by diagnosis.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages