These are chat archives for epnev/ca_source_extraction

5th
Apr 2017
Kata5
@Kata5
Apr 05 2017 12:01
No, there is no NaN value in my original data (I use my own non-rigid motion correction).
Kata5
@Kata5
Apr 05 2017 12:56
For me it seems that NaN values come into the situation in 'calcAvec' function around the line 267 in 'lars_regression_noise.m'. In my case Mm can be a singular matrix, so avec = Mm\b will be a vector with NaN values. Once 'avec' has NaN values, W, Ws,w_dir and Aw will also have, so roots function throws error.
eftychios pnevmatikakis
@epnev
Apr 05 2017 13:51
@Kata5 the other thing I can possibly think of is that your dataset has a lot of negative values due to offset adjustment. If that's the case, can you subtract the min scalar value to make it nonnegative and try again?
Kata5
@Kata5
Apr 05 2017 16:47
Thank you for your quick answer, @epnev! Well, this data (Y) is between ~80 and 10000, however if you say that singular matrix is not normal at this point, I am checking everything again...