One folder contains 407files named as follows:
s_00001
...
s_00407
. They correspond to a series of NIFTI images captured each 2,1 seconds (s):
s_00001= the first file capturing information between: 0 and 2,1s.
s_00002= the second file capturing information between: 2,1 and 4,2s.
...
s_00407= the last file capturing information between: 852,5 and 854,7s.
The same folder contains a .txt (or .xlsx) file specifying the onsets and offsets of 6 different events in a table with 3 columns. E.g.,
event onset offset
ev1 6,3 8,6
ev2 213,0 222,5
ev3 341,4 381,4
ev4 480,4 484,3
ev5 610,5 632,5
ev6 753,9 759,3
Question:
How can I select and copy the files containing the requested time windows (i.e., events) and pasting them in different folders? E.g.,
New folder "ev1" (Files collected between 6,3 and 8,6)= "s_00004", "s_00005". The file "s_00005" is also required because it collected information during the last 200 milliseconds of this "ev1" event.
The following link has a sample dataset for a better illustration:
https://drive.switch.ch/index.php/s/i1XkhRKVogbY1xJ
Thank you very much in advance.
|