pybids
pybids copied to clipboard
BIDS StatsModels creation wizard
To facilitate with the adoption of BIDS Stats Model, we can developed a CLI wizard to create StatsModels.
If this is useful, we could potentially also upstream these changes into Neuroscout, and/or "BLIMP" (standalone StatsModels creator based on Neuroscout)
h/t to @yarikoptic
Did a quick search for CLI wizard packages, and Questionary might do.
I guess it could be in "whatever" to start with, and questionary seems to be indeed nice. I thought it might fit fitlins or even pybids to not drag it too far away from pybids which I guess should be the workhorse to get all the information about BIDS dataset to drive the dialog. I guess could be just a script on its own anywhere to start with ;)
Yeah, I don't have a problem putting it in pybids, as long as people are okay adding questionary as an at-least-optional dependency.
Just had a chat with @rwblair about this, and we thought that in the end a wizard is still of limited use to most people.
Maybe I'm crazy and wildly underestimating how much work this will take, but I like the idea of building a simple web app to build BIDS StatsModel, taking heavy inspiration from the Neuroscout frontend but written from scratch (whereas BLIMP tried to divorce current Neuroscout frontend from backend API, which was actually fairly hard)
The web app would be launched from command line, run pybids to get variable names on dataset, then allow people to build a model interactively. Finally, you could run interactive reports, although this is a bonus feature.
Ideally, any new features built into this model builder could be modular, such that they could then be imported into Neuroscout later, especially once it can support more sophisticated model types.