I'm using Biosemi (.bdf) data. Is there a way to import it into PsPM? I've tried converting it from .bdf to .mat in eeglab and then manually change it to fit PsPM's needs, but thought it would be more straigtforward if you have a converter function already.
Another point is: I was getting an error while folllowing the GLM tutorial data in Matlab R2012a (at the Review first-level model step). There, in the function scr_rev_glm.m, line 141, the bit of code get(groot) doesn't run in R2012 -it was introduced in 2014 I think. This can be solved by replacing the line with the following:
corder = get(0, 'defaultAxesColorOrder');
or with
fh = figure;
corder = get(fh, 'defaultAxesColorOrder');
Best, and thanks
Elisa
Last edit: Elisa Filevich 2015-09-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for trying out PsPM and for the bug report - we will be working on the GLM review module.
There is a direct Biosemi import in PsPM. Please let us know if it does not work for you. We only have limited test data and are keen to get problematic cases.
Thanks
Dominik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this morning I had a look at the bug you have mentioned and then uploaded a fix into the SVN repository (slightly changed your suggestion). The fix will be available in the next release and should solve the problem for all Matlab versions. To solve the problem for you I'd suggest to either fix the code yourself (as you suggested by replacing groot with 0) or to download the current version from the SVN.
best regards
Tobias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the help. Biosemi import does work, that was my fault.
Thanks, I now downloaded the new version from the repository. I found another small thing remaining: in file scr_glm.m, the new mean functio is used %Y = (Y - mean(Y, 'omitnan'))/std(Y, 'omitnan');
This is not supported in matlab R2012. I replaced the 'omitnan' argument and used nanmean and nanstd instead. Maybe it's not necessary to make these changes if people aren't using old versions of matlab, I just thought I'd let you know.
Best and thanks
Elisa
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for pointing that out. I have now committed a new version of scr_glm with a small fix to avoid using 'omitnan' with the functions std and mean. I hope this solves the problem.
best regards
Tobias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, first the question:
I'm using Biosemi (.bdf) data. Is there a way to import it into PsPM? I've tried converting it from .bdf to .mat in eeglab and then manually change it to fit PsPM's needs, but thought it would be more straigtforward if you have a converter function already.
Another point is: I was getting an error while folllowing the GLM tutorial data in Matlab R2012a (at the Review first-level model step). There, in the function scr_rev_glm.m, line 141, the bit of code get(groot) doesn't run in R2012 -it was introduced in 2014 I think. This can be solved by replacing the line with the following:
corder = get(0, 'defaultAxesColorOrder');
or with
fh = figure;
corder = get(fh, 'defaultAxesColorOrder');
Best, and thanks
Elisa
Last edit: Elisa Filevich 2015-09-04
Hi Elisa
thanks for trying out PsPM and for the bug report - we will be working on the GLM review module.
There is a direct Biosemi import in PsPM. Please let us know if it does not work for you. We only have limited test data and are keen to get problematic cases.
Thanks
Dominik
Hi Elisa
this morning I had a look at the bug you have mentioned and then uploaded a fix into the SVN repository (slightly changed your suggestion). The fix will be available in the next release and should solve the problem for all Matlab versions. To solve the problem for you I'd suggest to either fix the code yourself (as you suggested by replacing groot with 0) or to download the current version from the SVN.
best regards
Tobias
Hi Tobias and Dominik,
Thanks for the help. Biosemi import does work, that was my fault.
Thanks, I now downloaded the new version from the repository. I found another small thing remaining: in file scr_glm.m, the new mean functio is used %Y = (Y - mean(Y, 'omitnan'))/std(Y, 'omitnan');
This is not supported in matlab R2012. I replaced the 'omitnan' argument and used nanmean and nanstd instead. Maybe it's not necessary to make these changes if people aren't using old versions of matlab, I just thought I'd let you know.
Best and thanks
Elisa
Hi Elisa
Thank you for pointing that out. I have now committed a new version of scr_glm with a small fix to avoid using 'omitnan' with the functions std and mean. I hope this solves the problem.
best regards
Tobias