Quantcast
Channel: NITRC CONN : functional connectivity toolbox Forum: help
Viewing all 6879 articles
Browse latest View live

S7-1214C & PC - TCP conn. problem

$
0
0
I stuck with creating a simple connection between S7-1214C and PC. I used the TCONinstruction toestablish the connection(from the TCP conn. example). Regardless of the simple TCON instruction I couldn'tmanage to create the connection. blush

ThePC and theCPU are visible on theLAN and arein the same subnet. After the REQ for conn.the flag BUSY is always ON and the status is 7002. I can never get the DONE or ERRORflag.I deactivated the firewall and the antiviruson th PC to be sure that the port is open (2000) anddeactivate all other functions in the CPU except the TCON call,butthe problem remain the same.mad

The see more deeply into the TCP comm. I used Wireshark to analyze the comm. Apparently, something is wrong in the TCP handshake! The first packet form the CPUis SYN but the reply from the PC is RST-ACKwhich is used to terminate the connection. The reply from the PC should be SYN-ACK...Itried the connection to the different PC also - but theproblemremains.

What else I could try to establish the communication?

Thanks in advance for your suggestions and advices.

Kind regards,

ERROR message 1st level ROI to ROI analysis

$
0
0
Dear Alfonso, 

I am processing 171 subjects for ROI to ROI analysis. I have just launched the 1st level analysis but this error appeared in the step 3/3 "preparing second level analysis":

ERROR DESCRIPTION:

Error using matlab.graphics.primitive.Patch/set
While setting the 'FaceColor' property of Patch:
Color value contains NaN, or element out of range 0.0 <= value <= 1.0
Error in conn_timedwaitbar (line 60)
set(findobj(b,'tag','patch'),'facecolor',(1-a)*[.2 .2 .8]+a*[.8 .8 .2]); %(1-a)*[5/6,2/6,1.5/6]+a*[1.5/6,5/6,2/6]);
Error in conn_process>conn_waitbar (line 4884)
else h=conn_timedwaitbar(varargin{:}); end
Error in conn_process (line 3790)
conn_waitbar(n/N,h,sprintf('Subject %d Condition %d',nsub,ncondition));
Error in conn_process (line 42)
case 'analyses_gui_seedandroi',disp(['CONN: RUNNING ANALYSIS STEP (ROI-to-ROI or seed-to-voxel analyses)']); conn_process([10,11,15],varargin{:});
Error in conn (line 6559)
else conn_process('analyses_gui_seedandroi',CONN_x.Analysis); ispending=false;
Error in conn_menumanager (line 120)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN v.18.a
SPM12 + DEM FieldMap MEEGtools suit
Matlab v.2015a
storage: 1192.7Gb available
spm @ C:\spm12
conn @ C:\conn18a\conn


Any help would be appreciated,

Thank you in advance for the help and support,

best,

Maria.

RE: conn preprocessing history

$
0
0
Hi,

I have the same question. Does anyone know where to get this information?

Thank you.
Jordon

conn18b_maci64.zip

$
0
0
Hi all,

I would like to use the standalone version of conn for Mac. Is conn18b_maci64.zip currently available for download? The installation instructions refer to this zip file.

Thanks very much,

Nick

RE: 2nd-Level Result Change After Adding Unrelated ROI

$
0
0
Hi Sam, 

