Code Monkey home page Code Monkey logo

preprocessingfnirs's People

Contributors

smburns47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

preprocessingfnirs's Issues

news fNIRSFilterPipeline breaks + potential bug with BaselineVolatilityCorrection?

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.

Screen Shot 2020-04-28 at 12 37 46 AM

Continued issue with fNIRSFilterPipeline

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.