-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for Revision 1: Updates to code (new spatial specificity anal…
…yses) and manuscript (more specific discussion, related to transferability of approach to other systems), README
- Loading branch information
Showing
32 changed files
with
3,054 additions
and
760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
[submodule "Code/Toolboxes/tnufmri"] | ||
path = Code/Toolboxes/tnufmri | ||
url = git@tnurepository.ethz.ch:lkasper/tnufmri.git | ||
[submodule "Code/Toolboxes/UniQC"] | ||
path = Code/Toolboxes/UniQC | ||
url = git@gitlab.ethz.ch:uniqc/uniqc-code.git | ||
[submodule "Code/Toolboxes/UniQC-Tasks"] | ||
path = Code/Toolboxes/UniQC-Tasks | ||
url = git@gitlab.ethz.ch:uniqc/uniqc-tasks.git | ||
[submodule "Code/Toolboxes/export_fig"] | ||
path = Code/Toolboxes/export_fig | ||
url = https://github.com/altmany/export_fig.git | ||
[submodule "Code/Toolboxes/PhysIO"] | ||
path = Code/Toolboxes/PhysIO | ||
url = git@tnurepository.ethz.ch:physio/physio-public.git | ||
[submodule "Code/Toolboxes/spm12"] | ||
path = Code/Toolboxes/spm12 | ||
url = git@tnurepository.ethz.ch:SPM/spm12.git | ||
[submodule "Code/Toolboxes/TAPAS"] | ||
path = Code/Toolboxes/TAPAS | ||
url = https://github.com/translationalneuromodeling/tapas.git | ||
[submodule "Code/Toolboxes/export_fig"] | ||
path = Code/Toolboxes/export_fig | ||
url = https://github.com/altmany/export_fig.git | ||
[submodule "Code/Toolboxes/ismrmrd"] | ||
path = Code/Toolboxes/ismrmrd | ||
url = https://github.com/ismrmrd/ismrmrd.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.asv | ||
*.m~ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
function qcImages = check_quality(fileNameNifti) | ||
% Computes Quality Control measures for nifti time series and plots the | ||
% relevant ones | ||
% | ||
% qcImages = check_quality(fileNameNifti) | ||
% | ||
% IN | ||
% | ||
% OUT | ||
% qcImages cell(nImages,1) of MrImage, relevant quality control | ||
% images, e.g., mean/tsnr/maxdiffabs etc. | ||
% | ||
% EXAMPLE | ||
% check_quality | ||
% | ||
% See also | ||
% | ||
% Author: Lars Kasper | ||
% Created: 2018-05-23 | ||
% Copyright (C) 2018 Institute for Biomedical Engineering | ||
% University of Zurich and ETH Zurich | ||
% | ||
% This file is part of the TAPAS UniQC Toolbox, which is released | ||
% under the terms of the GNU General Public License (GPL), version 3. | ||
% You can redistribute it and/or modify it under the terms of the GPL | ||
% (either version 3 or, at your option, any later version). | ||
% For further details, see the file COPYING or | ||
% <http://www.gnu.org/licenses/>. | ||
% | ||
% $Id: new_function2.m 354 2013-12-02 22:21:41Z kasperla $ | ||
|
||
Y = MrImage(fileNameNifti); | ||
|
||
Y.mean.plot() | ||
Y.std.plot() | ||
Y.snr.plot() | ||
|
||
plot(abs(Y-mean(Y)), 'useSlider', 'true'); | ||
|
||
plot(image2k(Y-mean(Y)), 'useSlider', 'true'); | ||
|
||
|
||
|
||
qcImages{1} = Y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
%% model specification | ||
TR = 3.128 | ||
physio_path = ... | ||
fileExplicitMask = '';% fullfile(data_path, 'masks', 'brain_mask.nii'); | ||
|
||
% timing in seconds | ||
data.glm.timingUnits = 'secs'; | ||
% repetition time | ||
data.glm.repetitionTime = TR; | ||
% model derivatives | ||
data.glm.hrfDerivatives = [0 0]; %[1 1]; | ||
% noise model FAST | ||
data.glm.serialCorrelations = 'FAST'; | ||
% add conditions | ||
% specify block length first | ||
block_length = 18; | ||
% specify first condition | ||
first_condition = [1 5 7 11 13 17]; | ||
first_condition_onsets = first_condition*block_length; | ||
% specify second condition | ||
second_condition = [2 4 8 10 14 16]; | ||
second_condition_onsets = second_condition*block_length; | ||
% add to glm | ||
data.glm.conditions.names = {'simple', 'complex'}; | ||
data.glm.conditions.onsets = {second_condition_onsets, first_condition_onsets}; | ||
% add durations | ||
data.glm.conditions.durations = {block_length, block_length}; | ||
% add confound regressors | ||
confound_regressors = load(fullfile(physio_path,'multiple_regressors.txt')); | ||
data.glm.regressors.other = confound_regressors; | ||
% add an explicit mask | ||
data.glm.explicitMasking = fileExplicitMask; | ||
% turn of inplicit masking threshold; | ||
data.glm.maskingThreshold = -Inf; | ||
|
||
% compute stat images | ||
data.compute_stat_images; | ||
% estimate | ||
data.specify_and_estimate_1st_level; |
39 changes: 39 additions & 0 deletions
39
Code/Representation/Revision1/create_figure_readout_duration_t2star.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
function fhArray = create_figure_readout_duration_t2star() | ||
%Compares full spiral readout to cropped one (1mm, 37ms) to show effect of | ||
%longer readout under T2* | ||
% | ||
% fhArray = create_figure_readout_duration_t2star() | ||
% | ||
% Note: This needs to run SPIFI_0007_MainReconstructImages of | ||
% recon-scripts-spifi (git@tnurepository.ethz.ch:laymm/recon-scripts-spifi.git) | ||
% at commit 8a79c10886f27fc83419d720ddf936f9cf026a69 before | ||
% | ||
% IN | ||
% | ||
% OUT | ||
% | ||
% EXAMPLE | ||
% create_figure_readout_duration_t2star | ||
% | ||
% See also | ||
|
||
% Author: Lars Kasper | ||
% Created: 2020-06-18 | ||
% Copyright (C) 2020 Institute for Biomedical Engineering | ||
% University of Zurich and ETH Zurich | ||
% | ||
% This file is part of the TAPAS UniQC Toolbox, which is released | ||
% under the terms of the GNU General Public License (GPL), version 3. | ||
% You can redistribute it and/or modify it under the terms of the GPL | ||
% (either version 3 or, at your option, any later version). | ||
% For further details, see the file COPYING or | ||
% <http://www.gnu.org/licenses/>. | ||
% | ||
|
||
X = MrImage | ||
X.read_data_from_graphics_handle(21) | ||
Y = MrImage | ||
Y.read_data_from_graphics_handle(14) | ||
X.plot | ||
Y.plot | ||
plot(abs(X./max(X)-Y./max(Y))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.