[color=#000000]Did you manage to figure out what changed? I am in a similar situation - added new seeds and now previous results for original ROIs have changed and I can't figure out why.[/color]

[color=#000000]Thanks![/color]
Megha

BETA map dimensions clarification in surface space

$
0
0
Hi,

I just finished a functional connectivity analysis in subject space using the freesurfer surfaces as structural images and telling the script to use surface-based voxel resolution for the analysis (setting batch.Setup.voxelresolution=4). I am now trying to convert the output BETA maps from the 1st level analysis to a surface overlay to view and do further processing in freesurfer. I'm trying to make sense of the BETA map output format. It says the volume of the output nifti is a 42x83x94 3D matrix, which has the same number of indices as vertices on the surface of fsaverage. How do the values of the nifti volume map onto the fsaverage cortical surface if I wanted to do analysis of vertex adjacent BETA values outside of CONN? Hope to hear back soon, thank you!

-Matt Defenderfer

RE: Mixed ANOVA interaction - contrasts vectors for 2nd level

$
0
0
Hi Avihay,

Regarding (1) - testing the main effect of No_treat, given what you've written - would entail entering the contrast [0 0 1] rather than [-.5 -.5 1]. The latter is similar to asking if for some conditions there's a between-subject difference between those who got any sort of treatment, and those who didn't.

Regarding (2) - I think that a more relevant question you can ask is whether there's a timeXtreatment [b]interaction[/b]. This means that, based on the conditions you've chosen in the screenshot - you'd be entering [1 -1 -1 1], which represents  (PreNB - PreLBL) - (PostNB-PostLBL), or - is there a difference in slopes/mean connectivity values between treatments and across timepoints.

Hope this helps,

Best,

Yuval.


[i]Originally posted by avihay:[/i][quote]Hello,

My study design:
* 3 groups of treatment (between subjects).
* Each group underwent 2 separate sessions (Pre and Post treatment).
* Each session contains two conditions ("Baseline" block and "Neurofeedback" block).

1. Subjects effects:

Let's say that the groups' names are: Treat_1, Treat_2, No_treat. 
Is this the correct way to test for main effect of No_treat (assuming I'm analyzing all subjects)?
[-0.5 -0.5 1]

2. Between conditions contrasts:

I want to test if the [b]difference[/b] between two "Post" conditions (the one-sided contrast: "Post Baseline - "Post Neurofeedback") is greater than the [b]difference[/b] between two "Pre" conditions (the one-sided contrast: "Pre Baseline" - "Pre Neurofeedback").
Is there a straightforward way to do it?

The only thing I could think of is:
Conditions order: "Pre Baseline", "Pre Neurofeedback", "Post Baseline", "Post Neurofeedback".

[0 0 1 -1]

which I guess regresses out the "Pre" conditions altogether (i.e. tests for differences in "Post" conditions given any differences in "Pre" conditions).

(I've added the conditions as instructed here in the forum, assigning pre and post conditions separately to each session in [i]"Setup"[/i], so that each session would contain both pre and post conditions, but "duration" and "onset" for each condition are defined only in the relevant places according to the respective sessions).

** Illustration Attached

Thank you in advance,
Avihay[/quote]

Data in ROI REX files

$
0
0
Dear CONN Community,

I am working with the extracted BOLD signal data that is output in the REX files after the set-up step in CONN, and I am hoping to get some clarification on what data are in these files.

1) For any given ROI of interest, are the BOLD signal values in the REX file confound corrected (movement, CSF, WM), or are they just raw values? My assumption is that they are raw but need to confirm this. 

2) In the WM and CSF ROI REX files there are 16 variables. The first appears to be the raw signal and the remaining 15 appear to be the CompCor values for the principle components. However, in the denoising step in CONN, both the WM and CSF show that only 5 confounding effects will be regressed. Does the CompCor method only use the first 5 principle components for denoising?  

3) Is there any data file that is output after set-up that contains data for the 12 movement confounding variables? If so, where would I find this?

Any input or guidance is much appreciated! Thank you for such a great toolbox!

Best Wishes,
Allison

what are the values that are imported when I "import values"

$
0
0
Hello,

I'm currently working on an ROI-to-ROI analysis. During the first-level analysis, I selected "correlation (bivariate)" as my measure of connectivity. In the second-level analysis, I've found some significant connections of interest. In order to further assess those connections, I've extracted connectivity values for each participant via the "import values" function. I was under the impression that these values were r-values that described the correlation between the activity in the two ROIs in question. However, when I scroll through the values, I see some that are greater than 1, which would suggest that they are some other type of value. Can you please tell me precisely what values are being reported in the "import values" function? 

Best,

Garrett Cardon

Dyn-ICA single subject ROI results

$
0
0
Dear CONN users,
I am analyzing some rest fMRI data using CONN. I'm trying to get the results of a single subject dynamic and static connectivity. Where can I find the ROI correlation values of each participant?
Also, what brain atlas is CONN using? And what are the ROI radii size?

Thank you for your answers :)

RE: Loading conn files in SPM

$
0
0
Hi both,

Were you able to find an answer to your question?

Thanks in advance!
Best, laila

using nuisance regressors in SPM

$
0
0
I figured out a way to import CONN confounds to the SPM fMRI design. I want to do standard BOLD activation and I wondered if CONN confounds, which are way more comprehensive than those proposed in SPM (e.g. motion time derivatives, scrubbing, QC timeseries, whole tissue ROIs, PCA of ROIs, etc...), would bring some advantages to SPM analysis, as compared to the standard SPM pipeline which typically only includes 6 motion parameters.
Best
Pedro

RE: basic question about gPPI conditions

$
0
0
Hi Everyone,

I also have this same question Michael asked, and extended. We have a delayed incentive task where people see either alcohol, food or neutral cues. They then see a quick target and press a button while the target is still on the screen to try and win. There is then a feedback stage of whether they won or lost. I am wanting to do gPPI, but wondering:

1) I want to analyze the cue phase and feedback phase separately. Is it appropriate when looking at the cue phase, at the 1st level, only select the cue regressors? Or, is it still necessary to also select the feedback regressors putting zeros for them in the 2nd level contrast - and visa-versa?

