2
$\begingroup$

I'm analyzing some resting-state data and some of the scans are 10 min while others are 7 min. I need to cut the last 3 min off of those with 10 min scans so everyone has 7 min of resting-state data. I realize I could just delete timeseries columns after processing but I'd like to perform the truncation earlier so that my temporal filtering isn't biased. I believe there's an FSL tool to accomplish this but can't find it. Any suggestions?

$\endgroup$
3
  • $\begingroup$ Welcome. Great question. I just wish to note that we unfortunately don't have dedicated imaging folks hanging around here afaik. I inquired over at Bioinformatics a while ago, but they basically have the same hiatus. Good luck. $\endgroup$
    – AliceD
    Commented Sep 24, 2019 at 8:10
  • $\begingroup$ @AliceD thank you for your response. Alas, it seems like there is just no place in this world for a lost neuroimaging researcher... $\endgroup$
    – G Warner
    Commented Sep 24, 2019 at 17:07
  • 1
    $\begingroup$ @GWarner I think most people rely on the software-specific communities. jiscmail.ac.uk/cgi-bin/webadmin?A0=fsl for you. Ultimately this is just a software limitation, since I do most of my data analysis in Matlab I would have completely different advice to give. $\endgroup$
    – Bryan Krause
    Commented Sep 24, 2019 at 18:48

1 Answer 1

2
$\begingroup$

It looks like fslroi is the tool I'm looking for. To temporally truncate a scan the usage would be fslroi <input> <output> <tmin> <tsize> where <tmin> would be zero and <tsize> would be the number of volumes you want to keep. Now I just need to figure out how many volumes make up 7 minutes...

$\endgroup$
1
  • 1
    $\begingroup$ Great that you answered your own question. You can accept it too. $\endgroup$
    – AliceD
    Commented Sep 24, 2019 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.