pybids icon indicating copy to clipboard operation
pybids copied to clipboard

BIDS StatsModels creation wizard

Open adelavega opened this issue 4 years ago • 4 comments

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

adelavega avatar May 17 '21 20:05 adelavega

Did a quick search for CLI wizard packages, and Questionary might do.

effigies avatar May 18 '21 14:05 effigies

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 ;)

yarikoptic avatar May 18 '21 17:05 yarikoptic

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.

effigies avatar May 18 '21 17:05 effigies

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.

adelavega avatar Mar 01 '22 22:03 adelavega