smburns47 / preprocessingfnirs Goto Github PK
View Code? Open in Web Editor NEWUCLA SCN lab preprocessing function for fNIRS data, collected with NIRx
UCLA SCN lab preprocessing function for fNIRS data, collected with NIRx
fNIRSFilterPipeline is breaking for me at hmrIntensity2Conc, which doesn't seem to play nice with NaNs
I thought that moving d(:,SD.MeasListAct==0)=NaN;
down below line 22 [dconverted, ~] = hmrIntensity2Conc(dfiltered, SD, samprate, 0.008, 0.2, [6, 6]);
might fix the issue, with d being changed to dconverted.
I am not sure if it is problematic to be doing motion correction on bad channels and then NaN them out later, but not sure of another workaround to get hmrIntensity2Conc to work.
BaselineVolatilityCorrection is also converting some frames of some channels to NaNs (not sure how?), even when there are no bad channels, which seems like a bug.
Thanks for fixing the issue with BaselineVolatilityCorrection! I continue to get an error that prevents preprocessing from hmrIntensity2Conc when it is called up in fNIRSFilterPipeline. I found that removing d(:,SD.MeasListAct==0)=NaN;
and adding dconverted(:,SD.MeasListAct==0)=NaN;
after hmrIntensity2Conc gets applied fixed the problem, and then I was able to run.
I'm not sure why this error has occurred for me but not others. My reasoning behind why it might not work is that hmrInensity2Conc cannot accept NaN values. So by introducing NaN values into d too early on (and then d becomes dfiltered), they may be interfering with the ability of hmrInensity2Conc to run.
Just want to double check that it's reasonable to move it, without interfering with any preprocessing steps, as I'm not entirely certain about how it works, and don't know if certain calculations look across channels (in which case values that will not be used should not be included).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.