Shared subcortical-default mode morphological dysconnectivity in adolescent bipolar disorder, major depressive disorder and schizophrenia.
The 3 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Materials and methods › Statistics and reproducibility › Between-group differences in single-subject morphological brain networks ↔ gretna_TFNBS_ftest.m, lines 1–102 · score 0.81 · height enhancement parameters, permutation procedure, post hoc, matrix, TFNBS, threshold
- [2] § Materials and methods › Relationships between disorder-related alterations in single-subject morphological brain networks and neurotransmitter maps ↔ moran_randomization.m, the whole file · a weak match · score 0.60 · spectral randomization, Moran, space, models, correlation
- [3] § Materials and methods › Statistics and reproducibility › Between-group differences in single-subject morphological brain networks ↔ gretna_FDR.m, the whole file · a weak match · score 0.51 · discovery rate, nonparametric, FDR, threshold
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 589 lines · 28 KB · CC-BY-4.0 · 1 match
- function [TFNBS_Result] = gretna_TFNBS_ftest(Data_path, File_filter, M, Mask_net, Pthr, E, H, Cova_path)
- %==========================================================================
- % This function is used to perform the TFNBS algorithm to search
- % connections that show significant group effects for one-way experimental
- % design (more than two groups). NB. 1) self-connections are allowed in this
- % analysis by setting diagnoal elements to be 1 in Mask_net; 2) only data
- % but not covariates are randomly relabeled by reshuffling group membership
- % in the permutation procedure.
- %
- %
- % Syntax: function [TFNBS_Result] = gretna_TFNBS_ftest(Data_path, File_filter, M, Mask_net, Pthr, E, H, Cova_path)
- %
- % Inputs:
- % Data_path:
- % N*1 cell with each cell denoting the directory where
- % connectivity matrices are sorted for each group.
- % File_filter:
- % N*1 cell with each cell denoting the prefix of those
- % connectivity matrices to be processed for each group.
- % M:
- % The number of permutations.
- % Mask_net:
- % The matrix mask containing 0 and 1 and only connections
- % corresponding to 1 are fed in the TFNBS computation.
- % Pthr:
- % The FWE-corrected p-value threshold.
- % E:
- % Extension enhancement parameters(default = 0.5).
- % H:
- % Height enhancement parameters(default = 2).
- % Cova_path (opt):
- % N*1 cell with each cell denoting the directory and filename
- % of covariates for each group. NB. the group order should
- % be the same to that of Data_path.
- %
- % Output:
- % TFNBS_Result.:
- % Fmat:
- % F values for each edge of interest.
- % P_Fmat:
- % P values of Fmat.
- % DF_Fmat:
- % Degree of freedom of Fmat.
- % Tmat:
- % Post hoc T values for each edge of interest. For n groups,
- % the order is: g(1)-g(2), g(1)-g(3), ..., g(1)-g(n),
- % g(2)-g(3), ..., g(2)-g(n), ..., g(n-1)-g(n).
- % P_Tmat:
- % P values of Tmat.
- % DF_Tmat:
- % Degree of freedom of Tmat.
- % TFNBS_f_score:
- % TFNBS-based F values for each edge of interest.
- % TFNBS_f_pval:
- % P values of TFNBS_f_score (FWE-corrected).
- % TFNBS_t_score:
- % Post hoc TFNBS-based T values for each edge of interest.
- % TFNBS_t_pval:
- % P values of TFNBS_t_score (un-corrected, two-tailed).
- % N_sig_edge:
- % The number of edges showing significant group effect.
- % Reg_sig_edge:
- % Nodal indices linked by those edges showing significant
- % group effect.
- % TFNBS_f_score_sig_edge:
- % TFNBS-based F values for those edges showing significant
- % group effect.
- % TFNBS_f_pval_sig_edge:
- % P values of TFNBS_f_score_sig_edge (FWE-corrected).
- % TFNBS_t_score_sig_edge:
- % Post hoc TFNBS-based T values for those edges showing
- % significant group effect.
- % TFNBS_t_pval_sig_edge:
- % P values of TFNBS_t_score_sig_edge (un-corrected, two-tailed).
- %
- % References:
- % Baggio et al., 2018, Statistical inference in brain graphs using threshold-free
- % network-based statistics.
- %
- % Rui WANG, IBRR, SCNU, Guangzhou, 2019/10/11, [email hidden]
- % Yuping YANG, IBRR, SCNU, Guangzhou, 2019/11/30, [email hidden]
- % Jinhui WANG, IBRR, SCNU, Guangzhou, 2019/11/30, [email hidden]
- %==========================================================================
- if nargin == 5
- E = 0.5; H = 2;
- end
- if nargin == 6
- H = 2;
- end
- Ind_mask = find(triu(Mask_net)); % to support functional network analysis, that is, allow within-network self-connections
- N_group = length(Data_path);
- if N_group == 2
- error('This function is used for comparison among more than two groups! For two groups, use gretna_TFNBS_ttest.m!');
- end
- N_sub = zeros(N_group,1);
- Data = cell(N_group,1);
- %% reorganize data
- for i_group = 1:N_group
- cd (Data_path{i_group})
- Mat_file = ls([File_filter{i_group} '*.mat']);
- if ~isempty(Mat_file)
- N_sub(i_group) = size(Mat_file,1);
- Data_igroup = zeros(N_sub(i_group),length(Ind_mask));
- for i_sub = 1:N_sub(i_group)
- Ind_mat = load(Mat_file(i_sub,:));
- Name_field = fieldnames(Ind_mat);
- Ind_mat = Ind_mat.(Name_field{1});
- Data_igroup(i_sub,:) = Ind_mat(Ind_mask);
- end
- else
- Mat_file = ls([File_filter{i_group} '*.txt']);
- N_sub(i_group) = size(Mat_file,1);
- Data_igroup = zeros(N_sub(i_group),length(Ind_mask));
- for i_sub = 1:N_sub(i_group)
- Ind_mat = load(Mat_file(i_sub,:));
- Data_igroup(i_sub,:) = Ind_mat(Ind_mask);
- end
- end
- Data{i_group} = Data_igroup;
- end
- %% ancova or anova for real data
- if nargin == 8
- N_cova = length(Cova_path);
- if N_cova ~= N_group
- error('The number of covariate files is not equal to the number of groups!');
- end
- Cova = cell(N_cova,1);
- for i_cova = 1:N_cova
- [~,~,ext] = fileparts(Cova_path{i_cova});
- switch ext
- case '.txt'
- Cova{i_cova} = load(Cova_path{i_cova});
- case '.mat'
- Ind_cova = load(Cova_path{i_cova});
- Name_field = fieldnames(Ind_cova);
- Cova{i_cova} = Ind_cova.(Name_field{1});
- end
- end
- [Fvec,P_Fvec,DF_Fvec,Post_Tvec, Post_P_Tvec, Post_DF_Tvec] = gretna_ancova1(Data,Cova);
- else
- [Fvec,P_Fvec,DF_Fvec,Post_Tvec, Post_P_Tvec, Post_DF_Tvec] = gretna_ancova1(Data);
- end
- %% TFNBS for real data
- % F test
- Fmat = zeros(size(Mask_net));
- P_Fmat = zeros(size(Mask_net));
- DF_Fmat.group = zeros(size(Mask_net));
- DF_Fmat.error = zeros(size(Mask_net));
- Fmat(Ind_mask) = Fvec;
- Fmat = Fmat + triu(Fmat,1)'; % to support functional network analysis, that is, allow within-network self-connections
- Fmat(isnan(Fmat)) = 0;
- P_Fmat(Ind_mask) = P_Fvec;
- P_Fmat = P_Fmat + triu(P_Fmat,1)'; % to support functional network analysis, that is, allow within-network self-connections
- DF_Fmat.group(Ind_mask) = DF_Fvec.group;
- DF_Fmat.group = DF_Fmat.group + triu(DF_Fmat.group,1)'; % to support functional network analysis, that is, allow within-network self-connections
- DF_Fmat.error(Ind_mask) = DF_Fvec.error;
- DF_Fmat.error = DF_Fmat.error + triu(DF_Fmat.error,1)'; % to support functional network analysis, that is, allow within-network self-connections
- F_thr = linspace(0,max(Fvec),101);
- TFNBS_f_score = zeros([size(Mask_net),101]);
- for i_thr = 1:101
- F_suprathres = Fmat;
- F_suprathres(F_suprathres >= F_thr(i_thr)) = nan;
- F_suprathres(~isnan(F_suprathres)) = 0;
- F_suprathres(isnan(F_suprathres)) = 1;
- [F_ci, F_n_node] = components(sparse(F_suprathres));
- F_n_com = length(F_n_node);
- for i_com = 1:F_n_com
- F_ind_subn = find(F_ci == i_com);
- F_subn = F_suprathres(F_ind_subn,F_ind_subn);
- F_subn = triu(F_subn); % to support functional network analysis, that is, allow within-network self-connections
- F_size = sum(F_subn(:)); % to support functional network analysis, that is, allow within-network self-connections
- F_subn(F_subn~=0) = (F_size^E)*(F_thr(i_thr)^H);
- F_subn = F_subn + triu(F_subn,1)';
- TFNBS_f_score(F_ind_subn,F_ind_subn,i_thr) = F_subn;
- end
- end
- TFNBS_f_score = sum(TFNBS_f_score,3);
- % post hoc T test
- Tmat = zeros([size(Mask_net),size(Post_Tvec,1)]);
- P_Tmat = zeros([size(Mask_net),size(Post_Tvec,1)]);
- DF_Tmat = zeros([size(Mask_net),size(Post_Tvec,1)]);
- for i_post = 1:size(Post_Tvec,1)
- Tmat_i_post = zeros(size(Mask_net));
- P_Tmat_i_post = zeros(size(Mask_net));
- DF_Tmat_i_post = zeros(size(Mask_net));
- Tmat_i_post(Ind_mask) = Post_Tvec(i_post,:);
- Tmat_i_post = Tmat_i_post + triu(Tmat_i_post,1)'; % to support functional network analysis, that is, allow within-network self-connections
- Tmat(:,:,i_post) = Tmat_i_post;
- Tmat(isnan(Tmat)) = 0;
- P_Tmat_i_post(Ind_mask) = Post_P_Tvec(i_post,:);
- P_Tmat_i_post = P_Tmat_i_post + triu(P_Tmat_i_post,1)'; % to support functional network analysis, that is, allow within-network self-connections
- P_Tmat(:,:,i_post) = P_Tmat_i_post;
- DF_Tmat_i_post(Ind_mask) = Post_DF_Tvec(i_post,:);
- DF_Tmat_i_post = DF_Tmat_i_post + triu(DF_Tmat_i_post,1)'; % to support functional network analysis, that is, allow within-network self-connections
- DF_Tmat(:,:,i_post) = DF_Tmat_i_post;
- end
- TFNBS_t_score = zeros([size(Mask_net),size(Post_Tvec,1)]);
- for i_post = 1:size(Post_Tvec,1)
- TFNBS_t_score_i_post = zeros([size(Mask_net),101]);
- % only positive
- if min(Post_Tvec(i_post,:)) >= 0
- T_thr_pos = linspace(0,max(Post_Tvec(i_post,:)),101);
- for i_thr = 1:101
- T_suprathres_pos = Tmat(:,:,i_post);
- T_suprathres_pos(T_suprathres_pos >= T_thr_pos(i_thr)) = nan;
- T_suprathres_pos(~isnan(T_suprathres_pos)) = 0;
- T_suprathres_pos(isnan(T_suprathres_pos)) = 1;
- [T_ci_pos, T_n_node_pos] = components(sparse(T_suprathres_pos));
- T_n_com_pos = length(T_n_node_pos);
- for i_com = 1:T_n_com_pos
- T_ind_subn_pos = find(T_ci_pos == i_com);
- T_subn_pos = T_suprathres_pos(T_ind_subn_pos,T_ind_subn_pos);
- T_subn_pos = triu(T_subn_pos); % to support functional network analysis, that is, allow within-network self-connections
- T_size_pos = sum(T_subn_pos(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_pos(T_subn_pos~=0) = (T_size_pos^E)*(T_thr_pos(i_thr)^H);
- T_subn_pos = T_subn_pos + triu(T_subn_pos,1)';
- TFNBS_t_score_i_post(T_ind_subn_pos,T_ind_subn_pos,i_thr) = T_subn_pos;
- end
- end
- TFNBS_t_score(:,:,i_post) = sum(TFNBS_t_score_i_post,3);
- % only negative
- elseif max(Post_Tvec(i_post,:)) <= 0
- T_thr_neg = -linspace(0,-min(Post_Tvec(i_post,:)),101);
- for i_thr = 1:101
- T_suprathres_neg = Tmat(:,:,i_post);
- T_suprathres_neg(T_suprathres_neg <= T_thr_neg(i_thr)) = nan;
- T_suprathres_neg(~isnan(T_suprathres_neg)) = 0;
- T_suprathres_neg(isnan(T_suprathres_neg)) = 1;
- [T_ci_neg, T_n_node_neg] = components(sparse(T_suprathres_neg));
- T_n_com_neg = length(T_n_node_neg);
- for i_com = 1:T_n_com_neg
- T_ind_subn_neg = find(T_ci_neg == i_com);
- T_subn_neg = T_suprathres_neg(T_ind_subn_neg,T_ind_subn_neg);
- T_subn_neg = triu(T_subn_neg); % to support functional network analysis, that is, allow within-network self-connections
- T_size_neg = sum(T_subn_neg(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_neg(T_subn_neg~=0) = -(T_size_neg^E)*(T_thr_neg(i_thr)^H);
- T_subn_neg = T_subn_neg + triu(T_subn_neg,1)';
- TFNBS_t_score_i_post(T_ind_subn_neg,T_ind_subn_neg,i_thr) = T_subn_neg;
- end
- end
- TFNBS_t_score(:,:,i_post) = sum(TFNBS_t_score_i_post,3);
- else
- T_thr_pos = linspace(0,max(Post_Tvec(i_post,:)),101);
- T_thr_neg = -linspace(0,-min(Post_Tvec(i_post,:)),101);
- for i_thr = 1:101
- % positive
- T_suprathres_pos = Tmat(:,:,i_post);
- T_suprathres_pos(T_suprathres_pos >= T_thr_pos(i_thr)) = nan;
- T_suprathres_pos(~isnan(T_suprathres_pos)) = 0;
- T_suprathres_pos(isnan(T_suprathres_pos)) = 1;
- [T_ci_pos, T_n_node_pos] = components(sparse(T_suprathres_pos));
- T_n_com_pos = length(T_n_node_pos);
- Tmp_pos = zeros(size(Mask_net));
- for i_com = 1:T_n_com_pos
- T_ind_subn_pos = find(T_ci_pos == i_com);
- T_subn_pos = T_suprathres_pos(T_ind_subn_pos,T_ind_subn_pos);
- T_subn_pos = triu(T_subn_pos); % to support functional network analysis, that is, allow within-network self-connections
- T_size_pos = sum(T_subn_pos(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_pos(T_subn_pos~=0) = (T_size_pos^E)*(T_thr_pos(i_thr)^H);
- T_subn_pos = T_subn_pos + triu(T_subn_pos,1)';
- Tmp_pos(T_ind_subn_pos,T_ind_subn_pos) = T_subn_pos;
- end
- % negative
- T_suprathres_neg = Tmat(:,:,i_post);
- T_suprathres_neg(T_suprathres_neg <= T_thr_neg(i_thr)) = nan;
- T_suprathres_neg(~isnan(T_suprathres_neg)) = 0;
- T_suprathres_neg(isnan(T_suprathres_neg)) = 1;
- [T_ci_neg, T_n_node_neg] = components(sparse(T_suprathres_neg));
- T_n_com_neg = length(T_n_node_neg);
- Tmp_neg = zeros(size(Mask_net));
- for i_com = 1:T_n_com_neg
- T_ind_subn_neg = find(T_ci_neg == i_com);
- T_subn_neg = T_suprathres_neg(T_ind_subn_neg,T_ind_subn_neg);
- T_subn_neg = triu(T_subn_neg); % to support functional network analysis, that is, allow within-network self-connections
- T_size_neg = sum(T_subn_neg(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_neg(T_subn_neg~=0) = -(T_size_neg^E)*(T_thr_neg(i_thr)^H);
- T_subn_neg = T_subn_neg + triu(T_subn_neg,1)';
- Tmp_neg(T_ind_subn_neg,T_ind_subn_neg) = T_subn_neg;
- end
- TFNBS_t_score_i_post(:,:,i_thr) = Tmp_pos + Tmp_neg;
- end
- TFNBS_t_score(:,:,i_post) = sum(TFNBS_t_score_i_post,3);
- end
- end
- %% permutation test
- Data = cell2mat(Data);
- Ind_start = zeros(N_group,1);
- Ind_start(1) = 1;
- for i_group = 1:N_group-1
- Ind_start(i_group+1) = sum(N_sub(1:i_group))+1;
- end
- max_TFNBS_f_score_rand = zeros(M,1);
- TFNBS_t_score_rand = zeros([size(Mask_net),size(Post_Tvec,1),M]);
- for i_per = 1:M
- Ind_rand = randperm(sum(N_sub));
- Data_rand = cell(N_group, 1);
- for i_group = 1:N_group
- Data_rand{i_group} = Data(Ind_rand(Ind_start(i_group):sum(N_sub(1:i_group))),:);
- end
- if nargin == 8
- [Fvec_rand,~,~,Post_Tvec_rand,~,~] = gretna_ancova1(Data_rand,Cova);
- else
- [Fvec_rand,~,~,Post_Tvec_rand,~,~] = gretna_ancova1(Data_rand);
- end
- % F test
- Fmat_rand = zeros(size(Mask_net));
- Fmat_rand(Ind_mask) = Fvec_rand;
- Fmat_rand = Fmat_rand + triu(Fmat_rand,1)'; % to support functional network analysis, that is, allow within-network self-connections
- Fmat_rand(isnan(Fmat_rand)) = 0;
- F_thr_rand = linspace(0, max(Fvec_rand), 101);
- TFNBS_f_score_rand = zeros([size(Mask_net),101]);
- for i_thr = 1:101
- F_suprathres_rand = Fmat_rand;
- F_suprathres_rand(F_suprathres_rand >= F_thr_rand(i_thr)) = nan;
- F_suprathres_rand(~isnan(F_suprathres_rand)) = 0;
- F_suprathres_rand(isnan(F_suprathres_rand)) = 1;
- [F_ci_rand, F_n_node_rand] = components(sparse(F_suprathres_rand));
- F_n_com_rand = length(F_n_node_rand);
- for i_com = 1:F_n_com_rand
- F_ind_subn_rand = find(F_ci_rand == i_com);
- F_subn_rand = F_suprathres_rand(F_ind_subn_rand,F_ind_subn_rand);
- F_subn_rand = triu(F_subn_rand); % to support functional network analysis, that is, allow within-network self-connections
- F_size_rand = sum(F_subn_rand(:)); % to support functional network analysis, that is, allow within-network self-connections
- F_subn_rand(F_subn_rand~=0) = (F_size_rand^E)*(F_thr_rand(i_thr)^H);
- F_subn_rand = F_subn_rand + triu(F_subn_rand,1)';
- TFNBS_f_score_rand(F_ind_subn_rand,F_ind_subn_rand,i_thr) = F_subn_rand;
- end
- end
- TFNBS_f_score_rand = sum(TFNBS_f_score_rand,3);
- max_TFNBS_f_score_rand(i_per) = max(TFNBS_f_score_rand(:));
- % for post hoc T test
- for i_post = 1:size(Post_Tvec_rand,1)
- Tmat_rand = zeros(size(Mask_net));
- Tmat_rand(Ind_mask) = Post_Tvec_rand(i_post,:);
- Tmat_rand = Tmat_rand + triu(Tmat_rand,1)'; % to support functional network analysis, that is, allow within-network self-connections
- Tmat_rand(isnan(Tmat_rand)) = 0;
- TFNBS_t_score_ipost_rand = zeros([size(Mask_net),101]);
- % only positive
- if min(Post_Tvec_rand(i_post,:)) >= 0
- T_thr_pos_rand = linspace(0,max(Post_Tvec_rand(i_post,:)),101);
- for i_thr = 1:101
- T_suprathres_pos_rand = Tmat_rand;
- T_suprathres_pos_rand(T_suprathres_pos_rand >= T_thr_pos_rand(i_thr)) = nan;
- T_suprathres_pos_rand(~isnan(T_suprathres_pos_rand)) = 0;
- T_suprathres_pos_rand(isnan(T_suprathres_pos_rand)) = 1;
- [T_ci_pos_rand, T_n_node_pos_rand] = components(sparse(T_suprathres_pos_rand));
- T_n_com_pos_rand = length(T_n_node_pos_rand);
- for i_com = 1:T_n_com_pos_rand
- T_ind_subn_pos_rand = find(T_ci_pos_rand == i_com);
- T_subn_pos_rand = T_suprathres_pos_rand(T_ind_subn_pos_rand,T_ind_subn_pos_rand);
- T_subn_pos_rand = triu(T_subn_pos_rand); % to support functional network analysis, that is, allow within-network self-connections
- T_size_pos_rand = sum(T_subn_pos_rand(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_pos_rand(T_subn_pos_rand~=0) = (T_size_pos_rand^E)*(T_thr_pos_rand(i_thr)^H);
- T_subn_pos_rand = T_subn_pos_rand + triu(T_subn_pos_rand,1)';
- TFNBS_t_score_ipost_rand(T_ind_subn_pos_rand,T_ind_subn_pos_rand,i_thr) = T_subn_pos_rand;
- end
- end
- TFNBS_t_score_rand(:,:,i_post,i_per) = sum(TFNBS_t_score_ipost_rand,3);
- % only negative
- elseif max(Post_Tvec_rand(i_post,:)) <= 0
- T_thr_neg_rand = -linspace(0,-min(Post_Tvec_rand(i_post,:)),101);
- for i_thr = 1:101
- T_suprathres_neg_rand = Tmat_rand;
- T_suprathres_neg_rand(T_suprathres_neg_rand <= T_thr_neg_rand(i_thr)) = nan;
- T_suprathres_neg_rand(~isnan(T_suprathres_neg_rand)) = 0;
- T_suprathres_neg_rand(isnan(T_suprathres_neg_rand)) = 1;
- [T_ci_neg_rand, T_n_node_neg_rand] = components(sparse(T_suprathres_neg_rand));
- T_n_com_neg_rand = length(T_n_node_neg_rand);
- for i_com = 1:T_n_com_neg_rand
- T_ind_subn_neg_rand = find(T_ci_neg_rand == i_com);
- T_subn_neg_rand = T_suprathres_neg_rand(T_ind_subn_neg_rand,T_ind_subn_neg_rand);
- T_subn_neg_rand = triu(T_subn_neg_rand); % to support functional network analysis, that is, allow within-network self-connections
- T_size_neg_rand = sum(T_subn_neg_rand(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_neg_rand(T_subn_neg_rand~=0) = -(T_size_neg_rand^E)*(T_thr_neg_rand(i_thr)^H);
- T_subn_neg_rand = T_subn_neg_rand + triu(T_subn_neg_rand,1)';
- TFNBS_t_score_ipost_rand(T_ind_subn_neg_rand,T_ind_subn_neg_rand,i_thr) = T_subn_neg_rand;
- end
- end
- TFNBS_t_score_rand(:,:,i_post,i_per) = sum(TFNBS_t_score_ipost_rand,3);
- else
- T_thr_pos_rand = linspace(0,max(Post_Tvec_rand(i_post,:)),101);
- T_thr_neg_rand = -linspace(0,-min(Post_Tvec_rand(i_post,:)),101);
- for i_thr = 1:101
- % positive
- T_suprathres_pos_rand = Tmat_rand;
- T_suprathres_pos_rand(T_suprathres_pos_rand >= T_thr_pos_rand(i_thr)) = nan;
- T_suprathres_pos_rand(~isnan(T_suprathres_pos_rand)) = 0;
- T_suprathres_pos_rand(isnan(T_suprathres_pos_rand)) = 1;
- [T_ci_pos_rand, T_n_node_pos_rand] = components(sparse(T_suprathres_pos_rand));
- T_n_com_pos_rand = length(T_n_node_pos_rand);
- Tmp_pos_rand = zeros(size(Mask_net));
- for i_com = 1:T_n_com_pos_rand
- T_ind_subn_pos_rand = find(T_ci_pos_rand == i_com);
- T_subn_pos_rand = T_suprathres_pos_rand(T_ind_subn_pos_rand,T_ind_subn_pos_rand);
- T_subn_pos_rand = triu(T_subn_pos_rand); % to support functional network analysis, that is, allow within-network self-connections
- T_size_pos_rand = sum(T_subn_pos_rand(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_pos_rand(T_subn_pos_rand~=0) = (T_size_pos_rand^E)*(T_thr_pos_rand(i_thr)^H);
- T_subn_pos_rand = T_subn_pos_rand + triu(T_subn_pos_rand,1)';
- Tmp_pos_rand(T_ind_subn_pos_rand,T_ind_subn_pos_rand) = T_subn_pos_rand;
- end
- % negative
- T_suprathres_neg_rand = Tmat_rand;
- T_suprathres_neg_rand(T_suprathres_neg_rand <= T_thr_neg_rand(i_thr)) = nan;
- T_suprathres_neg_rand(~isnan(T_suprathres_neg_rand)) = 0;
- T_suprathres_neg_rand(isnan(T_suprathres_neg_rand)) = 1;
- [T_ci_neg_rand, T_n_node_neg_rand] = components(sparse(T_suprathres_neg_rand));
- T_n_com_neg_rand = length(T_n_node_neg_rand);
- Tmp_neg_rand = zeros(size(Mask_net));
- for i_com = 1:T_n_com_neg_rand
- T_ind_subn_neg_rand = find(T_ci_neg_rand == i_com);
- T_subn_neg_rand = T_suprathres_neg_rand(T_ind_subn_neg_rand,T_ind_subn_neg_rand);
- T_subn_neg_rand = triu(T_subn_neg_rand); % to support functional network analysis, that is, allow within-network self-connections
- T_size_neg_rand = sum(T_subn_neg_rand(:)); % to support functional network analysis, that is, allow within-network self-connections
- T_subn_neg_rand(T_subn_neg_rand~=0) = -(T_size_neg_rand^E)*(T_thr_neg_rand(i_thr)^H);
- T_subn_neg_rand = T_subn_neg_rand + triu(T_subn_neg_rand,1)';
- Tmp_neg_rand(T_ind_subn_neg_rand,T_ind_subn_neg_rand) = T_subn_neg_rand;
- end
- TFNBS_t_score_ipost_rand(:,:,i_thr) = Tmp_pos_rand + Tmp_neg_rand;
- end
- TFNBS_t_score_rand(:,:,i_post,i_per) = sum(TFNBS_t_score_ipost_rand,3);
- end
- end
- fprintf('%d permutation test(s) have been done\n', i_per);
- end
- %% calculate p values
- % FWE-corrected p values for TFNBS_f_score
- TFNBS_f_pval = zeros(size(Mask_net));
- for i_edge = 1:length(Ind_mask)
- TFNBS_f_pval(Ind_mask(i_edge)) = sum(max_TFNBS_f_score_rand > TFNBS_f_score(Ind_mask(i_edge)))/(M+1);
- end
- TFNBS_f_pval = TFNBS_f_pval + triu(TFNBS_f_pval,1)'; % to support functional network analysis, that is, allow within-network self-connections
- % calculate uncorrected, two-tailed p value for post hoc TFNBS_t_score
- TFNBS_t_pval = zeros([size(Mask_net),size(Post_Tvec,1)]);
- for i_post = 1:size(Post_Tvec,1)
- TFNBS_t_pval_i_post = zeros(size(Mask_net));
- for i_edge = 1:length(Ind_mask)
- [Row,Col] = ind2sub(size(Mask_net),Ind_mask(i_edge));
- TFNBS_t_score_rand_i_post_i_edge = squeeze(TFNBS_t_score_rand(Row,Col,i_post,:));
- TFNBS_t_pval_i_post(Row,Col) = sum(abs(TFNBS_t_score_rand_i_post_i_edge)>abs(TFNBS_t_score(Row,Col,i_post)))/(M+1);
- end
- TFNBS_t_pval_i_post = TFNBS_t_pval_i_post + triu(TFNBS_t_pval_i_post,1)'; % to support functional network analysis, that is, allow within-network self-connections
- TFNBS_t_pval(:,:,i_post) = TFNBS_t_pval_i_post;
- end
- % determine edges showing significant group effect
- Ind_sig_edge = find(TFNBS_f_pval(Ind_mask) < Pthr);
- N_sig_edge = length(Ind_sig_edge);
- [Reg_sig_edge(:,1),Reg_sig_edge(:,2)] = ind2sub(size(Mask_net),Ind_mask(Ind_sig_edge));
- TFNBS_f_score_sig_edge = TFNBS_f_score(Ind_mask(Ind_sig_edge));
- TFNBS_f_pval_sig_edge = TFNBS_f_pval(Ind_mask(Ind_sig_edge));
- TFNBS_t_score_sig_edge = zeros(N_sig_edge,size(Post_Tvec,1));
- TFNBS_t_pval_sig_edge = zeros(N_sig_edge,size(Post_Tvec,1));
- for i_post = 1:size(Post_Tvec,1)
- TFNBS_t_score_i_post = TFNBS_t_score(:,:,i_post);
- TFNBS_t_pval_i_post = TFNBS_t_pval(:,:,i_post);
- for i_edge = 1:N_sig_edge
- TFNBS_t_score_sig_edge(:,i_post) = TFNBS_t_score_i_post(Ind_mask(Ind_sig_edge));
- TFNBS_t_pval_sig_edge(:,i_post) = TFNBS_t_pval_i_post(Ind_mask(Ind_sig_edge));
- end
- end
- TFNBS_Result.Fmat = Fmat;
- TFNBS_Result.P_Fmat = P_Fmat;
- TFNBS_Result.DF_Fmat = DF_Fmat;
- TFNBS_Result.Tmat = Tmat;
- TFNBS_Result.P_Tmat = P_Tmat;
- TFNBS_Result.DF_Tmat = DF_Tmat;
- TFNBS_Result.TFNBS_f_score = TFNBS_f_score;
- TFNBS_Result.TFNBS_f_pval = TFNBS_f_pval;
- TFNBS_Result.TFNBS_t_score = TFNBS_t_score;
- TFNBS_Result.TFNBS_t_pval = TFNBS_t_pval;
- TFNBS_Result.N_sig_edge = N_sig_edge;
- TFNBS_Result.Reg_sig_edge = Reg_sig_edge;
- TFNBS_Result.TFNBS_f_score_sig_edge = TFNBS_f_score_sig_edge;
- TFNBS_Result.TFNBS_f_pval_sig_edge = TFNBS_f_pval_sig_edge;
- TFNBS_Result.TFNBS_t_score_sig_edge = TFNBS_t_score_sig_edge;
- TFNBS_Result.TFNBS_t_pval_sig_edge = TFNBS_t_pval_sig_edge;
- return
gretna_TFNBS_ftest.m, under CC-BY-4.0 · at the source
Overview
- Institute for Brain Research and Rehabilitation, South China Normal University, Guangzhou, China
- Department of Child and Adolescent Psychiatry, The Affiliated Brain Hospital, Guangzhou Medical University, Guangzhou, China
- Guangdong Engineering Technology Research Center for Translational Medicine of Mental Disorders, Guangzhou, China
- Key Laboratory of Brain, Cognition and Education Sciences (South China Normal University), Ministry of Education, Guangzhou, China
- Center for Studies of Psychological Application, South China Normal University, Guangzhou, China
- Guangdong Key Laboratory of Mental Health and Cognitive Science, South China Normal University, Guangzhou, China
- Philosophy and Social Science Laboratory of Reading and Development in Children and Adolescents (South China Normal University), Ministry of Education, Guangzhou, China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
figshare 32049330
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
13 files
- gretna_FDR.m, MATLAB, 38 lines, 1 match
- gretna_TFNBS_ftest.m, MATLAB, 589 lines, 1 match
- gretna_centroid_coor_roi
s.m , MATLAB, 49 lines - gretna_removal_covariate
_effect.m , MATLAB, 75 lines - moran_randomization.m, MATLAB, 101 lines, 1 match
- step1_removal_effects.m, MATLAB, 66 lines
- step2_MC.m, MATLAB, 33 lines
- step3_net_para.m, MATLAB, 68 lines
- step4_node_fdr.m, MATLAB, 95 lines
- step5_cotical_T_PET.m, MATLAB, 118 lines
- step6_subcortical_corr_P
ET.m , MATLAB, 103 lines - step7_cotical_T_gene.m, MATLAB, 138 lines
- step8_subcortical_corr_g
ene.m , MATLAB, 94 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: figshare 32049330
- it says that the code is available on request
Read it in the paper: doi.org/10.1038/s42003-026-10237-5.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 13 scripts, each with its path and the digest of its content;
- 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- figshare:32034771, at figshare; found in “Data availability”
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to a dataset: figshare 32034771
- it says that the data are available on request
Read it in the paper: doi.org/10.1038/s42003-026-10237-5.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 2 keywords, 10 MeSH terms, 1 funder, 89 references.
Cite
This paper
Wang, J., Chen, J., Yang, R., Li, J., Wu, Q., Sun, J., Zhang, X., Yang, C., Wang, J., & Cao, L. (2026). Shared subcortical-default mode morphological dysconnectivity in adolescent bipolar disorder, major depressive disorder and schizophrenia. Communications biology, 9(1), 1003. https://
BibTeX
@article{wang2026shared,
author = {Wang, Jing and Chen, Jianshan and Yang, Ruilan and Li, Junle and Wu, Qiuxia and Sun, Jiaqi and Zhang, Xiaofei and Yang, Chanjuan and Wang, Jinhui and Cao, Liping},
title = {{Shared subcortical-default mode morphological dysconnectivity in adolescent bipolar disorder, major depressive disorder and schizophrenia}},
journal = {Communications biology},
year = {2026},
month = may,
volume = {9},
number = {1},
pages = {1003},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/
url = {https://
pmid = {42115418},
pmcid = {PMC13389048}
}
RIS
TY - JOUR
AU - Wang, Jing
AU - Chen, Jianshan
AU - Yang, Ruilan
AU - Li, Junle
AU - Wu, Qiuxia
AU - Sun, Jiaqi
AU - Zhang, Xiaofei
AU - Yang, Chanjuan
AU - Wang, Jinhui
AU - Cao, Liping
TI - Shared subcortical-default mode morphological dysconnectivity in adolescent bipolar disorder, major depressive disorder and schizophrenia
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/
VL - 9
IS - 1
SP - 1003
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Shared subcortical-default mode morphological dysconnectivity in adolescent bipolar disorder, major depressive disorder and schizophrenia",
"container-title": "Communications biology",
"author": [
{
"family": "Wang",
"given": "Jing"
},
{
"family": "Chen",
"given": "Jianshan"
},
{
"family": "Yang",
"given": "Ruilan"
},
{
"family": "Li",
"given": "Junle"
},
{
"family": "Wu",
"given": "Qiuxia"
},
{
"family": "Sun",
"given": "Jiaqi"
},
{
"family": "Zhang",
"given": "Xiaofei"
},
{
"family": "Yang",
"given": "Chanjuan"
},
{
"family": "Wang",
"given": "Jinhui"
},
{
"family": "Cao",
"given": "Liping"
}
],
"container-title-short":
"volume": "9",
"issue": "1",
"page": "1003",
"DOI": "10.1038/
"PMID": "42115418",
"PMCID": "PMC13389048",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
12
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1002/gps3.70014 [code]
- Correspondence between morphological similarity of the left lateral orbitofrontal cortex and neurotransmitter systems in adolescent males with autism.Journal: General psychiatryIn common: SPM, Statistics and Machine Learning Toolbox, developmental, 8 references
- [2] doi:10.1017/s0033291726104711
- Cell-type and spatiotemporal transcriptional signatures of white matter morphometric similarity network alterations in major depressive disorder.Journal: Psychological medicineIn common: depression, 8 references
- [3] doi:10.1038/s41398-026-03965-z [code]
- Disentangling individual heterogeneity reveals robust network and molecular signatures of major depressive disorder with suicidal ideation.Journal: Translational psychiatryIn common: SPM, Statistics and Machine Learning Toolbox, depression, 6 references
- [4] doi:10.1162/netn.a.553 [code]
- MIND versus MSN: A systematic evaluation of test-retest reliability and age sensitivity for T1-weighted structural similarity networks.Journal: Network neuroscience (Cambridge, Mass.)In common: 7 references
- [5] doi:10.1038/s41398-026-04025-2 [code]
- Brain energetic landscapes shape state dysregulation in major depressive disorder: a morphological network controllability perspective.Journal: Translational psychiatryIn common: SPM, Statistics and Machine Learning Toolbox, depression, 5 references
- [6] doi:10.1038/s42003-026-10276-y [code]
- The cellular correlates and adolescent reorganisation of cortical myelination networks in the common marmoset.Journal: Communications biologyIn common: SPM, Statistics and Machine Learning Toolbox, 5 references
- [7] doi:10.1002/hbm.70605 [code]
- BrainEnrich: Revealing Biological Insights for Imaging-Derived Phenotypes Through Transcriptomic Enrichment.Journal: Human brain mappingIn common: SPM, Statistics and Machine Learning Toolbox, depression, 5 references
- [8] doi:10.1038/s41398-026-04073-8 [code]
- Functional connectivity density alterations in obsessive-compulsive disorder are associated with neurotransmitter and genetic profiles.Journal: Translational psychiatryIn common: SPM, Statistics and Machine Learning Toolbox, 6 references
- [9] doi:10.1038/s41593-026-02359-0 [code]
- The cross-site reproducibility of MRI morphometric phenotypes in psychiatric disorders.Journal: Nature neuroscienceIn common: SPM, Statistics and Machine Learning Toolbox, schizophrenia / psychosis, 4 references
- [10] doi:10.1038/s41531-026-01417-5 [code]
- Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease.Journal: NPJ Parkinson's diseaseIn common: SPM, Statistics and Machine Learning Toolbox, 5 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 13 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:892bf88daf580240…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
