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

CC BY-SA 4.0
2019-09-24T18:50:54.837Z
Great that you answered your own question. You can accept it too.
AliceD
CC BY-SA 4.0
2019-09-24T18:24:23.963Z
2019-09-24T18:53:17.717Z
2019-09-24T18:53:17.717Z
G Warner
<p>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?</p>

CC BY-SA 4.0
2019-09-24T08:10:02.553Z
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](https://bioinformatics.stackexchange.com/) a while ago, but they basically have the same hiatus. Good luck.
AliceD
CC BY-SA 4.0
2019-09-24T17:07:47.373Z
@AliceD thank you for your response. Alas, it seems like there is just no place in this world for a lost neuroimaging researcher...
G Warner
CC BY-SA 4.0
2019-09-24T18:48:46.027Z
@GWarner I think most people rely on the software-specific communities. https://www.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.
Bryan Krause
<neuroimaging><fmri><analysis>
Temporally truncate BOLD data
G Warner
# Temporally truncate BOLD data

(Asked by: username_0 on 2019-09-23)

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?

**Tags:** neuroimaging, fmri, analysis

> **Comments:**
> **username_1**: 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](https://bioinformatics.stackexchange.com/) a while ago, but they basically have the same hiatus. Good luck.  
> **username_0**: @username_1 thank you for your response. Alas, it seems like there is just no place in this world for a lost neuroimaging researcher...  
> **username_2**: @GWarner I think most people rely on the software-specific communities. https://www.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.  

---

## 1 answers

### Answer by username_0 on 2019-09-24. Score: 2 | Accepted answer

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

> **Comments:**
> **username_1**: Great that you answered your own question. You can accept it too.  

---

