Homer3
Homer3 copied to clipboard
Two livescript examples
Hi,
we have made two livescripts (here also incluided as .m files for review) as examples on how to use Homer3. We will probably feature those livescripts in an upcoming blog post on our website also. We would like to share it with you. If you think it deserves a place in the Homer3 repository, please feel free to include is. Unfortunately, we didn't find a way to show the mlx script on Github directly so that it could be used e.g. in the wiki.
This is great. Our documentation that is similar is in need of an update.
Great to see these lively (!) scripts for Homer.
Thanks @Horschig for setting up the M file placeholders, very helpful. I added a couple of inline comments above. One of them only depends on String
which has been around since R2015, so could be considered now.
A few other suggestions:
- Consider running the GLM example with demo data, so the live script includes graph outputs
- Consider adding a "demo" variable that could point to a fixed sample file when TRUE and use the
uigetfile
when FALSE.- In future version, this could be implemented as a live control to make it easy to toggle. Live controls were introduced in R2018a.
- Consider a title for the Simple pipeline
Regarding showing the live script, the File Exchange has a rendering service for live scripts. You can check out the "Examples" tab of the BrainStat entry to see an example.
Each rendered live script is linkable from that tab. So you could point people to these at reference examples, e.g. from the README. I do this right at the top of the README on one of my projects, the Brain Observatory Toolbox.
Please merge if all is fine, we cannot do so.
thanks! it would be really awesome if you could also check https://github.com/BUNPC/Homer3/pull/184 please!