Skip to content

Commit 1e5f7b1

Browse files
committed
fix: CompCor PCA extraction was erroneous. fixed to save the correct components.
1 parent 7a5df7f commit 1e5f7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/workflows/rsfmri/fsl/resting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def extract_noise_components(realigned_file, noise_mask_file, num_components):
2121
timecourse[:] = detrend(timecourse, type='constant')
2222
u,s,v = sp.linalg.svd(voxel_timecourses, full_matrices=False)
2323
components_file = os.path.join(os.getcwd(), 'noise_components.txt')
24-
np.savetxt(components_file, v[:,:num_components])
24+
np.savetxt(components_file, v[:num_components, :].T)
2525
return components_file
2626

2727
def select_volume(filename, which):

0 commit comments

Comments
 (0)