help
help > RE: Generate Scrubbing Covariate w/ Alternative FD metrics?
May 11, 2020 07:05 PM | Paul Cernasov
RE: Generate Scrubbing Covariate w/ Alternative FD metrics?
Hi Alfonso,
Thank you for the reply and the explanation. I try entering your code below and I get the following error.
conn_convertl12l1covariate('scrubbing' , 0.2, [], 'QC_FDpower', 'scrubbingFD', []);
Error:
Index in position 2 is invalid. Array indices must be positive intergers or logical values.
Error in line 274
y5(nsub)=max(y5(nsub), max(abs(data(:,end-1)),[],1) ); %MaxGSchange
The code will only run if I enter a number in the second bracket, but the resulting scrubbing variable is always empty. Would you be able to advise?
Best,
Paul
Originally posted by Alfonso Nieto-Castanon:
Thank you for the reply and the explanation. I try entering your code below and I get the following error.
conn_convertl12l1covariate('scrubbing' , 0.2, [], 'QC_FDpower', 'scrubbingFD', []);
Error:
Index in position 2 is invalid. Array indices must be positive intergers or logical values.
Error in line 274
y5(nsub)=max(y5(nsub), max(abs(data(:,end-1)),[],1) ); %MaxGSchange
The code will only run if I enter a number in the second bracket, but the resulting scrubbing variable is always empty. Would you be able to advise?
Best,
Paul
Originally posted by Alfonso Nieto-Castanon:
Hi Paul,
Typically scrubbing expects 2 timeseries in the QC_timeseries input (framewise displacement and global-signal change) instead of just 1 timeseries as in your QC_FDpower input. In any way, it is perfectly fine to define an alternative scrubbing covariate based on thresholding only the QC_FDpower timeseries, you could do that, for example, using the syntax:
conn_convertl12l1covariate('scrubbing' , thr, [], 'QC_FDpower', 'scrubbingFD', []);
where thr is your desired FD threshold (see "doc conn_convertl12l1covariate" for details; the key is simply the [] part at the end which is going to suppress the creation of the default QC_motion and QC_GSchange second-level covariates)
Best
Alfonso
Typically scrubbing expects 2 timeseries in the QC_timeseries input (framewise displacement and global-signal change) instead of just 1 timeseries as in your QC_FDpower input. In any way, it is perfectly fine to define an alternative scrubbing covariate based on thresholding only the QC_FDpower timeseries, you could do that, for example, using the syntax:
conn_convertl12l1covariate('scrubbing' , thr, [], 'QC_FDpower', 'scrubbingFD', []);
where thr is your desired FD threshold (see "doc conn_convertl12l1covariate" for details; the key is simply the [] part at the end which is going to suppress the creation of the default QC_motion and QC_GSchange second-level covariates)
Best
Alfonso
Threaded View
| Title | Author | Date |
|---|---|---|
| Paul Cernasov | May 7, 2020 | |
| Alfonso Nieto-Castanon | May 9, 2020 | |
| Paul Cernasov | May 11, 2020 | |
| Alfonso Nieto-Castanon | May 13, 2020 | |
| Paul Cernasov | May 13, 2020 | |
