GrattonLab/Kraus_2021_TaskRestVariants
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
The included files and scripts were used in: Kraus et al., 2021. Network variants are similar between task and rest states. NIMG. This code will allow users to match sampling of rest data between tasks (if desired), create network variants, find the spatial overlap of variants, assign them to network templates, and other subsidiary analyses included in the paper. Two main folders of code are included for variant analysis, anaylze_variant_scripts and create_variant_map_scripts. The first scripts you will run are in the create variant map folder. The scripts for creating a variant map use a structure to match data, so if this is desired one can be created for your data using CreateTmaskStruct_MSC.m. The next step is to create the variant maps. The following scripts can be used to create variant maps (and other outputs) with certain data matching constraints: -Make_Rest_Dconns_MSC.m -Make_Task_Dconns_MSC.m -Make_Rest_Dconns_Times_MSC.m -Make_Task_Dconns_Times_MSC.m More information on the specific functions of these scripts is available in their documentation. Once a variant map has been generated, the next step is to threshold it using the threshold_variant_maps_wrapper.m function (and threshold_variant_maps.m). Once the threshold is applied, the code in the analyze variant scripts folder can be used to perform any analysis reported in the paper. For convenience, the scripts are listed in the order they should be run to recreate all of the figures in the paper from after threshold_variant_maps_wrapper.m is run. -Table S3 1.CountVertices.m -Figures 2, S1, S2, S3. 1.TaskReliabilityAnalysis.m or RestReliabilityAnalysis.m -Figures 3, S4, S9. 1.Make_State_Overlap_Maps.m 2.BreakUpOverlapMaps.m (S9 only) 3.CalcTaskActivationsByState.m (S9 only) -Figures 4, S5, S6, S7. 1.DiceCorrelations_CombinedTasks.m -Figure S8 1.Rotate_Parcels_Variant_Magnitude.m -Figure 5, S10, S11, S13 1.AssignNetworksByVertex.m 2.ComputeDiceCorrelationsNetworkVerticesConsensus.m -Figure 6 1.PlotSpatialOverlapBins.m -Figure 7, Figure S12 1.DiceCorrelations_IndividTasks.m All of these scripts require supporting scripts for reading and writing CIFTI and GIFTI files (see more at https://github.com/fieldtrip/fieldtrip/). Modified versions of these scripts are provided in the Resources folder. Connectome Workbench (https://www.humanconnectome.org/software/get-connectome-workbench) is also necessary for running some of the included code. This folder also includes, scripts for computing pairwise correlations in parallel, computing binary (dice) correlations, and Fisher-Z transforming correlation coefficients. Other code is also included for changing file formats and loading/writing files. One option is to run the following command in the MATLAB command window before running the first script: addpath(genpath('/your/path/to/the/Resources/folder/Resources/')) This should also be done for the other folders included in this release. Additionally, supporting .mat or .dtseries.nii (CIFTI) files are included in with this code. Please cite our paper when using any of these scripts (Kraus et al., 2021. Network variants are similar between task and rest states. NIMG). For any questions, problems, or bugs found, please email btkraus@u.northwestern.edu. Thank you!
About
Codebase for Kraus et al. (2021), NIMG
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published