Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #412 from a3sha2/master
Browse files Browse the repository at this point in the history
update html report for cifti
  • Loading branch information
a3sha2 committed Nov 24, 2020
2 parents d876290 + e944890 commit 3fca3eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions modules/regress/regress.mod
Original file line number Diff line number Diff line change
Expand Up @@ -457,23 +457,24 @@ if [[ "$imgname" == *_res-* ]]; then
else
imgprt=${img1[sub]%_*_*_*}
fi

ciftifile=$(ls -f ${imgprt}*bold.dtseries.nii)
giftifile=$(ls -f ${imgprt}*fsnative_hemi-L_bold.func.gii)
exec_sys echo ${ciftifile}

if [[ -f ${ciftifile} ]]; then
mdkir -p ${out[sub]}/figures/ 2>/dev/null
python ${XCPEDIR}/utils/surfaceprocessing.py -p ${prefix} -o ${out[sub]}/regress -f ${out[sub]}/confound2/mc/${prefix}_fd.1D \
exec_sys mkdir -p ${out[sub]}/figures/ 2>/dev/null
exec_sys python ${XCPEDIR}/utils/surfaceprocessing.py -p ${prefix} -o ${out[sub]}/regress -f ${out[sub]}/confound2/mc/${prefix}_fd.1D \
-d ${out[sub]}/confound2/mc/${prefix}_dvars-std.1D -t ${trep} -c ${out[sub]}/confound2/${prefix}_confmat.1D \
-g ${ciftifile} -r ${regress_process[cxt]} -l ${regress_lopass[cxt]} -s ${regress_hipass[cxt]}
fi

if [[ -f ${giftifile} ]]; then

giftifiles=$(ls -f ${imgprt}*fsnative_hemi-*_bold.func.gii)
mdkir -p ${out[sub]}/figures/ 2>/dev/null
exec_sys mkdir -p ${out[sub]}/figures/ 2>/dev/null
for i in ${giftifiles}; do
python ${XCPEDIR}/utils/surfaceprocessing.py -p ${prefix} -o ${out[sub]}/regress -f ${out[sub]}/confound2/mc/${prefix}_fd.1D \
exec_sys python ${XCPEDIR}/utils/surfaceprocessing.py -p ${prefix} -o ${out[sub]}/regress -f ${out[sub]}/confound2/mc/${prefix}_fd.1D \
-d ${out[sub]}/confound2/mc/${prefix}_dvars-std.1D -t ${trep} -c ${out[sub]}/confound2/${prefix}_confmat.1D \
-g ${i} -r ${regress_process[cxt]} -l ${regress_lopass[cxt]} -s ${regress_hipass[cxt]}
done
Expand Down
4 changes: 2 additions & 2 deletions utils/surfacefilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def butter_bandpass(data,fs,lowpass,highpass,order=2):
y[i,:] = filtfilt(b, a, data[i,:])
#add mean back
mean_datag=np.outer(mean_data, np.ones(data.shape[1]))
return y

return y + mean_datag
def linear_regression(data,confound):

'''
Expand Down

0 comments on commit 3fca3eb

Please sign in to comment.