Re: [Erppcatoolkit-support] Problem loading/appending data and question
Brought to you by:
jdien
From: Joseph D. <jd...@ma...> - 2015-05-18 02:44:16
|
Sorry for long delay! I came down with a really bad cold. Sure thing, happy to support innovations like yours! 1) Could you send me a copy of your file so I can test it out? I can’t assume that all such files would trigger the error. I’d don’t remember exactly why I made the change but expect it was to fix a bug of some sort. I’ll see what I can do to come up with a better solution. It’s not possible to use the Single File Mode since it is designed for files where each file is a single waveform and the Widmann variant by definition has multiple waveforms in it. 2) I’ll take a closer look at it. 3) I think that approach makes sense. I do much the same for the function where it provides a test of the lateralization of dipole pairs. Cheers! Joe > On Mar 31, 2015, at 13:11, Andreas Widmann <wi...@un...> wrote: > > Dear Joe and list! > > Thank you for providing your toolbox (and supporting the „Widmann variant“ of the EEGLAB file format; which I didn’t even know that it exists :)))! May I ask three short questions? > > (1) I have a problem appending cells with the above mentioned file format in 2.47 and 2.48 but not in 2.45: > The error is: > > Conversion to double from cell is not possible. > Error in ep_addData (line 287) > EPdataOut.trialSpecs(end+1:end+numAdded,:)=cell(numAdded,size(EPdataIn.trialSpecs,2)); > Error in ep_editData (line 2666) > EPoverview.workData=ep_addData(EPoverview.workData,newData,'cells'); > Error while evaluating uicontrol Callback > > If I add a check in ep_addData whether EPdataIn.trialSpecs is empty (as it was in previous versions) it works: > if ~isempty(EPdataIn.trialSpecs) > EPdataOut.trialSpecs(end+1:end+numAdded,:)=cell(numAdded,size(EPdataIn.trialSpecs,2)); > end > > Would you expect any unexpected side effects from this workaround? Why did you remove the check? (Btw: Is there a way to use the single cell file mode for reading this file format? Couldn’t get that to work. Most probably due to my ignorance.) > > (2) Only short suggestion: In ep_addEloc, line 134 ... > if ~isempty(eloc(i).labels) && ~isempty(eloc(i).theta) && isempty(eloc(i).type) > … it could be helpful to check whether theta is numeric before wiping. EEGLAB pop_chanedit always ignores type when importing ced-files even if it is contained in the file. This practically disables importing electrode locations if one does not know that the type field has to be filled manually. > > (3) My main question: I would like to compare the oddball P3a component latency with the latency of some other external non-ERP psychophysical measurement. Usually, we would do this using jackknifing with some relative peak amplitude criterion. However, I would prefer doing this with a „true" PCA-P3a component and not the ERP-P3a. I cannot separate N1/P2/P3a components with spatial PCA as they are too similar. Now, I hope my question is not too stupid: Do you think it would be a valid approach to do so some kind of jackknifing temporal PCA? That is, performing several temporal PCAs omitting one subject and estimating jackknifing latency from each of the resulting PCA-P3a component time courses? > > Thank you! Best regards, > Andreas > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Erppcatoolkit-support mailing list > Erp...@li... > https://lists.sourceforge.net/lists/listinfo/erppcatoolkit-support |