Creating 1D files from txt.files

Hello,

this sounds very basic but I have moiton regressors written in text files after using a different pre-processing pipeline. I was hoping to use the1d_tool.py to create the demean version of my motion parameters to use in my GLM script.

Would there be a way to covert this txt file to .1D file? I apologize if I am asking the wrong group!

Hello,

A 1D file is just a text file containing a rectangular grid of numbers. So you likely do not need to do anything, just use them. A file.txt name should be fine.
Note that if there are multiple runs (first N rows is for run 1), then you can tell that to 1d_tool.py and it will demean the runs individually.
See Example 11 (a,b,c) from the help.
-rick

1 Like

Hello Rick,

Thank you for the quick reply! That makes much more sense. I appreciate your help.