2) Related, if it is ok to only select the cue or feedback regressors (depending on which analysis I am doing) I am currently interested in? For example, when looking at alcohol > neutral cues, should I just load those regressors for the first level, or also include the food cue, as they are all cues?

Thanx in advance and many blessing,
Benson Stevens

Congratulations for this amazing release!

$
0
0
Dear Alfonso,

Congratulations and thank you very much for this amazing new release of CONN v18b! I have read the changelog and I am excited by the changes!

Just a few quick questions:
* Is it possible to use the preprocessing pipelines in CONN standalone? Without SPM? (or we also need to install SPM standalone in this case?)
* The 'functional_smooth_masked' preprocessing step is an amazing idea, but is it really an advantage? I guess the idea is to avoid noise spillage from WM and CSF to the GM signal, but isn't this noise also what allows to get a more gaussian shaped signal, which is one of the main goals of smoothing? Also is there a publication that used this technique maybe?
* Unrelated to the release but I had this question in mind for some time: when some subjects have signal loss in a large area (say a whole hemisphere), is it impacting second-level results for other subjects as well? In other words, should I expect that this hemisphere results will be nullified in any case, even if other subjects show a signal there?

Thank you very much for your enlightened advices!
Best regards,
Stephen

How to make it faster?

$
0
0
Dear Alfonso,

Thanks for your continuing effort in improving the Conn toolbox! It has been a pretty helpful toolbox to us!

I'm going to use the conn toolbox in functional connectivity analysis of more than 200 subjects. The data which is few terabytes is store on an external hard drive that is connected to my laptop through USB 3.0. I'm going to run the analysis on my own laptop, so I've realized that it can take a VERY long time. Perhaps more than a week... Right?

Would you please give me some tips on how I can make it faster? I can't keep the data on my laptop since it's too large.

- Should I make/save the conn mat file also on the external hard drive, or will it be faster if I make it on my laptop?

- I'm going to use the toolbox pre-processing step on structural data for segmentation and normalization, and let the toolbox transfer the GM, WM, and CSF masks to ROIs. Will it be faster if I run this preprocessing using SPM first and upload the preprocessed data to ROIs directly? Or won't it make any difference?

- Is there anything else I can do to make the analysis faster?

Thanks a lot in advance!
Haleh

Chosing ROI's as seeds

$
0
0
I just added some new ROI's to a previous set-up in CONN. When I reach the second-level analysis I can see that the new ROI's do appear but aren't available for me to choose as seeds (only the ROI's I initially had used to run the analysis the first time are available). My question is: how can I chose the newly added ROI's as seeds? 

Thank you.

RE: Data in ROI REX files

