[Eeglablist] Changing group/condition after precomputation

Kinzel, Chantelle C CKinzel at mednet.ucla.edu
Wed Dec 2 10:56:08 PST 2015


If that is the case then in theory, you could take out of the design all the subjects you want to change and add them back in labeled under the new condition, or the subject ID labeled as something slightly different from the original to designate them as the new condition then precompute just those new ones. This could save some amount of time precomputing, although still not ideal to your goal of avoiding having to re-do the precomputation.

Makoto (or anyone else) do you have any suggestions on how to speed up the rate of precomputing ERSPs?

-Chantelle.


________________________________
From: eeglablist-bounces at sccn.ucsd.edu [eeglablist-bounces at sccn.ucsd.edu] on behalf of Makoto Miyakoshi [mmiyakoshi at ucsd.edu]
Sent: Wednesday, December 02, 2015 10:42 AM
To: Iman Mohammad-Rezazadeh
Cc: EEGLAB List
Subject: Re: [Eeglablist] Changing group/condition after precomputation

Dear Iman,

> Does anyone have any SUCCESSFUL experience about changing group/condition for a subject(s) at STUDY level and after precomputation.

No. If I understand correctly, STUDY design does not have such post-hoc flexibility at all. If you change STUDY design, you need to precompute everything again. A small exception may be that when you add subjects you can precompute the additional ones with the same STUDY design but with different STUDY and integrate into the original STUDY later; you can start from preculustering in this case.

Makoto

On Tue, Dec 1, 2015 at 3:01 PM, Iman Mohammad-Rezazadeh <irezazadeh at ucdavis.edu<mailto:irezazadeh at ucdavis.edu>> wrote:
Hi EEGLABers,
Does anyone have any SUCCESSFUL experience about changing group/condition for a subject(s) at STUDY level and after precomputation. I have been trying to write a script to change STUDY.design data ( see below) and then realized that I have to change STUDY.datasetinfo . I did that but again when I plot the subject data which I changed its grp/condition the old labels showed up in the plot. Then I found I have to change STUDY.changrp as well but it really complicated and hard to track the script.
Any suggestions?
Best,
Iman
function STUDY=Change_Subject_Var(STUDY,design_no,case_no,var_no,new_var_name)
%Change_Subject_Var(STUDY,design_no,case_no,var_no,new_var_name)
no_file=length(STUDY.design(1).cell);
for i=1:no_file
    temp_case=STUDY.design(design_no).cell(i).case;
    if strcmp(temp_case,case_no)
        STUDY.design(design_no).cell(i).value(var_no)=new_var_name;
    end
end

no_file=length(STUDY.datasetinfo);
for i=1:no_file
    temp_case=STUDY.datasetinfo(i).subject;
    if strcmp(temp_case,case_no)
        STUDY.datasetinfo(i).group=cell2mat(new_var_name);


    end
end




end





--
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego

________________________________

IMPORTANT WARNING: This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential. You, the recipient, are obligated to maintain it in a safe, secure and confidential manner. Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20151202/41c64345/attachment.html>


More information about the eeglablist mailing list