pybids icon indicating copy to clipboard operation
pybids copied to clipboard

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

Open adelavega opened this issue 1 year ago • 3 comments

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.

adelavega avatar Apr 14 '23 20:04 adelavega

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.

surchs avatar Apr 14 '23 20:04 surchs

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

adelavega avatar Apr 14 '23 23:04 adelavega

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.

surchs avatar Apr 19 '23 19:04 surchs