Skip to content

cpp-lln-lab/CPP_mat_tsv_conversion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conversions between tsv <--> matrix

convert_mat2tsv:

This script will take an SPM onset file that has 3 variables:

  • names: [dimensions: 1 x number of conditions]
  • onsets: in TR units [dimensions: 1 x number of conditions]
  • durations: in TR units [dimensions: 1 x number of conditions]

The output of the script will be a tsv file with all conditions where onsets and durations will be in seconds.

convert_tsv2mat:

This script will take a tsv file (unit of time is seconds) and convert it to an SPM onset file that has 3 variables:

  • names: [dimensions: 1 x number of conditions]
  • onsets: in TR units [dimensions: 1 x number of conditions]
  • durations: in TR units [dimensions: 1 x number of conditions]

The output of the script will be an ONSET mat file that will be used by SPM in the FFX analysis. The onsets and durations will be in TR units.

Attached one tsv and one onset.mat example files that you can experiment with.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%