Homer3 icon indicating copy to clipboard operation
Homer3 copied to clipboard

Two livescript examples

Open Horschig opened this issue 3 years ago • 2 comments

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.

Horschig avatar Feb 09 '22 11:02 Horschig

This is great. Our documentation that is similar is in need of an update.

sstucker avatar Feb 09 '22 20:02 sstucker

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.

vijayiyer05 avatar Feb 11 '22 23:02 vijayiyer05

Please merge if all is fine, we cannot do so.

Horschig avatar Sep 28 '23 12:09 Horschig

thanks! it would be really awesome if you could also check https://github.com/BUNPC/Homer3/pull/184 please!

Horschig avatar Jan 17 '24 15:01 Horschig