bids-standard / pybids

Python tools for querying and manipulating BIDS datasets.
https://bids-standard.github.io/pybids/
MIT License
219 stars 121 forks source link

ohbm hackathon idea: pybids (+analysis) in the browser #982

Open adelavega opened 1 year ago

adelavega commented 1 year ago

the idea of running pybids in the browser using things like pyodide has been tried before, but with the soon adoption of ancpbids backend, it may actually be possible.

it would be particularly interesting to allow running reports on datasets, and stats models, to facilitate their development.

if this succeeds, this would be a first step towards revamping neuroscout / bids stats model specification UX to work on local datasets, without any tool installation.

surchs commented 1 year ago

hey, ho. Thanks for suggesting this @adelavega. I'd be up for trying it again! We made some very limited progress last year on it here https://github.com/neurobagel/browbids. I'd be especially interested in the BidsLayout part of it to extract metadata.

adelavega commented 1 year ago

cool, let's look into it.

this does sort of depend on the ancpbids backend otherwise pybids has too many dependencies / too slow, i would think

surchs commented 1 year ago

yes, exactly. sqlite would not work with pyodide (and maybe other dependencies too), so ancpbids is what you'd need to run it. I also think one tricky bit is going to get access to the files in the browser filesystem, so you can go and look inside of them.