fnirsr - An R package to analyse ETG-4000 fNIRS data
Published:
As I mentioned in my previous post, I’m getting to grips with analysing fNIRS data collected on a Hitachi ETG-4000. A recording session can be saved as a raw CSV file (here’s an example), and it’s fairly straightforward to parse: the top section is a header, and the raw data starts at line 41.
I wrote a set of basic R functions to handle the early stages of the analysis and wrapped them in an R package. It’s still very much an early alpha (pre-alpha, really) — the documentation is sparse and there are no unit tests yet. I only have a handful of raw CSV files, and while they work fine with my functions, I can’t vouch for how robust the code is.
Even so, I reckon it’s worth releasing early and improving the functions over time.
The package can be found on GitHub and it can be installed with the following command:
devtools::install_github("erykwalczak/fnirsr")
A vignette (Rmd) is here.
HTML vignette:
I couldn’t find any other R packages that handle these files, so do get in touch if you’re working (or have worked) on something similar. Pull requests are very welcome.
