AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
November 14, 2017 03:03PM
I may not have been clear enough so here's some sample bash code that does what I mean, I've put echo commands before the 3dZcutup, 3dTcat, and 3dDecon commands since I don't actually have any data with which to test this. Yo umay need to cut it up even more to get it to fit into memory depending on how many TRs you have, (which you didn't state).

#!/bin/bash

# 162 slices is mulitple of 9
inc=18
for run in $( seq 1 4) ; do
    starts=( $( seq 0 $inc $( expr 162 - $inc ) ) )
    for (( gg=0; gg<${#starts[*]}; gg++ )) ; do
    	start=${starts[$gg]}
	(( end=start + inc -1 ))
	echo 3dZcutup -prefix run$( printf "%02d" $run).zcut.$( printf "%02d" ${gg} ) -keep $start $end my_brik+orig.HEAD
	## touch run$( printf "%02d" $run).zcut.$( printf "%02d" ${gg} )
    done
done

## echo gg now stores the number of cuts or groups of slices

## now that the runs are broken into groups of 18 slices you can run
## 3dTcat to get all the tuns together for analysis with 3dDecon

for (( gg=0; gg<${#starts[*]}; gg++ )) ; do
    echo 3dTcat -prefix all.runs.zcut$( printf "%02d" ${gg} ) run??.zcut.$( printf "%02d" ${gg} )
    ## touch all.runs.zcut$( printf "%02d" ${gg} )
    echo 3dDeconvolve -input all.runs.zcut$( printf "%02d" ${gg} ) -prefix stats_zcut$( printf "%02d" ${gg} )
done

## now concat all the zcuts together
## 3dZcat -prefix stats stats_zcut??+orig.HEAD
Subject Author Posted

3dDeconvolve running out of memory

Phil Burton November 14, 2017 12:35PM

Re: 3dDeconvolve running out of memory

Colm Connolly November 14, 2017 01:42PM

Re: 3dDeconvolve running out of memory

Phil Burton November 14, 2017 01:54PM

Re: 3dDeconvolve running out of memory

Colm Connolly November 14, 2017 03:03PM

Re: 3dDeconvolve running out of memory

Phil Burton November 14, 2017 03:17PM

Re: 3dDeconvolve running out of memory

rick reynolds November 14, 2017 10:05PM

Re: 3dDeconvolve running out of memory

Phil Burton November 15, 2017 04:55PM