$
0
0
[color=#000000]Dear Allison,[/color]

[color=#000000]Regarding (1), yes, exactly, the values in those REX files are just the raw values (before Denoising)[/color]

[color=#000000]Regarding (2), yes, exactly, as well. Five is the default number of components used by aCompCor in CONN denoising pipeline, but of course you may modify that in the [i]Denoising [/i]tab by selecting any of those two components and changing the "confound dimensions" entry before running the Denoising step)[/color]

[color=#000000]And regarding (3), not explicitly. The files named rp_*.txt generated during realignment will contain the 6 motion parameters (three translation and three rotation parameters), but the additional 6 parameters (consisting on the first-order temporal derivatives of the above) are computed on the fly during the Denoising step but never explicitly stored in an output file. If you want you may explicitly compute/create new files with those 12 parameters using something like:[/color]

[color=#000000]   f = conn_module('get','l1covariates','realignment'); [/color]
[color=#000000]   cellfun(@(x)spm_save(conn_prepend('e',x,'.csv'),[load(x) gradient(load(x)')']),[f{:}]);[/color]

(this will create a new set of files -one for each subject and session- named erp_*.csv in the same folders as the original rp_*.txt realignment files but containing the 12 motion parameters instead)

[color=#000000]Hope this helps[/color]
[color=#000000]Alfonso[/color]
[i]Originally posted by allison_shapiro:[/i][quote]Dear CONN Community,

I am working with the extracted BOLD signal data that is output in the REX files after the set-up step in CONN, and I am hoping to get some clarification on what data are in these files.

1) For any given ROI of interest, are the BOLD signal values in the REX file confound corrected (movement, CSF, WM), or are they just raw values? My assumption is that they are raw but need to confirm this. 

2) In the WM and CSF ROI REX files there are 16 variables. The first appears to be the raw signal and the remaining 15 appear to be the CompCor values for the principle components. However, in the denoising step in CONN, both the WM and CSF show that only 5 confounding effects will be regressed. Does the CompCor method only use the first 5 principle components for denoising?  

3) Is there any data file that is output after set-up that contains data for the 12 movement confounding variables? If so, where would I find this?

Any input or guidance is much appreciated! Thank you for such a great toolbox!

Best Wishes,
Allison[/quote]

Realign and Unwarp Issue

$
0
0
Hi Alfonso,

I am running into an issue with 3 subjects (88 others process without error), where the realign & unwarp preprocessing fails at the spm_uw_apply.m step. 

The BOLD files for the problematic subjects do not differ from other subjects when looking at orientation, # volumes, dimensions, etc with programs like 3dinfo. Please let me know if anyone has any advice. 

Best,
- Harris


SPM12: spm_uw_estimate (v6824) 14:58:45 - 26/12/2018
========================================================================
Completed : 14:59:50 - 26/12/2018

SPM12: spm_uw_apply (v6301) 14:59:50 - 26/12/2018
========================================================================
Computing mask... : Failed 'Realign & Unwarp'
Matrix dimensions must agree.
In file "/autofs/space/rainier_001/users/harris/spm12/spm_uw_apply.m" (v6301), function "spm_uw_apply" at line 229.
In file "/autofs/space/rainier_001/users/harris/spm12/config/spm_run_realignunwarp.m" (v6554), function "spm_run_realignunwarp" at line 98.
The following modules did not run:
Failed: Realign & Unwarp
Failed: Realign & Unwarp
Failed: Realign & Unwarp

how to do functional preprocessing and denoising only with structural image preprocessed

$
0
0
Dear CONN experts,

I am encountering a "[b]Not ready to process step conn_process_5[/b]" problem when doing functional preprocessing and denoising only but cannot find an answer elsewhere.

My experiment involves multiple tasks, and each participant has one functional image for each task and one structural image. To reduce computational time, i did structural image preprocessing first and then planned to use the preprocessed structural image and the same conn*.mat file for further analysis (functional preprocessing and denoising),so that it will use the structural preprocessing. However, after doing all preprocessing, the denoising did pass through, it reports such info (not 'error') as below and no filtered data was generated. I pasted the commands I used as below. Can any expert help to find out a solution?

Thanks a lot in advance!

Jing

[color=#ff0000]<font color="#008000">Step 1/7: Expanding conditions[/color]</font>
[color=#ff0000]<font color="#008000">100.0% (Condition rest)[/color]</font>

[color=#ff0000]<font color="#008000">Step 2/7: Importing conditions/covariates[/color]</font>
[color=#ff0000]<font color="#008000">100.0% (Subject 1 Session 1)[/color]</font>
[color=#ff0000]<font color="#008000">Step 3/7: Updating Denosing variables[/color]</font>
[color=#ff0000]<font color="#008000">Not ready to process step conn_process_5[/color]</font>
[color=#ff0000]<font color="#008000">saved /media/storage/CausalConnectome/tmsfmri/test/NTHC1003/conn_NTHC1003.mat[/color]</font>

------------------------------------------------------------------
[b][color=#008000]##commands for structural preprocessing[/color][/b]
cwd=[pwd '/' subid];
batch.filename=fullfile(cwd, ['conn_' subid '.mat']);
%% --------------------------------- CONN Set up ----------------------------------
%% data
STRUCTURAL_FILE={[cwd, '/CausCon_' subid '_t1.nii']};
batch.Setup.structurals=STRUCTURAL_FILE;
%% preprocessing steps
batch.Setup.preprocessing.steps={'structural_center','structural_segment&normalize'};
conn_batch(batch)

[color=#008000][b]## commands for functional preprocessing and denoising[/b][/color]
cwd=[pwd '/' subid];
batch.filename=fullfile(cwd, ['conn_' subid '.mat']);
%% --------------------------------- CONN Set up ----------------------------------
batch.Setup.isnew=0; % use the old setting from struct!!!
batch.Setup.overwrite=0; % not overwrite!!!
batch.Setup.RT=2.4;
%% data
FUNCTIONAL_FILE={[cwd, '/func/CausCon_' subid '_tms_' site '.nii.gz']};
batch.Setup.functionals=FUNCTIONAL_FILE;
batch.Setup.outputfiles= [0,1,1,1,1,0]; %Optional output files (outputfiles(1): 1/0 creates confound beta-maps; outputfiles(2): 1/0 creates
% confound-corrected timeseries; outputfiles(3): 1/0 creates seed-to-voxel r-maps) ;outputfiles(4):
% 1/0 creates seed-to-voxel p-maps) ;outputfiles(5): 1/0 creates seed-to-voxel FDR-p-maps);
% outputfiles(6): 1/0 creates ROI-extraction REX files; [0,0,0,0,0,0]

%% preprocessing steps

batch.Setup.preprocessing.steps={'functional_realign&unwarp' ,'functional_center', ...
'functional_normalize_direct','functional_smooth'};
batch.Setup.preprocessing.fwhm=6;
%% --------------------------------- CONN denoising ---------------------------------
batch.Setup.conditions.names={'rest'};
batch.Setup.conditions.onsets{1}{1}{1}=0;
batch.Setup.conditions.durations{1}{1}{1}=inf;
batch.Denoising.filter=[0.008, inf]; % frequency filter (band-pass values, in Hz)
batch.Denoising.confounds.names=... % Effects to be included as confounds (cell array of effect names, effect names can be first-level covariate names, condition names, or noise ROI names)
{'Grey Matter','White Matter','CSF','realignment'};
batch.Denoising.confounds.dimensions=... % dimensionality of each effect listed above (cell array of values, leave empty a particular value to set to the default value -maximum dimensions of the corresponding effect-)
{1, 3, 3, []};
batch.Denoising.confounds.deriv=... % derivatives order of each effect listed above (cell array of values, leave empty a particular value to set to the default value)
{0, 0, 0, 1};
batch.Denoising.overwrite=1; % skip previously-processed subjects
batch.Denoising.done=1; % use default denoising step (CompCor, motion regression, scrubbing, detrending)
end
conn_batch(batch)[b]
[/b]

RE: Leave one out

$
0
0
Kicking this thread to the top to get clarification on the spm_crossvalidation script output.

What does the CV_CONTRASTS variable field indicate?  I see that the STAT = T, but does the "contrast 'connectivity result' cross-validated value(s)" represent?

Likewise, what do the CV_DATA and CV_VOXELS denote?  

Per Jennifer's question, is a t-test against zero on the CV_DATA what is output as the CV_CONTRASTS?

Any guidance on interpretation of this script's output would be most appreciated.

Thanks and warm regards,
Jeff
Viewing all 6879 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>